/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:

firstu...@domain.tld            OK
.
.
.
lastu...@domain.tld             OK



run postmap <file> on relay_domains, relay_recipients, transport_maps

restart postfix.
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to