Postfix: Unterschied zwischen den Versionen

Aus Info-Theke
Zur Navigation springen Zur Suche springen
Zeile 1: Zeile 1:
[[Kategorie:ServerApplikation]]
[[Kategorie:ServerApplikation]]
== Smart Host ==
* /etc/postfix/main.cf
<pre>smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = vmd9593.e-motional-experience.de
relayhost = [mail.gmx.net]
smtp_sasl_auth_enabled = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_tls_security_level = may
</pre>
* /etc/postfix/sasl_passwd
<pre>echo "[mail.gmx.net] 314444931:1G.e.h.t.H.e.i.m" > /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd
</pre>
== Zentrales Postfachverzeichis==
== Zentrales Postfachverzeichis==
Wenn man Postfachbenutzer hat, die keine Systemkonto haben, so bietet sich ein  
Wenn man Postfachbenutzer hat, die keine Systemkontos haben, so bietet sich ein  
zentrales Verzeichnis für alle Postfächer an
zentrales Verzeichnis für alle Postfächer an



Version vom 3. Juni 2017, 01:58 Uhr


Smart Host

  • /etc/postfix/main.cf
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = vmd9593.e-motional-experience.de

relayhost = [mail.gmx.net]
smtp_sasl_auth_enabled = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_tls_security_level = may
  • /etc/postfix/sasl_passwd
echo "[mail.gmx.net] 314444931:1G.e.h.t.H.e.i.m" > /etc/postfix/sasl_passwd
postmap /etc/postfix/sasl_passwd

Zentrales Postfachverzeichis

Wenn man Postfachbenutzer hat, die keine Systemkontos haben, so bietet sich ein zentrales Verzeichnis für alle Postfächer an

# /etc/postfix/main.cf:
virtual_mailbox_domains = f-r-e-i.de
virtual_mailbox_base = /home/Mail/
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_minimum_uid = 1030
virtual_uid_maps = static:1033
virtual_gid_maps = static:533
# /etc/postfix/vmailbox:
wk@f-r-e-i.de    f-r-e-i.de/wk
# Comment out the entry below to implement a catch-all.
# @ef-r-e-i.de     f-r-e-i.de/catchall

Aktivieren der Konfiguration:

postmap /etc/postfix/vmailbox
/etc/init.d/postfix restart

Weiterleitung

main.cf:

virtual_alias_domains = i-sar.de f-r-e-i.de hm.f-r-e-i.de miteinander-reden.com au.f-r-e-i.de siduction.net siduction.org emas-consult.de
virtual_alias_maps = hash:/etc/postfix/virtual

virtual:

hm@f-r-e-i.de hamatoma@gmx.de