Postfix (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 20: Zeile 20:
     -> Satellite system
     -> Satellite system
* Where should mail for root go?
* Where should mail for root go?
     -> Dein Username
     -> kirner.or.at
* SMTP relay host?
* SMTP relay host?
     -> mail.kirner.or.at
     -> mail.kirner.or.at


Im Anschluss noch einige Konfigurationseinträge ändern:


<pre>
<pre>
Zeile 41: Zeile 42:


<pre>
<pre>
/etc/init.d/postfix restart
sudo systemctl restart postfix.service
</pre>
</pre>


<pre>
<pre>
exit
exit
</pre>
== Basiskonfiguration nochmals starten ==
<pre>
sudo dpkg-reconfigure postfix
</pre>
</pre>



Aktuelle Version vom 11. Juni 2020, 17:26 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?
   -> kirner.or.at
  • SMTP relay host?
   -> mail.kirner.or.at

Im Anschluss noch einige Konfigurationseinträge ändern:

postconf -e 'myhostname = 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
sudo systemctl restart postfix.service
exit

Basiskonfiguration nochmals starten

sudo dpkg-reconfigure postfix

Testen

Siehe Mailserver testen


Zurück zu Ubuntu