Anmerkung: Ausgegangen wird wie immer von Debian Sarge (v3.1)
| Befehl | Erläuterung |
|---|---|
postfix check | |
postconf | |
mailq | Zeigt die Mail Queue |
postqueue -f | Alle Mails in der Queue sofert zustellen |
postsuper -d <ID> | Einzelne EMail aus der Queue löschen |
postsuper -d ALL | Alle EMails aus der Queue löschen |
postqueue -h <ID> | EMail in der Queue einfrieren / festhalten |
postqueue -H <ID> | Festgehaltene EMail wieder freigeben |
$ su - apt-get update apt-get install postfix-tls sasl2-bin libsasl2-modules libsasl2
$ su - cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h myhostname = localhost.localdomain alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases sender_canonical_maps = hash:/etc/postfix/canonical myorigin = /etc/mailname mydestination = localhost.localdomain, localhost relayhost = RELAYHOST mynetworks = 127.0.0.0/8 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all ### # authentifizierung und verschlüsselung ### broken_sasl_auth_clients = yes smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/smtp_auth smtp_sasl_security_options = noanonymous
Falls nötig die Datei /etc/postfix/canonical anlegen
$ su - cat /etc/postfix/canonical root@localhost MEINE_EXTERNE_EMAIL_ADRESSE root@localhost.localdomain MEINE_EXTERNE_EMAIL_ADRESSE ... postmap /etc/postfix/canonical
Falls nötig die Datei /etc/postfix/smtp_auth anlegen - Diese Datei dient der Authentifizierung gegenüber dem Relay-Host.
$ su - cat /etc/postfix/smtp_auth NAME_DES_RELAY_HOSTS nutzer:passwort ... postmap /etc/postfix/smtp_auth
Anmerkung: NAME_DES_RELAY_HOSTS sollte ein vollständiger DNS-Name sein (FQDN). Dieser muss ebenso gleich dem Namen des Relayhosts in der Datei /etc/postfix/main.cf sein.
$ su - cat /etc/aliases ...
$ su - cat /etc/postfix/master.cf ... smtp unix - - - - - smtp -vv relay unix - - - - - smtp -vv ...
Anmerkung: Je mehr -v Sie in dieser Datei angeben, desto ausführlicher werden die Debug Informationen.
$ su - postfix check postconf /etc/init.d/postfix reload ODER /etc/init.d/postfix restart