POSTFIX: 보낸 사람 주소 거부됨: 도메인을 찾을 수 없음(MAIL FROM 명령에 대한 응답)

POSTFIX: 보낸 사람 주소 거부됨: 도메인을 찾을 수 없음(MAIL FROM 명령에 대한 응답)

내 메일 서버가 $mydestination을 인식하지 못합니다. 이유는 무엇입니까?

sproxy:/var/spool/mail # tail -f /var/log/mail | grep vinicius.lehmann
Oct  6 11:13:21 sproxy amavis[31008]: (31008-17) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [192.168.0.125]:57464 [192.168.0.125] <[email protected]> -> <[email protected]>, Queue-ID: D9C3F29BA4, Message-ID: <[email protected]>, mail_id: 9fhyBbjNt7nl, Hits: -2.899, size: 638, queued_as: 13D0E29BC8, 2604 ms
Oct  6 11:13:21 sproxy postfix/smtp[31091]: D9C3F29BA4: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.04/0/0/2.6, 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 13D0E29BC8)
Oct  6 11:13:23 sproxy postfix/smtp[31032]: 13D0E29BC8: to=<[email protected]>, relay=smtp.terra.com.br[208.84.244.140]:25, delay=1.5, delays=0.45/0/0.91/0.15, dsn=4.1.8, status=deferred (host smtp.terra.com.br[208.84.244.140] said: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found (in reply to MAIL FROM command))

하지만 보내고 받는 주소는 거의 없습니다

sproxy:/var/spool/mail # tail -f /var/log/mail | grep alvaro
Oct  6 11:16:01 sproxy amavis[31674]: (31674-15) Passed CLEAN {RelayedInternal}, MYNETS LOCAL [192.168.0.125]:57498 [192.168.0.125] <[email protected]> -> <[email protected]>, Queue-ID: 2697B29BC2, Message-ID: <[email protected]>, mail_id: nee-tFeqs5fk, Hits: -2.9, size: 625, queued_as: A7B9B29BCA, 2785 ms
Oct  6 11:16:01 sproxy postfix/smtp[31866]: 2697B29BC2: to=<[email protected]>, orig_to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.1, delays=1.2/0.11/0/2.8, 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 A7B9B29BCA)
Oct  6 11:16:01 sproxy postfix/local[31356]: A7B9B29BCA: to=<[email protected]>, relay=local, delay=1.6, delays=1.6/0/0/0.04, dsn=2.0.0, status=sent (delivered to mailbox)
Oct  6 11:16:06 sproxy popper[32156]: Stats: alvarocassini 0 0 167 5730100 187.85.83.226 187.85.83.226 [pop_updt.c:301]
Oct  6 11:17:00 sproxy popper[32255]: Stats: alvarocassini 0 0 167 5730112 187.85.83.226 187.85.83.226 [pop_updt.c:301]
Oct  6 11:17:22 sproxy popper[32306]: Stats: alvarocassini 0 0 167 5730112 187.85.83.226 187.85.83.226 [pop_updt.c:301]

sproxy:/var/spool/mail # dig salessupermercados.com.br

; <<>> DiG 9.8.4-P2 <<>> salessupermercados.com.br
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62144
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;salessupermercados.com.br.     IN      A

;; ANSWER SECTION:
salessupermercados.com.br. 57934 IN     A       216.70.89.60

;; AUTHORITY SECTION:
salessupermercados.com.br. 57934 IN     NS      ns3.terraempresas.com.br.
salessupermercados.com.br. 57934 IN     NS      ns2.terraempresas.com.br.

;; Query time: 7 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Oct  6 11:26:59 2015
;; MSG SIZE  rcvd: 109

sproxy:/var/spool/mail # dig salessupermercados.com.br MX

; <<>> DiG 9.8.4-P2 <<>> salessupermercados.com.br MX
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 35366
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 0

;; QUESTION SECTION:
;salessupermercados.com.br.     IN      MX

;; ANSWER SECTION:
salessupermercados.com.br. 57927 IN     MX      5 mx.terraempresas.com.br.

;; AUTHORITY SECTION:
salessupermercados.com.br. 57927 IN     NS      ns2.terraempresas.com.br.
salessupermercados.com.br. 57927 IN     NS      ns3.terraempresas.com.br.

;; Query time: 67 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Oct  6 11:27:06 2015
;; MSG SIZE  rcvd: 112

postfix/main.cf 구성

content_filter = smtp-amavis:[127.0.0.1]:10024
myhostname = sproxy.sales.intra
inet_interfaces = all
inet_protocols = all
biff = no

delay_warning_time = 1h
disable_dns_lookups = no
disable_mime_output_conversion = no
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains = sales.intra
#masquerade_domains = salessupermercados.com.br
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain, salesssupermercados.com.br, sales.intra
mynetworks_style = subnet
relayhost = smtp.terra.com.br

alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
relocated_maps = hash:/etc/postfix/relocated
sender_canonical_maps = hash:/etc/postfix/sender_canonical
transport_maps = hash:/etc/postfix/transport
mail_spool_directory = /var/mail
message_strip_characters = \0
defer_transports =
mailbox_command =
mailbox_transport =
mailbox_size_limit = 0
#message_size_limit = 10240000
message_size_limit = 51200000
strict_8bitmime = no
strict_rfc821_envelopes = no

smtpd_helo_required = no
smtpd_helo_restrictions =

smtpd_client_restrictions =

smtpd_sender_restrictions = hash:/etc/postfix/access

smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination


############################################################
# SASL stuff
############################################################
broken_sasl_auth_clients = yes
smtp_sasl_auth_enable = yes
smtp_sasl_security_options = noanonymous
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
############################################################
# TLS stuff
############################################################
#tls_append_default_CA = no
relay_clientcerts =
#tls_random_source = dev:/dev/urandom

smtp_use_tls = no
#smtp_tls_loglevel = 0
smtp_enforce_tls = no
smtp_tls_CAfile =
smtp_tls_CApath =
smtp_tls_cert_file =
smtp_tls_key_file =
#smtp_tls_session_cache_timeout = 3600s
smtp_tls_session_cache_database =

smtpd_use_tls = no
#smtpd_tls_loglevel = 0
smtpd_tls_CAfile =
smtpd_tls_CApath =
smtpd_tls_cert_file =
smtpd_tls_key_file =
smtpd_tls_ask_ccert = no
smtpd_tls_received_header = no

답변1

원격 메일 서버에서 받은 오류 메시지는 다음과 같습니다.

호스트 smtp.terra.com.br[208.84.244.140] 말했다: 450 4.1.8 : 보낸 사람 주소 거부됨: 도메인을 찾을 수 없음(MAIL FROM 명령에 대한 응답)

이는 다음을 의미합니다.에서해당 도메인에 대한 DNS 조회가 실패했기 때문에 주소가 거부되었습니다.

문제의 도메인은 sales.intra내가 찾을 수 있는 어떤 DNS 서버에서도 확인되지 않는 것 같습니다.

이 작업을 수행하려면 공용 DNS에서 확인을 수행 sales.intra하거나 FROM 주소를 확인 가능한 주소로 변경해야 합니다.

제대로 작동한 이메일은 원격 서버가 아닌 로컬로 전달되었습니다. 로컬 서버는 FROM 주소에서 유효한 작동 도메인을 확인하지 않으므로 이메일 처리를 계속합니다.

관련 정보