I'm not sure what the best way to expunge Courier + Maildrop might be, or if leaving both installed will cause problems while installing Dovecot + Sieve, but this is my personal recipe for mail on Debian (including Ubuntu):
Code:
# apt-get install postfix postfix-mysql postfix-doc mysql-client mysql-server libsasl2-2 libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql openssl getmail4 rkhunter binutils dovecot-imapd dovecot-pop3d
Edit
/etc/postfix/master.cf and ensure that the services section of the file has the same lines as below un-commented; this enables email users to send and receive email over SSL:
Code:
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - - - - smtpd
submission inet n - - - - smtpd
# -o smtpd_tls_security_level=encrypt
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject
-o milter_macro_daemon_name=ORIGINATING
smtps inet n - - - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
Clients who wish to use STARTTLS should use the standard ports for POP3 (110), IMAP (143), and SMTP (25). Clients who wish to use SSL/TLS should use port 995 for POP3, port 993 for IMAP, and port 465 for SMTP.
Code:
# /etc/init.d/postfix restart
NOTE: The postfix config file can be found at
/etc/postfix/main.cf and the master postfix config file can be found at
/etc/postfix/master.cf. Note also that postfix may be reconfigured at any time with
Code:
# dpkg-reconfigure postfix
(
IMPORTANT: Ensure that
/etc/mailname contains the correct hostname whenever postfix is reconfigured.)
Install Amavisd-new, SpamAssassin, and Clamav:
Code:
# apt-get install amavisd-new spamassassin clamav clamav-daemon zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perl
The following messages of interest may be included in the output:
Code:
Setting up clamav-daemon (0.96.3+dfsg-2ubuntu1.0.10.04.1) ...
* Clamav signatures not found in /var/lib/clamav
* Please retrieve them using freshclam or install the clamav-data package
* Then run '/etc/init.d/clamav-daemon start'
Code:
SpamAssassin Mail Filter Daemon: disabled, see /etc/default/spamassassin
Despite the SpamAssasin message, the configuration file at
/etc/default/spamassassin may contain ENABLED=1; ensure that this is the case. Note also that the amavis configuration file may be found at
/etc/amavis/conf.d/50-user and the amavis log file may be found at
/var/log/amavis.log.
ISPConfig should be reconfigured at this point. Accept all of the defaults during installation. The reconfiguration process may undo some of the above changes, so it is important to double-check the above steps after reconfiguring ISPConfig. To reconfigure:
Code:
# ispconfig_update.sh
Don't forget to log into ISPConfig and change the Mail service settings to Dovecot + Sieve.
Those are the basics!
Recent comments
18 hours 16 min ago
18 hours 21 min ago
23 hours 19 min ago
1 day 6 hours ago
1 day 6 hours ago
1 day 8 hours ago
1 day 12 hours ago
1 day 19 hours ago
1 day 22 hours ago
2 days 31 min ago