Если я правильно понял ваш вопрос, вы хотите отправлять почту через lan.example.com
. Если lan.example.com
- это тот же ящик, то relayhost = lan.example.com
не должен устанавливаться (так как это уже хост ретрансляции).
By default, the Postfix SMTP server accepts:
Mail from clients whose IP address matches $mynetworks, or
Mail to remote destinations that match $relay_domains, except for addresses
that contain sender-specified routing (user@elsewhere@domain), or
Mail to local destinations that match $inet_interfaces or $proxy_interfaces,
$mydestination, $virtual_alias_domains, or $virtual_mailbox_domains.
Вы должны указать сеть 10.1.250.0/24
(или любую другую битовую маску) как часть $ mynetworks
, или, в частности, поместить ее в ] smtpd_relay_restrictions
:
smtpd_relay_restrictions = $mynetworks, 10.1.250.0/24