Config postfix smarthost » Historie » Revision 2
« Zurück |
Revision 2/3
(Vergleich)
| Weiter »
Jeremias Keihsler, 05.04.2024 10:46
Config postfix smarthost¶
smarthost with local mailcow-dockerized¶
currently we are using Ubuntu only as a base for mailcow.
So things are a bit different here, see also: https://docs.mailcow.email/post_installation/firststeps-local_mta/
install postfix and mail¶
configure postfix¶
# as per https://docs.mailcow.email/post_installation/firststeps-local_mta/ relayhost = 172.22.1.1 mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 inet_interfaces = loopback-only relay_transport = relay default_transport = smtp
additionally we need to know the server and email-address as well as the password to use
The above server hostname and port must exactly match the value for "relayhost" in /etc/postfix/main.cf.
Generate a postfix lookup table from the previous file
Test the lookup table, if all is good then the following will return the specified username:password
next is to bind the local username to the email-address. You may also have a look into /etc/aliases and check who's mail are sent to whom.
The above email-address must exactly match the email-address in sasl_passwd.
Generate a postfix lookup table from the previous file
Make sure that sasl_passwd and sasl_passwd.db files are readable/writeable only by root
Add postfix to be started at boot
maybe necessary¶
Von Jeremias Keihsler vor mehr als 2 Jahren aktualisiert · 3 Revisionen