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