Пробую из дома послать письмо через mail.domain.example.com на его ящик от имени существующего почтового ящика на яндексе.
220 mail.domain.example.com ESMTP Postfix
helo [192.168.180.71]
250 mail.domain.example.com
mail from: mailbox@yandex.ru
250 2.1.0 Ok
rcpt to: test@mail.domain.example.com
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
Subject:123
.
250 2.0.0 Ok: queued as 541A4C50085
quit
221 2.0.0 Bye
Aug 18 20:22:23 ithub postfix/smtp[20345]: 5A2F1C50085: to=<mailbox@yandex.ru>, relay=mx.yandex.ru[93.158.134.89]:25, delay=0.18, delays=0/0/0.12/0.05, dsn=2.1.5, status=deliverable (250 2.1.5 <mailbox@yandex.ru> recipient ok)
smtpd_client_restrictions =
permit_sasl_authenticated,
permit
smtpd_data_restrictions =
reject_multi_recipient_bounce,
reject_unauth_pipelining
smtpd_end_of_data_restrictions =
smtpd_etrn_restrictions =
smtpd_helo_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_invalid_helo_hostname,
reject_non_fqdn_helo_hostname,
reject_unknown_helo_hostname
smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
check_policy_service unix:private/policy, #SPF
reject_non_fqdn_recipient,
reject_unknown_recipient_domain,
reject_unauth_destination,
warn_if_reject reject_unauth_destination
smtpd_restriction_classes =
smtpd_sender_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauthenticated_sender_login_mismatch,
reject_non_fqdn_sender,
reject_unknown_sender_domain,
reject_unlisted_sender,
reject_unverified_sender,
reject_rbl_client dul.ru,
reject_rbl_client bl.spamcop.net,
reject_rhsbl_sender dsn.rfc-ignorant.org
Как можно ограничить такой фокус используя smtpd_*_restrictions