Postfix (Linux): Unterschied zwischen den Versionen

Aus Tutorials
Zur Navigation springen Zur Suche springen
 
(20 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
{{note|Noch in Bearbeitung}}
Zur Konfiguration eines vollständigen Mailservers siehe [[Mailserver einrichten]]
Zur Konfiguration eines vollständigen Mailservers siehe [[Mailserver einrichten]]


== Postfix unter Verwendung eines Relay-Hosts ==
== Postfix unter Verwendung eines Relay-Hosts ==


<pre>
sudo -i
</pre>
<pre>
apt-get install postfix libsasl2-modules
</pre>
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:
<pre>
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'
</pre>
<pre>
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
</pre>
<pre>
sudo systemctl restart postfix.service
</pre>
<pre>
exit
</pre>
== Basiskonfiguration nochmals starten ==
<pre>
sudo dpkg-reconfigure postfix
</pre>
== Testen ==
Siehe [[Mailserver_testen#Mail_per_mail_verschicken|Mailserver testen]]




Zurück zu [[Ubuntu]]
Zurück zu [[Ubuntu]]

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