-= Postfix Dovecot Pam =
-''' master.cf '''
+
+# Postfix Dovecot Pam
+
+** master.cf **
# xxx.xxx.xxx.xxx = ipadresse; um den smtp server auf eine ip zu binden
-{{{
+[[!format txt """
xxx.xxx.xxx.xxx:smtp inet n - - - - smtpd
dovecot unix - n n - - pipe
flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
-}}}
+"""]]
+** virtual_domains **
-''' virtual_domains '''
-{{{
+[[!format txt """
example.net ACCEPT
domain.com ACCEPT
-}}}
-
+"""]]
postmap /etc/postfix/virtual_domains
+** main.cf **
-''' main.cf '''
-{{{
+[[!format txt """
myhostname = mail.example.net
myorigin = /etc/mailname
header_checks = regexp:/etc/postfix/header_checks
body_checks surf to http://www.malware.com.br
-}}}
+"""]]
+** /etc/postfix/header_checks **
-''' /etc/postfix/header_checks '''
-{{{
+[[!format txt """
/^Received:/ HOLD
/^X-Spam-Level: (\*){8,}/ REDIRECT sa-spam
-}}}
-
-''' dovecot.cf '''
-{{{
+"""]]
+** dovecot.cf **
+[[!format txt """
base_dir = /var/run/dovecot/
#log_path = /var/log/dovecot.log
protocols = imap
postmaster_address = host@example.net
}
-}}}
-''' addmailuser.sh '''
-{{{
+"""]]
+** addmailuser.sh **
+[[!format txt """
#!/bin/sh -x
echo "usage: $0 <newusername>"
chown vmail:vmail /srv/vmail/$1 -R
htpasswd /etc/dovecot/dovecot.passwd $1
-}}}
-
-''' pam.d/dovecot '''
+"""]]
+** pam.d/dovecot **
aptitude install libpam_pwdfile
-{{{
+
+[[!format txt """
#%PAM-1.0
auth required pam_pwdfile.so pwdfile=/etc/dovecot/dovecot.passwd debug
#@include common-auth
#@include common-account
#@include common-session
-}}}
+"""]]
-{{{
+[[!format txt """
aptitude install policyd-weight
-}}}
-
-[[http://rikman.mtb-news.de/archives/2005/12/13/postgrey-unter-debian-einrichten/|postgrey-unter-debian-einrichten]]
+"""]]
+[[postgrey-unter-debian-einrichten|http://rikman.mtb-news.de/archives/2005/12/13/postgrey-unter-debian-einrichten/]]
-[[http://packages.debian.org/etch/mailscanner|MailScanner Debian-package]]
+[[MailScanner Debian-package|http://packages.debian.org/etch/mailscanner]]
-[[http://www.delodder.be/index.php/2007/10/18/mailscanner-with-postfix-on-etch/#more-86|MailScanner With Postfix on Etch]]
+[[MailScanner With Postfix on Etch|http://www.delodder.be/index.php/2007/10/18/mailscanner-with-postfix-on-etch/#more-86]]
-[[http://www.delodder.be/index.php/2007/10/22/add-anti-virus-support-to-mailscanner/#more-88|Add Anti-Virus support to MailScanner]]
+[[Add Anti-Virus support to MailScanner|http://www.delodder.be/index.php/2007/10/22/add-anti-virus-support-to-mailscanner/#more-88]]
+Um noch den Usern zu ermöglichen ihre Mails über den Server zu relayen sollte man eine SMTP Authentifizierung benutzen. Falls die Clients statisce IPs besitzen kann man diese natürlich auch in der main.cf unter my_networks eintragen. Wie eine mögliche SMTP Auth ausehen kann findet sich unter [[LittleMailserverSMTP|LittleMailserverSMTP]]
-Um noch den Usern zu ermöglichen ihre Mails über den Server zu relayen sollte man eine SMTP Authentifizierung benutzen. Falls die Clients statisce IPs besitzen kann man diese natürlich auch in der main.cf unter my_networks eintragen. Wie eine mögliche SMTP Auth ausehen kann findet sich unter [[LittleMailserverSMTP]]
-----
-CategoryCodeSnippets CategoryTipsAndTricks
\ No newline at end of file
+ [[!tag CategoryCodeSnippets]] [[!tag CategoryTipsAndTricks]]