On 15.03.23 21:49, Fongaboo via Postfix-users wrote:
myhostname = <hostname.domain.tld>
I usually don't set "myhostname" and let postfix use the one set in system.
I configure my systems with hostname set to FQDN.
smtpd_banner = $myhostname ESMTP
mynetworks = <CIDR networks separated by spaces> 127.0.0.0/24
I prefer autoconfiguration via mynetworks_style:
http://www.postfix.org/postconf.5.html#mynetworks_style
since postfix 3.0, the default "host" is safe even on networks shared with
untrusted machines, on postfix <3.0 it's enough to set it to "host"
smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination,
check_recipient_access hash:/etc/postfix/relay_recipients, reject
this can be configured by configuring relay_recipient_maps:
http://www.postfix.org/postconf.5.html#relay_recipient_maps
postfix checks that automatically when smtpd_reject_unlisted_recipient=yes
(default)
http://www.postfix.org/postconf.5.html#smtpd_reject_unlisted_recipient
transport_maps = hash:/etc/postfix/transport_maps
/etc/postfix/transport_maps:
firstdomain.tld <protocol>:<primary MX hostname>:<primary MX TCP port>
.
.
.
lastdomain.tld <protocol>:<primary MX hostname>:<primary MX TCP port>
Not needed, if the DNS MX records point to that hostname.
The first column is not "protocol" but "transport", where the default
for domains in relay_domains is "relay" instead of "smtp"
restart postfix.
not needed.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Micro$oft random number generator: 0, 0, 0, 4.33e+67, 0, 0, 0...
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org