![Postfix는 가상 도메인에 대한 이메일을 받지 않습니다.](https://rvso.com/image/668796/Postfix%EB%8A%94%20%EA%B0%80%EC%83%81%20%EB%8F%84%EB%A9%94%EC%9D%B8%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%9D%B4%EB%A9%94%EC%9D%BC%EC%9D%84%20%EB%B0%9B%EC%A7%80%20%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4..png)
3일째 해결책을 찾아보지만 소용없는 것 같습니다. Postfix는 서버에서 이메일을 잘 보낼 수 있지만 받을 수는 없습니다. 가상 도메인 중 하나에 이메일을 쓰려고 할 때마다 "릴레이 액세스가 거부되었습니다"라는 메시지가 나타납니다.
postfix 구성은 다음과 같습니다.
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
inet_protocols = ipv4
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relay_domains = $mydestination
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
메일로그:
Oct 14 08:42:44 ns519796 postfix/smtpd[19172]: connect from mail-yk0-f177.google.com[209.85.160.177]
Oct 14 08:42:44 ns519796 postfix/smtpd[19172]: NOQUEUE: reject: RCPT from mail-yk0-f177.google.com[209.85.160.177]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-yk0-f177.google.com>
Oct 14 08:42:44 ns519796 postfix/smtpd[19172]: disconnect from mail-yk0-f177.google.com[209.85.160.177]
답변1
mydestination에 example.com이 포함되어 있나요?
mydestination = example.com, $myhostname, localhost.$mydomain, localhost
릴레이 액세스 거부는 사서함별 오류가 아닙니다. 찾고 있는 도메인이 여기에서 허용되지 않으며 해당 도메인(로컬 도메인이 아니기 때문에)으로 릴레이한다고 가정합니다.
앨리어스 맵 관련 문제는 릴레이 오류가 아닌 사서함을 찾을 수 없음 오류와 관련이 있습니다.
이메일 주소 오류:
rcpt to:[email protected]
554 5.7.1 <[email protected]>: Recipient address rejected: Access denied
도메인 오류:
rcpt to:[email protected]
454 4.7.1 <[email protected]>: Relay access denied