Postfix와 DBmail이 포함된 FreeBSD 서버가 있습니다. 메일 시스템은 한 가지를 제외하고는 잘 작동합니다. domain1.com과 domain2.com이 모두 동일한 서버에서 호스팅되는 경우(또는 사이트의 PHP 메일 시스템에서 로컬로 호스팅되는 메일 주소로) 이메일을 보낼 수 없습니다. 내 로컬 도메인에서 다른 로컬 도메인으로 이메일을 보내고 싶습니다.
이것은 내 main.cf 파일입니다.
queue_directory = /var/spool/postfix
command_directory = /usr/local/sbin
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
# Permissions
mail_owner = postfix
default_privs = nobody
# Network
myhostname = hostname.domain.nl
mydomain = domain.nl
myorigin = $mydomain
inet_interfaces = all
# Recipients
virtual_transport = dbmail-lmtp:localhost:24
virtual_mailbox_domains = mysql:/usr/local/etc/postfix/mail_domains.cf
#virtual_mailbox_maps = mysql:$config_directory/sql-virtual_mailbox_maps.cf
unknown_local_recipient_reject_code = 550
# Security
mynetworks = 127.0.0.0/8 [::1]/128 mysql:/usr/local/etc/postfix/sql-pop_before_smtp.cf
#body_checks = regexp:$config_directory/body_checks
#header_checks = regexp:$config_directory/header_checks
# Misc
smtpd_helo_required = yes
strict_rfc821_envelopes = yes
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/local/sbin/sendmail
newaliases_path = /usr/local/bin/newaliases
mailq_path = /usr/local/bin/mailq
setgid_group = maildrop
html_directory = /usr/local/share/doc/postfix
manpage_directory = /usr/local/man
sample_directory = /usr/local/etc/postfix
readme_directory = /usr/local/share/doc/postfix
inet_protocols = ipv4
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination
smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
로그인할 때 이 오류가 발생합니다./var/log/maillog
Mar 14 23:15:06 keroth postfix/smtp[4495]: warning: host mail.domain2.nl[***.***.***.***]:25 greeted me with my own hostname hostname.domain1.nl
Mar 14 23:15:06 keroth postfix/smtp[4495]: warning: host mail.domain2.nl[***.***.***.***]:25 replied to HELO/EHLO with my own hostname hostname.domain1.nl
Mar 14 23:15:06 keroth postfix/smtp[4495]: 821049CC06F: to=<[email protected]>, relay=mail.domain1.nl[***.***.***.***]:25, delay=2.4, delays=0.02/0.01/2.4/0, dsn=5.4.6, status=bounced (mail for domain1.nl loops back to myself)
Mar 14 23:15:06 keroth postfix/smtpd[4497]: disconnect from ***.***.***.***[***.***.***.***]
Mar 14 23:15:06 keroth postfix/cleanup[4493]: DFBDB9CC073: message-id=<[email protected]>
Mar 14 23:15:06 keroth postfix/bounce[4500]: 821049CC06F: sender non-delivery notification: DFBDB9CC073
Mar 14 23:15:06 keroth postfix/qmgr[4479]: DFBDB9CC073: from=<>, size=2145, nrcpt=1 (queue active)
Mar 14 23:15:06 keroth postfix/qmgr[4479]: 821049CC06F: removed
Mar 14 23:15:07 keroth postfix/lmtp[4501]: DFBDB9CC073: to=<[email protected]>, relay=localhost[127.0.0.1]:24, delay=0.12, delays=0/0.01/0/0.11, dsn=5.0.0, status=bounced (host localhost[127.0.0.1] said: 550 Recipient <[email protected]> FAIL (in reply to RCPT TO command))
Mar 14 23:15:07 keroth postfix/qmgr[4479]: DFBDB9CC073: removed