Postfix: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Zeile 1: | Zeile 1: | ||
[[Kategorie:ServerApplikation]] | [[Kategorie:ServerApplikation]] | ||
== | = Intern nach Extern = | ||
<pre>#/etc/aliases | |||
<pre> | postmaster: root | ||
devnull: /dev/null | |||
mailer-daemon: postmaster | |||
webmaster: root | |||
# Weiterleitung an externe Adresse: | |||
root: hamatoma@gmx.de | |||
</pre> | </pre> | ||
<pre># Activate | |||
<pre> | newaliases | ||
</pre> | </pre> | ||
<pre> | = Internet site = | ||
# /etc/postfix/main.cf | <pre># /etc/postfix/main.cf | ||
... | |||
# anti-spam: smtp restrictions | |||
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 | |||
# Weiterleitung | |||
virtual_alias_maps = hash:/etc/postfix/virtual | virtual_alias_maps = hash:/etc/postfix/virtual | ||
virtual_alias_domains = hamatoma.de | |||
</pre> | </pre> | ||
= Smarthost mit GMail = | |||
* main.cf: | * main.cf: | ||
<pre>smtp_sasl_auth_enable = yes | <pre>smtp_sasl_auth_enable = yes |
Version vom 27. September 2019, 17:40 Uhr
Intern nach Extern
#/etc/aliases postmaster: root devnull: /dev/null mailer-daemon: postmaster webmaster: root # Weiterleitung an externe Adresse: root: hamatoma@gmx.de
# Activate newaliases
Internet site
# /etc/postfix/main.cf ... # anti-spam: smtp restrictions 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 # Weiterleitung virtual_alias_maps = hash:/etc/postfix/virtual virtual_alias_domains = hamatoma.de
Smarthost mit GMail
- main.cf:
smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_connection_cache_on_demand = no smtp_sasl_password_maps = hash:/etc/postfix/sasl_password sender_canonical_maps = hash:/etc/postfix/sender_canonical smtp_use_tls=yes smtp_tls_security_level = may smtp_sasl_security_options=noanonymous relayhost = [smtp.gmail.com]:587
- /etc/postfix/sender_canonical
root anyUser@gmail.com jonny blubBlub@gmail.com
- /etc/postfix/virtual
root root.myhost@gmx.de jonny blubBlub@gmail.com
- /etc/postfix/sasl_password
[smtp.gmail.com]:587 my.server@gmail.com:Geheim
postmap sender_canonical postmap sasl_password postmap virtual