Postfix
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
# /etc/postfix/virtual <pre>/etc/postfix/virtual hm hm.neutral@gmx.de @hamatoma.de hamatoma@gmx.de # Blacklist: zimmer@hm.f-r-e-i.de devnull
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