2 Um noch eine SMTP Auth anzubieten um seine Clients beim Versenden zu authentifieren müssen folgende Dateien so verändert werden:
6 myhostname = mail.hostname.com
7 myorigin = /etc/mailname
9 alias_maps = $alias_database
10 virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
12 virtual_mailbox_base = /srv/vmail
14 virtual_alias_maps = hash:/etc/postfix/virtual_maps
15 #virtual_minimum_uid = 101
17 virtual_uid_maps = static:5000
18 virtual_gid_maps = static:5000
20 virtual_transport = dovecot
22 virtual_mailbox_limit = 10240000
24 # dovecot_destination_recipient_limit = 1
26 mydestination = localhost
27 mynetworks = 127.0.0.0/8
29 smtpd_banner = $myhostname ESMTP Mailserver
32 # Zertifikate für SMTP
33 smtpd_tls_cert_file = /etc/postfix/mail.cert
34 smtpd_tls_key_file = /etc/postfix/mail.key
39 smtpd_tls_auth_only = no
41 # SALS Auth für Dovecot
42 smtpd_sasl_auth_enable = yes
43 smtpd_sasl_type = dovecot
44 smtpd_sasl_path = private/auth
45 smtpd_sasl_security_options = noanonymous
46 smtpd_sasl_local_domain =
47 smtp_sasl_auth_enable = no
48 broken_sasl_auth_clients = yes
50 # Mailbox Einstellungen
51 mailbox_size_limit = 512000000
52 message_size_limit = 104857600
56 smtpd_helo_required = yes
57 smtpd_helo_restrictions = reject_invalid_hostname
59 smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
61 smtpd_sender_restrictions = reject_unknown_address
63 smtpd_client_restrictions = reject_invalid_hostname
65 strict_rfc821_envelopes = yes
67 **Diese Zeile in der master.cf**
69 smtp inet n - n - - smtpd
73 base_dir = /var/run/dovecot/
74 # log_path = /var/log/dovecot.log
77 verbose_proctitle = yes
78 #first_valid_uid = 3000
79 #last_valid_uid = 3000
82 #valid_chroot_dirs = /var/mail
83 mail_location = maildir:~/Maildir
84 maildir_copy_with_hardlinks = yes
86 disable_plaintext_auth = yes
97 path = /var/spool/postfix/private/auth
104 path = /var/run/dovecot/auth-master
114 args = /etc/dovecot/dovecot.passwd
119 args = uid=vmail gid=vmail home=/srv/vmail/%u
125 postmaster_address = postmaster@hostname.com