Postfix 이메일이 반송됨(도메인 메일이 나 자신에게 루프백됨)

Postfix 이메일이 반송됨(도메인 메일이 나 자신에게 루프백됨)

메일을 보내는 데 문제가 있습니다.[이메일 보호됨]~을 위한[이메일 보호됨]내 이메일이 다음 오류와 함께 반송되었습니다.status=bounced (mail for orbialia.es loops back to myself)

May  9 09:33:58 ns3285243 postfix/smtpd[1606]: connect from localhost.localdomain[127.0.0.1]
May  9 09:33:58 ns3285243 postfix/smtpd[1606]: 1EF6FA1DB9: client=localhost.localdomain[127.0.0.1]
May  9 09:33:58 ns3285243 postfix/cleanup[1584]: 1EF6FA1DB9: message-id=<[email protected]>
May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 1EF6FA1DB9: from=<[email protected]>, size=7184, nrcpt=1 (queue active)
May  9 09:33:58 ns3285243 postfix/smtpd[1606]: disconnect from localhost.localdomain[127.0.0.1]
May  9 09:33:58 ns3285243 amavis[15721]: (15721-16) Passed CLEAN {RelayedInbound}, [79.145.170.251]:1991 [79.145.170.251] <[email protected]> -> <[email protected]>, Queue-ID: 9D0DCA1DB4, Message-ID: <[email protected]>, mail_id: 8JHrgdOkE3Pw, Hits: -0.999, size: 6675, queued_as: 1EF6FA1DB9, 26690 ms
May  9 09:33:58 ns3285243 postfix/smtp[1588]: 9D0DCA1DB4: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=28, delays=1/0.02/0.01/27, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 1EF6FA1DB9)
May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 9D0DCA1DB4: removed
May  9 09:33:58 ns3285243 postfix/smtp[1607]: 1EF6FA1DB9: to=<[email protected]>, relay=none, delay=0.11, delays=0.09/0.02/0/0, dsn=5.4.6, status=bounced (mail for orbialia.es loops back to myself)
May  9 09:33:58 ns3285243 postfix/cleanup[1584]: 42EC4A1DB4: message-id=<[email protected]>
May  9 09:33:58 ns3285243 postfix/bounce[1608]: 1EF6FA1DB9: sender non-delivery notification: 42EC4A1DB4
May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 42EC4A1DB4: from=<>, size=9465, nrcpt=1 (queue active)
May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 1EF6FA1DB9: removed
May  9 09:33:58 ns3285243 postfix/smtp[1607]: 42EC4A1DB4: to=<[email protected]>, relay=none, delay=0.05, delays=0.04/0/0/0, dsn=5.4.6, status=bounced (mail for orbialia.es loops back to myself)
May  9 09:33:58 ns3285243 postfix/qmgr[1575]: 42EC4A1DB4: removed

이것은 내 접미사 구성입니다.

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
milter_default_action = accept
milter_protocol = 2
mydestination = localhost, ns3285243.ip-5-135-177.eu
myhostname = rentabiliza.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
non_smtpd_milters = inet:localhost:8891
policy-spf_time_limit = 3600s
readme_directory = no
recipient_delimiter = +
relayhost =
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_milters = inet:localhost:8891
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination check_policy_service unix:private/policy-spf
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/ssl/certs/dovecot.pem
smtpd_tls_key_file = /etc/ssl/private/dovecot.pem
smtpd_use_tls = yes
virtual_alias_domains = mysql:/etc/postfix/sql-domain-aliases.cf
virtual_alias_maps = mysql:/etc/postfix/sql-aliases.cf, mysql:/etc/postfix/sql-domain-aliases-mailboxes.cf, mysql:/etc/postfix/sql-email2email.cf, mysql:/etc/postfix/sql-catchall-aliases.cf
virtual_mailbox_domains = mysql:/etc/postfix/sql-domains.cf
virtual_mailbox_maps = mysql:/etc/postfix/sql-mailboxes.cf
virtual_transport = lmtp:unix:private/dovecot-lmtp

mysql 데이터베이스에서 가상 도메인/사용자를 사용하고 있습니다.

호스트 이름: ns3285243.ip-5-135-177.eu 호스트 이름 -f:ns3285243.ip-5-135-177.eu

/etc/호스트

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
5.135.177.115           ns3285243.ip-5-135-177.eu       ns3285243
2001:41D0:8:B873::1     ns3285243.ip-5-135-177.eu       ns3285243

# The following lines are desirable for IPv6 capable hosts
#(added automatically by netbase upgrade)

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

gmail.com 대상으로 메일을 보내려고 하면 이메일이 성공적으로 수신됩니다.

orbialia.es를 mydestination에 넣으면 다음과 같은 결과가 나타납니다.

May  9 09:47:28 ns3285243 postfix/smtpd[2601]: NOQUEUE: reject: RCPT from 251.Red-79-145-170.dynamicIP.rima-tde.net[79.145.170.251]: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<50l3rport>

여러 개의 가상 도메인이 있습니다. 이 문제를 어떻게 해결할 수 있나요?

답변1

댓글에서:

이 경우 문제는 도메인이 활성으로 표시되지 않았기 때문에 mysql이 활성 도메인을 쿼리할 때 반환되지 않는다는 것입니다.

답변2

내 경우에도 비슷한 문제가 있었지만 virtual_domains에 오타가 있었기 때문이었습니다. 만일을 대비해 책상을 확인해 보시길 권합니다..!

mysql> select * from virtual_domains;

+----+-----------------+
| id | name            |
+----+-----------------+
|  1 | eexample.net    |
|  2 | example.com    |
+----+-----------------+

업데이트하세요:

mysql> update virtual_domains
    -> set name = 'example.net'
    -> where id = 1;

관련 정보