/etc/postfix/main.cf:


compatibility_level=2

myhostname = <hostname.domain.tld>
smtpd_banner = $myhostname ESMTP
mynetworks = <CIDR networks separated by spaces> 127.0.0.0/24
maximal_queue_lifetime = 10d

relay_domains = hash:/etc/postfix/relay_domains
transport_maps = hash:/etc/postfix/transport_maps

smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, 
check_recipient_access hash:/etc/postfix/relay_recipients, reject



/etc/postfix/relay_domains:

firstdomain.tld         OK
.
.
.
lastdomain.tld          OK



/etc/postfix/transport_maps:

firstdomain.tld         <protocol>:<primary MX hostname>:<primary MX TCP port>
.
.
.
lastdomain.tld          <protocol>:<primary MX hostname>:<primary MX TCP port>



/etc/postfix/relay_recipients:

[email protected]            OK
.
.
.
[email protected]             OK



run postmap <file> on relay_domains, relay_recipients, transport_maps

restart postfix.
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to