]> git.deb.at Git - debienna.git/blobdiff - LittleMailserverSMTP/index.mdwn
add links
[debienna.git] / LittleMailserverSMTP / index.mdwn
index f98eb3ea089b5a0e91351ee337cdeb66205f075e..3a1e707afbce95894f7a4103b5ab4f248ef10073 100644 (file)
-Um noch eine SMTP Auth anzubieten um seine Clients beim Versenden zu authentifieren müssen folgende Dateien so verändert werden:\r
-\r
-'''main.cf'''\r
-{{{\r
-myhostname = mail.hostname.com\r
-myorigin = /etc/mailname\r
-\r
-alias_maps = $alias_database\r
-virtual_mailbox_domains         = hash:/etc/postfix/virtual_domains\r
-\r
-virtual_mailbox_base            = /srv/vmail\r
-\r
-virtual_alias_maps              = hash:/etc/postfix/virtual_maps\r
-#virtual_minimum_uid             = 101\r
-\r
-virtual_uid_maps                = static:5000\r
-virtual_gid_maps                = static:5000\r
-\r
-virtual_transport               = dovecot\r
-\r
-virtual_mailbox_limit = 10240000\r
-\r
-# dovecot_destination_recipient_limit = 1\r
-\r
-mydestination = localhost\r
-mynetworks = 127.0.0.0/8\r
-\r
-smtpd_banner = $myhostname ESMTP Mailserver\r
-home_mailbox = mails/\r
-\r
-# Zertifikate für SMTP\r
-smtpd_tls_cert_file = /etc/postfix/mail.cert\r
-smtpd_tls_key_file = /etc/postfix/mail.key\r
-\r
-# SMTP Einstellungen\r
-smtpd_use_tls = yes\r
-#tpd_enforce_tls = no\r
-smtpd_tls_auth_only = no\r
-\r
-# SALS Auth für Dovecot\r
-smtpd_sasl_auth_enable = yes\r
-smtpd_sasl_type = dovecot\r
-smtpd_sasl_path = private/auth\r
-smtpd_sasl_security_options = noanonymous\r
-smtpd_sasl_local_domain =\r
-smtp_sasl_auth_enable = no\r
-broken_sasl_auth_clients = yes\r
-\r
-# Mailbox Einstellungen\r
-mailbox_size_limit = 512000000\r
-message_size_limit = 104857600\r
-\r
-\r
-# Antispam Confis\r
-smtpd_helo_required = yes\r
-smtpd_helo_restrictions = reject_invalid_hostname\r
-\r
-smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination\r
-\r
-smtpd_sender_restrictions = reject_unknown_address\r
-\r
-smtpd_client_restrictions = reject_invalid_hostname\r
-\r
-strict_rfc821_envelopes = yes\r
-}}}\r
-\r
-'''Diese Zeile in der master.cf'''\r
-{{{\r
-smtp    inet    n       -       n       -       -       smtpd\r
-}}}\r
-\r
-'''dovecot.conf'''\r
-{{{\r
-base_dir = /var/run/dovecot/\r
-# log_path = /var/log/dovecot.log\r
-protocols = imap\r
-ssl_disable = no\r
-verbose_proctitle = yes\r
-#first_valid_uid = 3000\r
-#last_valid_uid = 3000\r
-#first_valid_gid = 8\r
-#last_valid_gid = 8\r
-#valid_chroot_dirs = /var/mail\r
-mail_location = maildir:~/Maildir\r
-maildir_copy_with_hardlinks = yes\r
-\r
-disable_plaintext_auth = yes\r
-\r
-protocol imap {\r
-}\r
-\r
-# auth_verbose = yes\r
-\r
-auth default {\r
-        socket listen {\r
-\r
-        client {\r
-                path = /var/spool/postfix/private/auth\r
-                mode = 0660\r
-                user = postfix\r
-                group = postfix\r
-            }\r
-\r
-        master {\r
-            path = /var/run/dovecot/auth-master\r
-            mode = 0600\r
-            user = vmail\r
-            group = vmail\r
-            }\r
-\r
-        }\r
-        mechanisms = plain\r
-\r
-        passdb passwd-file {\r
-            args = /etc/dovecot/dovecot.passwd\r
-        }\r
-        passdb pam {\r
-        }\r
-        userdb static {\r
-          args = uid=vmail gid=vmail home=/srv/vmail/%u\r
-        }\r
-\r
-}\r
-\r
-protocol lda {\r
-        postmaster_address = postmaster@hostname.com\r
-}\r
-}}}
\ No newline at end of file
+
+Um noch eine SMTP Auth anzubieten um seine Clients beim Versenden zu authentifieren müssen folgende Dateien so verändert werden:
+
+**main.cf**
+[[!format txt """
+myhostname = mail.hostname.com
+myorigin = /etc/mailname
+
+alias_maps = $alias_database
+virtual_mailbox_domains         = hash:/etc/postfix/virtual_domains
+
+virtual_mailbox_base            = /srv/vmail
+
+virtual_alias_maps              = hash:/etc/postfix/virtual_maps
+#virtual_minimum_uid             = 101
+
+virtual_uid_maps                = static:5000
+virtual_gid_maps                = static:5000
+
+virtual_transport               = dovecot
+
+virtual_mailbox_limit = 10240000
+
+# dovecot_destination_recipient_limit = 1
+
+mydestination = localhost
+mynetworks = 127.0.0.0/8
+
+smtpd_banner = $myhostname ESMTP Mailserver
+home_mailbox = mails/
+
+# Zertifikate für SMTP
+smtpd_tls_cert_file = /etc/postfix/mail.cert
+smtpd_tls_key_file = /etc/postfix/mail.key
+
+# SMTP Einstellungen
+smtpd_use_tls = yes
+#tpd_enforce_tls = no
+smtpd_tls_auth_only = no
+
+# SALS Auth für Dovecot
+smtpd_sasl_auth_enable = yes
+smtpd_sasl_type = dovecot
+smtpd_sasl_path = private/auth
+smtpd_sasl_security_options = noanonymous
+smtpd_sasl_local_domain =
+smtp_sasl_auth_enable = no
+broken_sasl_auth_clients = yes
+
+# Mailbox Einstellungen
+mailbox_size_limit = 512000000
+message_size_limit = 104857600
+
+
+# Antispam Confis
+smtpd_helo_required = yes
+smtpd_helo_restrictions = reject_invalid_hostname
+
+smtpd_recipient_restrictions = permit_mynetworks, reject_unknown_recipient_domain, permit_sasl_authenticated, reject_unauth_destination
+
+smtpd_sender_restrictions = reject_unknown_address
+
+smtpd_client_restrictions = reject_invalid_hostname
+
+strict_rfc821_envelopes = yes
+"""]]
+**Diese Zeile in der master.cf**
+[[!format txt """
+smtp    inet    n       -       n       -       -       smtpd
+"""]]
+**dovecot.conf**
+[[!format txt """
+base_dir = /var/run/dovecot/
+# log_path = /var/log/dovecot.log
+protocols = imap
+ssl_disable = no
+verbose_proctitle = yes
+#first_valid_uid = 3000
+#last_valid_uid = 3000
+#first_valid_gid = 8
+#last_valid_gid = 8
+#valid_chroot_dirs = /var/mail
+mail_location = maildir:~/Maildir
+maildir_copy_with_hardlinks = yes
+
+disable_plaintext_auth = yes
+
+protocol imap {
+}
+
+# auth_verbose = yes
+
+auth default {
+        socket listen {
+
+        client {
+                path = /var/spool/postfix/private/auth
+                mode = 0660
+                user = postfix
+                group = postfix
+            }
+
+        master {
+            path = /var/run/dovecot/auth-master
+            mode = 0600
+            user = vmail
+            group = vmail
+            }
+
+        }
+        mechanisms = plain
+
+        passdb passwd-file {
+            args = /etc/dovecot/dovecot.passwd
+        }
+        passdb pam {
+        }
+        userdb static {
+          args = uid=vmail gid=vmail home=/srv/vmail/%u
+        }
+
+}
+
+protocol lda {
+        postmaster_address = postmaster@hostname.com
+}
+"""]]