linux:mail:postfix
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
linux:mail:postfix [2020/10/23 19:39] – created ms | linux:mail:postfix [2023/01/11 20:29] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
< | < | ||
apt-get install postfix bsd-mailx | apt-get install postfix bsd-mailx | ||
+ | |||
+ | # alle default Angaben übernehmen | ||
optional | optional | ||
apt-get install mailutils | apt-get install mailutils | ||
</ | </ | ||
+ | ===== Postfix für Strato einrichten ===== | ||
+ | < | ||
+ | vi / | ||
+ | # See / | ||
+ | |||
+ | |||
+ | # Debian specific: | ||
+ | # line of that file to be used as the name. The Debian default | ||
+ | # is / | ||
+ | #myorigin = / | ||
+ | |||
+ | smtpd_banner = $myhostname ESMTP $mail_name (Debian/ | ||
+ | biff = no | ||
+ | |||
+ | # appending .domain is the MUA's job. | ||
+ | append_dot_mydomain = no | ||
+ | |||
+ | # Uncomment the next line to generate " | ||
+ | # | ||
+ | |||
+ | readme_directory = no | ||
+ | |||
+ | # See http:// | ||
+ | # fresh installs. | ||
+ | compatibility_level = 2 | ||
+ | |||
+ | # TLS parameters | ||
+ | smtpd_tls_cert_file=/ | ||
+ | smtpd_tls_key_file=/ | ||
+ | smtpd_use_tls = yes | ||
+ | smtp_use_tls = yes | ||
+ | smtp_enforce_tls = yes | ||
+ | smtpd_tls_session_cache_database = btree: | ||
+ | smtp_tls_session_cache_database = btree: | ||
+ | # | ||
+ | smtp_sasl_auth_enable = yes | ||
+ | smtp_sasl_security_options = noanonymous | ||
+ | smtp_sasl_password_maps = hash:/ | ||
+ | smtp_tls_wrappermode = yes | ||
+ | smtp_tls_security_level = encrypt | ||
+ | |||
+ | # See / | ||
+ | # information on enabling SSL in the smtp client. | ||
+ | |||
+ | smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination | ||
+ | myhostname = vm38 | ||
+ | alias_maps = hash:/ | ||
+ | alias_database = hash:/ | ||
+ | mydestination = $myhostname, | ||
+ | relayhost = smtp.strato.de: | ||
+ | mynetworks = 127.0.0.0/8 [:: | ||
+ | mailbox_size_limit = 0 | ||
+ | recipient_delimiter = + | ||
+ | inet_interfaces = all | ||
+ | inet_protocols = all | ||
+ | </ | ||
+ | ==== User und Passwort konfigureieren ==== | ||
+ | < | ||
+ | vi / | ||
+ | |||
+ | smtp.strato.de musterman@example.de: | ||
+ | </ | ||
+ | < | ||
+ | postmap / | ||
+ | </ | ||
+ | < | ||
+ | chown root:root / | ||
+ | chmod 0600 / | ||
+ | </ | ||
+ | < | ||
+ | root> systemctl restart postfix.service | ||
+ | |||
+ | oder | ||
+ | |||
+ | root> / | ||
+ | </ | ||
+ | ==== Mailversand testen ==== | ||
+ | < | ||
+ | echo "Dies ist eine Testmail" | ||
+ | </ | ||
+ | paralell dazu Log-Datei beobachten | ||
+ | < | ||
+ | root> tail -f / | ||
+ | </ |
linux/mail/postfix.1603474743.txt.gz · Last modified: 2023/01/11 20:30 (external edit)