Dear everyone,
I am trying to get my Email set-up to work, and wonder if someone would shed some light onto this?
Best regards, J.
Set-up is :
postfix -> dovecot LDA -> mysql <- postfixadmin
What works: postfix delivers to dovecot. postfixadmin is configured, and have created one domain test.info.
What is broken: dovecot is mis-configured. postfixadmin might well be mis-configured.
I have followed the instructions in the postfixadmin/DOCUMENTS/DOVECOT.TXT for the additional dovecot configuration.
*** ERROR MESSAGES All Emails passed from postfix to dovecot generate: Jan 4 20:35:02 logout dovecot: deliver(test@test.info): Unknown dict module: quota Jan 4 20:35:02 logout dovecot: deliver(test@test.info): Fatal: Quota root storage=200000 proxy init() failed Jan 4 20:57:18 logout dovecot: IMAP(test@test.info): mkdir(/var/mail/vmail/test.info/test@test.info/cur) failed: Permission denied (euid=5000(vmail) egid=5000(vmail) missing +w perm: /var/mail)
** DOVECOT -n # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-xxxxxxxx-xxxxx x86_64 Debian squeeze/sid log_timestamp: %Y-%m-%d %H:%M:%S disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/lib/dovecot/imap-login login_chroot: no first_valid_uid: 106 mail_privileged_group: mail mail_location: maildir:/var/mail/vmail/%d/%u/ mbox_write_locks: fcntl dotlock lda: log_path: auth_socket_path: /var/run/dovecot/auth-master postmaster_address: postmaster@test.info mail_plugins: sieve quota auth default: mechanisms: plain login passdb: driver: pam passdb: driver: sql args: /etc/dovecot/dovecot-sql.conf userdb: driver: passwd userdb: driver: static args: uid=5000 gid=5000 home=/var/vmail/%d/%n allow_all_users=yes userdb: driver: sql args: /etc/dovecot/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 user: vmail plugin: quota: dict:storage=200000 proxy::quota quota: dict:storage=200000 proxy::quota:w dict: quota: mysql:/etc/dovecot/dovecot-dict-quota.conf
*** MYSQL DOVECOT FILES # grep -v '^ *\(#.*\)\?$' dovecot-sql.conf connect = host=localhost dbname=xxxxx user=xxxxx password=xxxxx driver = mysql default_pass_scheme = MD5-CRYPT password_query = SELECT username AS user,password FROM mailbox WHERE username = '%u' AND active='1' user_query = SELECT CONCAT('/var/vmail/', maildir) AS home, 106 AS uid, 110 AS gid, CONCAT('*:bytes=', quota) AS quota_rule FROM mailbox WHERE username = '%u' AND active='1' ## Note: 106:110 = postfix:avahi For some reason squeeze drops postfix into avahi group: To Fix.
*** DICT QUOTA # cat /etc/dovecot/dovecot-dict-quota.conf driver = mysql connect = host=localhost dbname=xxxxx user=xxxxx password=xxxxx default_pass_scheme = MD5-CRYPT table = quota select_field = current where_field = path username_field = username
*** /VAR/VMAIL directory # ls -la /var/vmail total 28 drwxrwx--- 3 vmail vmail 4096 Jan 4 20:53 . drwxr-xr-x 15 root root 4096 Jan 3 12:19 .. -rw-r--r-- 1 root root 0 Jan 3 15:14 auth_socket_path -rw-r--r-- 1 root root 173 Dec 31 12:15 globalsieverc -rw-r--r-- 1 root root 0 Jan 3 15:14 info_log_path -rw-r--r-- 1 root root 0 Jan 3 15:14 log_path drwx------ 2 root root 16384 Jan 4 15:28 lost+found -rw-r--r-- 1 root root 0 Jan 3 15:14 mail_plugins -rw-r--r-- 1 root root 0 Jan 3 15:14 postmaster_address
*** VMAIL user vmail:x:5000:5000::/var/vmail:/bin/sh (soon to be changed to /bin/false after testing completed) dovecot:x:109:114:Dovecot mail server,,,:/usr/lib/dovecot:/bin/false postfix:x:106:110::/var/spool/postfix:/bin/false