Postfix Dovecot Notes - Ubuntu 12.04 LTS

Postfix config files are in /etc/postfix path
Dovecot config files are in /etc/dovecot path

Add New Mail Account

Either you need to install postfixadmin packages or you can do it from terminal.
How to add a new mail account from terminal is explained here step by step.

  1. Login as root to mail server
  2. Execute below command
    useradd -g vmail -d /var/mail -s /sbin/nologin testuser
    passwd testuser

    Now a new user in system is created. Please note that this user does not have login privilege.

  3. Goto your email client and check mail with user as testuser and password as set by you.
Enable / Disable debug information for Postfix
  1. To enable / disable logs for postfix, goto /etc/postfix/master.cf file and modify below line
    smtp inet n - n - - smtpd

    to

    smtp inet n - n - - smtpd -v
Enable / Disable debug information for Dovecot
  1. To enable disable logs for Dovecot goto /etc/dovecot/conf.d/10-logging.conf file and comment below entries
    log_path = /var/log/dovecot.log
    debug_log_path = /var/log/dovecot.log
  2. Modify line
    auth_verbose = yes

    to

    auth_verbose = no
  3. Modify line
    auth_debug = yes

    to

    auth_debug = no
  4. Modify line
    auth_debug_passwords = yes

    to

    auth_debug_passwords = no
Disable Logs for Roundcube
  1. Go to webmail/config/config.inc.php file
  2. Modify line
    $config['imap_debug'] = true;

    to

    $config['imap_debug'] = false;
Restart Services
  1. Also you need to restart the corresponding service so that your new configuration takes effect.
    /etc/init.d/postfix restart
    /etc/init.d/dovecot restart