Привет.
С несужествующего домена письма не отправляются, но с сущ. доменов (в инете) типа google.com, yandex.ru и пр. отправляются на локальные ящики аж бегом.
220 mail.example.com ESMTP Postfix
helo max.nixsolldd.fff
250 mail.example.com
mail from: root@google.com
250 2.1.0 Ok
rcpt to: root@example.net
250 2.1.5 Ok
Вот так вот.
Кусок конфига отвечающего за данную проблему:
smtpd_helo_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_non_fqdn_helo_hostname,
reject_invalid_helo_hostname
smtpd_data_restrictions = permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_pipelining,
reject_multi_recipient_bounce,
smtpd_sender_restrictions = permit_sasl_authenticated,
reject_unlisted_sender,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_sender_login_mismatch,
reject_unauth_pipelining,
smtpd_recipient_restrictions = reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_multi_recipient_bounce,
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_invalid_hostname,
Кусок лога с зафейлившимся чеком:
: generic_checks: name=reject_unlisted_sender
: >>> CHECKING RECIPIENT MAPS <<<
: ctable_locate: leave existing entry key root@google.com
: maps_find: recipient_canonical_maps: root@google.com: not found
: match_string: google.com ~? mail.example.com
: match_string: google.com ~? localhost.example.com
: match_string: google.com ~? localhost
: match_list_match: google.com: no match
: maps_find: recipient_canonical_maps: @google.com: not found
: mail_addr_find: root@google.com -> (not found)
: maps_find: canonical_maps: root@google.com: not found
: match_string: google.com ~? mail.example.com
: match_string: google.com ~? localhost.example.com
: match_string: google.com ~? localhost
: match_list_match: google.com: no match
: maps_find: canonical_maps: @google.com: not found
: mail_addr_find: root@google.com -> (not found)
: dict_mysql_get_active: attempting to connect to host localhost
: dict_mysql: successful connection to host localhost
: dict_mysql: successful query from host localhost
: dict_mysql_lookup: retrieved 0 rows
: dict_mysql_get_active: attempting to connect to host localhost
: dict_mysql: successful connection to host localhost
: dict_mysql: successful query from host localhost
: dict_mysql_lookup: retrieved 0 rows
: maps_find: virtual_alias_maps: root@google.com: not found
: match_string: google.com ~? mail.example.com
: match_string: google.com ~? localhost.example.com
: match_string: google.com ~? localhost
: match_list_match: google.com: no match
: dict_mysql_get_active: found active connection to host localhost
: dict_mysql: successful query from host localhost
: dict_mysql_lookup: retrieved 0 rows
: maps_find: virtual_alias_maps: @google.com: not found
: mail_addr_find: root@google.com -> (not found)
: generic_checks: name=reject_unlisted_sender status=0