django-orchestra/scripts/services/postfix.md

1.2 KiB

apt-get install postfix

http://www.postfix.org/VIRTUAL_README.html#virtual_mailbox

https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto

http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix

http://www.mailscanner.info/ubuntu.html

apt-get install dovecot-core dovecot-imapd dovecot-pop3d dovecot-lmtpd dovecot-sieve sed -i "s#^mail_location = mbox.*#mail_location = maildir:~/Maildir#" /etc/dovecot/conf.d/10-mail.conf echo 'auth_username_format = %n' >> /etc/dovecot/conf.d/10-auth.conf echo 'service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0600 user = postfix } }' >> /etc/dovecot/conf.d/10-master.conf

cat > /etc/apt/sources.list.d/mailscanner.list << 'EOF' deb http://apt.baruwa.org/debian wheezy main deb-src http://apt.baruwa.org/debian wheezy main EOF

wget -O - http://apt.baruwa.org/baruwa-apt-keys.gpg | apt-key add -

apt-get update apt-get install mailscanner

apt-get install postfix echo 'home_mailbox = Maildir/' >> /etc/postfix/main.cf echo 'mailbox_transport = lmtp:unix:private/dovecot-lmtp' >> /etc/postfix/main.cf

/etc/init.d/dovecot restart /etc/init.d/postfix restart