]> git.deb.at Git - debienna.git/blob - LittleMailserverSMTP/index.mdwn
use unix newlines everywhere
[debienna.git] / LittleMailserverSMTP / index.mdwn
1 Um noch eine SMTP Auth anzubieten um seine Clients beim Versenden zu authentifieren müssen folgende Dateien so verändert werden:
2
3 '''main.cf'''
4 {{{
5 myhostname = mail.hostname.com
6 myorigin = /etc/mailname
7
8 alias_maps = $alias_database
9 virtual_mailbox_domains         = hash:/etc/postfix/virtual_domains
10
11 virtual_mailbox_base            = /srv/vmail
12
13 virtual_alias_maps              = hash:/etc/postfix/virtual_maps
14 #virtual_minimum_uid             = 101
15
16 virtual_uid_maps                = static:5000
17 virtual_gid_maps                = static:5000
18
19 virtual_transport               = dovecot
20
21 virtual_mailbox_limit = 10240000
22
23 # dovecot_destination_recipient_limit = 1
24
25 mydestination = localhost
26 mynetworks = 127.0.0.0/8
27
28 smtpd_banner = $myhostname ESMTP Mailserver
29 home_mailbox = mails/
30
31 # Zertifikate für SMTP
32 smtpd_tls_cert_file = /etc/postfix/mail.cert
33 smtpd_tls_key_file = /etc/postfix/mail.key
34
35 # SMTP Einstellungen
36 smtpd_use_tls = yes
37 #tpd_enforce_tls = no
38 smtpd_tls_auth_only = no
39
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
48
49 # Mailbox Einstellungen
50 mailbox_size_limit = 512000000
51 message_size_limit = 104857600
52
53
54 # Antispam Confis
55 smtpd_helo_required = yes
56 smtpd_helo_restrictions = reject_invalid_hostname
57
58 smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
59
60 smtpd_sender_restrictions = reject_unknown_address
61
62 smtpd_client_restrictions = reject_invalid_hostname
63
64 strict_rfc821_envelopes = yes
65 }}}
66
67 '''Diese Zeile in der master.cf'''
68 {{{
69 smtp    inet    n       -       n       -       -       smtpd
70 }}}
71
72 '''dovecot.conf'''
73 {{{
74 base_dir = /var/run/dovecot/
75 # log_path = /var/log/dovecot.log
76 protocols = imap
77 ssl_disable = no
78 verbose_proctitle = yes
79 #first_valid_uid = 3000
80 #last_valid_uid = 3000
81 #first_valid_gid = 8
82 #last_valid_gid = 8
83 #valid_chroot_dirs = /var/mail
84 mail_location = maildir:~/Maildir
85 maildir_copy_with_hardlinks = yes
86
87 disable_plaintext_auth = yes
88
89 protocol imap {
90 }
91
92 # auth_verbose = yes
93
94 auth default {
95         socket listen {
96
97         client {
98                 path = /var/spool/postfix/private/auth
99                 mode = 0660
100                 user = postfix
101                 group = postfix
102             }
103
104         master {
105             path = /var/run/dovecot/auth-master
106             mode = 0600
107             user = vmail
108             group = vmail
109             }
110
111         }
112         mechanisms = plain
113
114         passdb passwd-file {
115             args = /etc/dovecot/dovecot.passwd
116         }
117         passdb pam {
118         }
119         userdb static {
120           args = uid=vmail gid=vmail home=/srv/vmail/%u
121         }
122
123 }
124
125 protocol lda {
126         postmaster_address = postmaster@hostname.com
127 }
128 }}}