smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = localhost.localdomain
myorigin = localhost.localdomain
mydestination =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = 127.0.0.1
default_transport = smtp
relay_transport = relay
inet_protocols = all
virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual-mailbox-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-mailbox-maps.cf
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual-alias-maps.cf
virtual_mailbox_base = /var/spool/mail
문제는 지금 구성 오류가 있다는 메시지가 표시된다는 것입니다. 이메일을 보내려고 하면 다음과 같은 메시지도 표시됩니다.
status=bounced (mail for localhost loops back to myself)
전체 로그:
Aug 2 13:00:20 imapaka-01 postfix/smtpd[15528]: connect from localhost.localdomain[127.0.0.1]
Aug 2 13:00:37 imapaka-01 postfix/smtpd[15528]: improper command pipelining after EHLO from localhost.localdomain[127.0.0.1]: mail from: root@localhost\r\nrcpt to: [email protected]\r\ndata\r\nSubject:Testnachricht\r\n\r
Aug 2 13:00:37 imapaka-01 postfix/smtpd[15528]: 53B5A625269: client=localhost.localdomain[127.0.0.1]
Aug 2 13:00:37 imapaka-01 postfix/cleanup[15532]: 53B5A625269: message-id=<[email protected]>
Aug 2 13:00:37 imapaka-01 postfix/qmgr[15523]: 53B5A625269: from=<root@localhost>, size=395, nrcpt=1 (queue active)
Aug 2 13:00:37 imapaka-01 postfix/smtp[15534]: 53B5A625269: to=<test@localhost>, orig_to=<[email protected]>, relay=none, delay=0.04, delays=0.03/0.01/0/0, dsn=5.4.6, status=bounced (mail for localhost loops back to myself)
Aug 2 13:00:37 imapaka-01 postfix/cleanup[15532]: 607A662526B: message-id=<[email protected]>
Aug 2 13:00:37 imapaka-01 postfix/bounce[15535]: 53B5A625269: sender non-delivery notification: 607A662526B
Aug 2 13:00:37 imapaka-01 postfix/qmgr[15523]: 607A662526B: from=<>, size=2423, nrcpt=1 (queue active)
Aug 2 13:00:37 imapaka-01 postfix/qmgr[15523]: 53B5A625269: removed
Aug 2 13:00:37 imapaka-01 postfix/smtp[15534]: 607A662526B: to=<root@localhost>, relay=none, delay=0.02, delays=0.02/0/0/0, dsn=5.4.6, status=bounced (mail for localhost loops back to myself)
Aug 2 13:00:37 imapaka-01 postfix/qmgr[15523]: 607A662526B: removed
Aug 2 13:00:38 imapaka-01 postfix/smtpd[15528]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
답변1
mydestination을 None으로 설정한 것이
mydestination =
원인이었습니다. 왜 이런 짓을하는? 비슷한 것을 시도해 보세요mydestination = $myhostname, localhost.$mydomain, localhost
. – CAS 8월 2일 12시 48분