View Single Post
  #71  
Old 20th January 2012, 03:12
cbj4074 cbj4074 is offline
Senior Member
 
Join Date: Nov 2010
Posts: 392
Thanks: 29
Thanked 58 Times in 50 Posts
Default

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!

Last edited by cbj4074; 20th January 2012 at 04:06. Reason: Added reconfiguration of ISPConfig.
Reply With Quote
Sponsored Links