Postfix: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
[[Kategorie:ServerApplikation]] | [[Kategorie:ServerApplikation]] | ||
= | = Vorarbeiten = | ||
<pre># | * Domain einrichten, z.B. "dromedar.hamatoma.de" | ||
* DNS-PTR-Record der IP-Adresse auf dromedar.hamatoma.de setzen | |||
* Hostname auf "dromedar.hamatoma.de" setzen | |||
= Installation = | |||
<pre>apt install postfix | |||
# "Internet-Site" wählen | |||
</pre> | </pre> | ||
= | = Konfiguration = | ||
<pre> | <pre>... | ||
.. | |||
smtpd_recipient_restrictions = reject_invalid_hostname, | smtpd_recipient_restrictions = reject_invalid_hostname, | ||
reject_unknown_recipient_domain, | reject_unknown_recipient_domain, | ||
Zeile 24: | Zeile 20: | ||
reject_rbl_client sbl.spamhaus.org, | reject_rbl_client sbl.spamhaus.org, | ||
permit | permit | ||
smtpd_helo_restrictions = reject_invalid_helo_hostname, | smtpd_helo_restrictions = reject_invalid_helo_hostname, | ||
reject_non_fqdn_helo_hostname, | reject_non_fqdn_helo_hostname, | ||
reject_unknown_helo_hostname | reject_unknown_helo_hostname | ||
smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net | smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net | ||
virtual_alias_maps = hash:/etc/postfix/virtual | virtual_alias_maps = hash:/etc/postfix/virtual | ||
virtual_alias_domains = | virtual_alias_domains = f-r-e-i.de | ||
# Format maildir (statt mailbox): | |||
home_mailbox = Maildir/ | |||
virtual_uid_maps = static:150 | |||
virtual_gid_maps = static:150 | |||
virtual_mailbox_maps = hash:/etc/postfix/vmaps | |||
</pre> | </pre> |
Version vom 8. Oktober 2019, 18:48 Uhr
Vorarbeiten
- Domain einrichten, z.B. "dromedar.hamatoma.de"
- DNS-PTR-Record der IP-Adresse auf dromedar.hamatoma.de setzen
- Hostname auf "dromedar.hamatoma.de" setzen
Installation
apt install postfix # "Internet-Site" wählen
Konfiguration
... smtpd_recipient_restrictions = reject_invalid_hostname, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client sbl.spamhaus.org, permit smtpd_helo_restrictions = reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, reject_unknown_helo_hostname smtpd_client_restrictions = reject_rbl_client dnsbl.sorbs.net virtual_alias_maps = hash:/etc/postfix/virtual virtual_alias_domains = f-r-e-i.de # Format maildir (statt mailbox): home_mailbox = Maildir/ virtual_uid_maps = static:150 virtual_gid_maps = static:150 virtual_mailbox_maps = hash:/etc/postfix/vmaps