두 개의 Debian 서버가 있습니다:
web.example.com - LAMP web server
mail.example.com - mail server with postfix, dovecot and mysql based user directories, auth required
이제 web.example.com을 설정하여 이메일(예: 로컬 서비스에서 다음으로 보내는 이메일)을 보내려고 합니다.[이메일 보호됨]) mail.example.com을 사용합니다. 메일 배달에서 mail.example.com이 "web.example.com"을 "신뢰"하도록 하고 싶다고 말할 수 있습니다.
이 목표를 어떻게 달성할 수 있나요?
답변1
mail.example.com
에 의한 릴레이를 항상 허용하려면 신뢰할 수 있는 네트워크에 다음 web.example.com
을 추가하면 됩니다 .web.example.com
mynetworks = 127.0.0.1/32 [your IPv4 and IPV6 addresses] [IP of web.example.com]
또는 다음을 사용할 수 있습니다.smtpd_client_restrictions
:
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/maps/client_access
다음 내용이 포함됩니다 /etc/postfix/maps/client_access
.
[IP of web.example.com] OK