Postfix (Linux): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 26: | Zeile 26: | ||
<pre> | <pre> | ||
postconf -e 'mydestination = localhost.localdomain, localhost' | |||
postconf -e 'smtp_sasl_auth_enable = yes' | postconf -e 'smtp_sasl_auth_enable = yes' | ||
postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd' | postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd' | ||
postconf -e 'smtp_sasl_security_options =' | postconf -e 'smtp_sasl_security_options = noanonymous' | ||
</pre> | </pre> | ||
Version vom 2. März 2020, 23:37 Uhr
Noch in Bearbeitung
Zur Konfiguration eines vollständigen Mailservers siehe Mailserver einrichten
Postfix unter Verwendung eines Relay-Hosts
sudo -i
apt-get install postfix libsasl2-modules
Bei der anschließenden Konfiguration (bzw. bei dpkg-reconfigure) folgende Eingaben tätigen:
- General type of configuration?
-> Satellite system
- Where should mail for root go?
-> Dein Username
- SMTP relay host?
-> mail.kirner.or.at
postconf -e 'mydestination = localhost.localdomain, localhost' postconf -e 'smtp_sasl_auth_enable = yes' postconf -e 'smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd' postconf -e 'smtp_sasl_security_options = noanonymous'
echo "mail.kirner.or.at <user>:<password>" > /etc/postfix/sasl/sasl_passwd chown root:root /etc/postfix/sasl/sasl_passwd chmod 600 /etc/postfix/sasl/sasl_passwd postmap /etc/postfix/sasl/sasl_passwd
/etc/init.d/postfix restart
exit
Zurück zu Ubuntu