1 Um noch eine SMTP Auth anzubieten um seine Clients beim Versenden zu authentifieren müssen folgende Dateien so verändert werden:
5 myhostname = mail.hostname.com
6 myorigin = /etc/mailname
8 alias_maps = $alias_database
9 virtual_mailbox_domains = hash:/etc/postfix/virtual_domains
11 virtual_mailbox_base = /srv/vmail
13 virtual_alias_maps = hash:/etc/postfix/virtual_maps
14 #virtual_minimum_uid = 101
16 virtual_uid_maps = static:5000
17 virtual_gid_maps = static:5000
19 virtual_transport = dovecot
21 virtual_mailbox_limit = 10240000
23 # dovecot_destination_recipient_limit = 1
25 mydestination = localhost
26 mynetworks = 127.0.0.0/8
28 smtpd_banner = $myhostname ESMTP Mailserver
31 # Zertifikate für SMTP
32 smtpd_tls_cert_file = /etc/postfix/mail.cert
33 smtpd_tls_key_file = /etc/postfix/mail.key
38 smtpd_tls_auth_only = no
40 # SALS Auth für Dovecot
41 smtpd_sasl_auth_enable = yes
42 smtpd_sasl_type = dovecot
43 smtpd_sasl_path = private/auth
44 smtpd_sasl_security_options = noanonymous
45 smtpd_sasl_local_domain =
46 smtp_sasl_auth_enable = no
47 broken_sasl_auth_clients = yes
49 # Mailbox Einstellungen
50 mailbox_size_limit = 512000000
51 message_size_limit = 104857600
55 smtpd_helo_required = yes
56 smtpd_helo_restrictions = reject_invalid_hostname
58 smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
60 smtpd_sender_restrictions = reject_unknown_address
62 smtpd_client_restrictions = reject_invalid_hostname
64 strict_rfc821_envelopes = yes
67 '''Diese Zeile in der master.cf'''
69 smtp inet n - n - - smtpd
74 base_dir = /var/run/dovecot/
75 # log_path = /var/log/dovecot.log
78 verbose_proctitle = yes
79 #first_valid_uid = 3000
80 #last_valid_uid = 3000
83 #valid_chroot_dirs = /var/mail
84 mail_location = maildir:~/Maildir
85 maildir_copy_with_hardlinks = yes
87 disable_plaintext_auth = yes
98 path = /var/spool/postfix/private/auth
105 path = /var/run/dovecot/auth-master
115 args = /etc/dovecot/dovecot.passwd
120 args = uid=vmail gid=vmail home=/srv/vmail/%u
126 postmaster_address = postmaster@hostname.com