Re: [Dovecot] OpenBSD and Dovecot (mysql support)
On 10/2/2009, jean-francois (jfsimon1...@gmail.com) wrote: Has anyone already built dovecot server to run with with a mysql base ? I'd say maybein the thousands... The db worked but the config file is hardly something I could do to work properly as it should be, it does even not run saying various errors found in dovecot.conf Please don't guess or ask us to... Output of dovecot -n might be instructive. -- Best regards, Charles
[Dovecot] Configuring for virtual users in Postfix
FreeBSD-7.2 with Postfix-2.7x OK, this is my first attempt to configure Dovecot using Postfix and virtual users. In the LDA.Postfix.txt file, there is a reference to making the following setting: dovecot_destination_recipient_limit = 1 virtual_mailbox_domains = your.domain.here virtual_transport = dovecot However, Postfix does not recognize the dovecot_destination_recipient_limit = 1 setting. There is a virtual_destination_recipient_limit = setting in Postfix. Is that the setting that I should tweak? -- Jerry ges...@yahoo.com There is no TRUTH. There is no REALITY. There is no CONSISTENCY. There are no ABSOLUTE STATEMENTS. I'm very probably wrong.
Re: [Dovecot] Configuring for virtual users in Postfix
On 10/3/2009, Jerry (ges...@yahoo.com) wrote: However, Postfix does not recognize the dovecot_destination_recipient_limit = 1 setting. What do you mean it does not recognize it? If you mean it doesn't show up in output of postconf -n, thats normal (though irritating). Here's a quote from Wietse about this in response to someone else's question about the same thing: The postconf command does not read master.cf, therefore parameters such as transport_destination_recipient_limit parameters usually don't appear in postconf output. There is a virtual_destination_recipient_limit = setting in Postfix. Is that the setting that I should tweak? No... is something not working right? -- Best regards, Charles
Re: [Dovecot] Configuring for virtual users in Postfix
On Sat, Oct 03, 2009 at 11:06:56AM -0400, Jerry wrote: FreeBSD-7.2 with Postfix-2.7x dovecot_destination_recipient_limit = 1 virtual_mailbox_domains = your.domain.here virtual_transport = dovecot Have you also populated the LDA to 'master.cf'? dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} Regards Thomas
Re: [Dovecot] Configuring for virtual users in Postfix
On Sat, 03 Oct 2009 11:23:50 -0400 Charles Marcus cmar...@media-brokers.com wrote: On 10/3/2009, Jerry (ges...@yahoo.com) wrote: However, Postfix does not recognize the dovecot_destination_recipient_limit = 1 setting. What do you mean it does not recognize it? If you mean it doesn't show up in output of postconf -n, thats normal (though irritating). Here's a quote from Wietse about this in response to someone else's question about the same thing: The postconf command does not read master.cf, therefore parameters such as transport_destination_recipient_limit parameters usually don't appear in postconf output. There is a virtual_destination_recipient_limit = setting in Postfix. Is that the setting that I should tweak? No... is something not working right? I am not sure yet. I am still configuring Dovecot. I have just started using Virtual users/domains in Postfix and now want to incorporate Dovecot into the mix. I did just Googled around and found out about the dovecot_destination_recipient_limit = 1 setting though. I am just about to start up a test box to try everything out. I have one more question. Will Dovecot create the directory structure or do I have to create it myself. EXAMPLE: maildir directory: /var/mail/vhost/domain/user/{cur,new,tmp} If just the /var/mail/vhost structure exists, will Dovecot complete the directory structure? -- Jerry ges...@yahoo.com They are relatively good but absolutely terrible. Alan Kay, commenting on Apollos
Re: [Dovecot] Configuring for virtual users in Postfix
On Oct 3, 2009, at 11:54 AM, Jerry wrote: maildir directory: /var/mail/vhost/domain/user/{cur,new,tmp} If just the /var/mail/vhost structure exists, will Dovecot complete the directory structure? If it has enough permissions, yes.
[Dovecot] Another 1.2.5 imap panic
We've had another random imap process crash. This is with the original 1.2.5 imap (I haven't applied the patch for two processes creating an index simultaneously): Oct 03 13:24:56 imap-login: Info: Login: user=, method=PLAIN, rip=134.225.1.46, lip=134.225.16.6 Oct 03 13:25:59 IMAP 6067 134.225.1.46 : Info: delete: uid=483, msgid= Oct 03 13:28:06 IMAP 6067 134.225.1.46 : Info: expunge: uid=483, msgid=, size=63593 Oct 03 13:28:30 IMAP 6067 134.225.1.46 : Info: delete: uid=482, msgid= Oct 03 13:28:30 IMAP 6067 134.225.1.46 : Info: delete: uid=484, msgid= Oct 03 13:28:30 IMAP 6067 134.225.1.46 : Info: delete: uid=485, msgid= Oct 03 13:28:42 IMAP 6067 134.225.1.46 : Info: undelete: uid=485, msgid= Oct 03 13:28:51 IMAP 6067 134.225.1.46 : Info: delete: uid=486, msgid= Oct 03 13:28:54 IMAP 6067 134.225.1.46 : Info: expunge: uid=482, msgid=, size=273185 Oct 03 13:28:54 IMAP 6067 134.225.1.46 : Info: expunge: uid=484, msgid=, size=12740 Oct 03 13:28:54 IMAP 6067 134.225.1.46 : Info: expunge: uid=486, msgid=, size=52154 Oct 03 13:30:22 IMAP 6067 134.225.1.46 : Info: delete: uid=470, msgid= Oct 03 13:30:36 IMAP 6067 134.225.1.46 : Info: delete: uid=471, msgid= Oct 03 13:30:50 IMAP 6067 134.225.1.46 : Info: delete: uid=472, msgid= Oct 03 13:33:27 IMAP 6067 134.225.1.46 : Info: delete: uid=475, msgid= Oct 03 13:34:20 IMAP 6067 134.225.1.46 : Panic: file istream-raw-mbox.c: line 578 (istream_raw_mbox_get_body_size): assertion failed: (rstream-body_offset != (uoff_t)-1) Backtrace: Core was generated by `imap [ 134.225.1.46]'. Program terminated with signal 6, Abort. #0 0xff21fe78 in ?? () (gdb) bt #0 0xff21fe78 in ?? () #1 0xbe258 in ?? () #2 0xbeb14 in ?? () #3 0xbe414 in ?? () #4 0x5a238 in mail_index_update_flags (t=0xe29b8, seq=578, modify_type=37, flags=928984) at mail-index-transaction.c:697 #5 0x5a4d8 in mail_index_ext_resize (t=0x12a250, ext_id=4294967295, hdr_size=1221160, record_size=64549, record_align=0) at ../../src/lib/array.h:157 #6 0x5a7a0 in mail_index_update_ext (t=0x0, seq=0, ext_id=523301, data=0xffbeeb38, old_data_r=0x22094) at ../../src/lib/array.h:187 #7 0x5ae58 in _tview_close (view=0x1272a8) at mail-index-transaction-view.c:24 #8 0x5c7d8 in mail_index_sync_end (_ctx=0x) at mail-index-sync.c:636 #9 0x5cd74 in mail_index_sync_update_log_offset (ctx=0x12be80, map=0x11, eol=140) at mail-index-sync-update.c:59 #10 0x5cea4 in mail_index_map_msync (index=0x130d08, map=0x0) at mail-index-sync-update.c:72 #11 0x79354 in t_pop () at data-stack.c:160 #12 0x6a95c in mailbox_save_init () at mail-storage.c:526 #13 0x5ced0 in mail_index_map_msync (index=0x1296c0, map=0x11) at mail-index-sync-update.c:75 #14 0x79038 in buffer_get_size () at buffer.c:293 (see http://www.dovecot.org/list/dovecot/2009-September/043126.html for dovecot -n output etc.) BTW there's been no crashes of imap-login since the last patch for literals in login parameters :) Best Wishes, Chris -- --+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+- Christopher Wakelin, c.d.wake...@reading.ac.uk IT Services Centre, The University of Reading, Tel: +44 (0)118 378 8439 Whiteknights, Reading, RG6 2AF, UK Fax: +44 (0)118 975 3094
[Dovecot] Error: userdb lookup: connect(/var/run/dovecot/auth-master) failed: Permission denied
I am making my first attempt to get dovecot working with Postfix virtual users/domains. The following is the error log and the output of dovecot -n. I am probably doing something really stupid; however, I do not know what. Oct 03 17:50:41 pop3-login: Info: Login: user=u...@mydomain.com, method=PLAIN, rip=192.168.1.103, lip=192.168.1.103, TLS Oct 03 17:50:41 POP3(u...@mydomain.com): Info: Effective uid=1001, gid=1001, home=/var/mail/virtual/mydomain.com/user Oct 03 17:50:41 POP3(u...@mydomain.com): Info: maildir: data=/var/mail/vhost/seibercom.net/budman Oct 03 17:50:41 POP3(u...@mydomain.com): Info: maildir++: root=/var/mail/vhost/seibercom.net/budman, index=, control=, inbox=/var/mail/vhost/mydomain.com/user Oct 03 17:50:41 POP3(u...@mydomain.com): Info: Namespace : Using permissions from /var/mail/vhost/mydomain.com/user: mode=0755 gid=-1 Oct 03 17:50:41 POP3(u...@mydomain.com): Info: Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Oct 03 18:13:13 deliver(u...@mydomain.com): Error: userdb lookup: connect(/var/run/dovecot/auth-master) failed: Permission denied # dovecot -n # 1.2.4: /usr/local/etc/dovecot.conf # OS: FreeBSD 7.2-STABLE i386 ufs log_path: /usr/home/gerard/tmp/dovecot.log protocols: pop3 pop3s disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/pop3-login login_greeting: Dovecot serving mydomain.net greets you! verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 1000 mail_privileged_group: mail mail_location: maildir:/var/mail/vhost/%d/%n mail_debug: yes mail_executable: /usr/local/libexec/dovecot/pop3 mail_plugin_dir: /usr/local/lib/dovecot/pop3 pop3_client_workarounds: outlook-no-nuls oe-ns-eoh dict_db_config: /usr/local/etc/dovecot-db.conf lda: postmaster_address: postmas...@mydomain.net sendmail_path: /usr/sbin/sendmail auth default: mechanisms: plain login username_format: %Lu verbose: yes debug_passwords: yes passdb: driver: pam passdb: driver: passwd-file args: /usr/local/etc/dovecot_passwd userdb: driver: passwd args: blocking=yes userdb: driver: static args: uid=gerard gid=gerard home=/var/mail/virtual/%d/%n socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 master: path: /var/run/dovecot/auth-master mode: 384 -- Jerry ges...@yahoo.com What do you do when your real life exceeds your wildest fantasies? You keep it to yourself. Broadcast News
[Dovecot] deliver stopped working
Hi: I have been using Dovecot for well over a year now and it has always worked with few problems. The mail setup is not simple... Postfix+MailScanner+ClamAV+Docvecot+MySql+postfix.admin... just to mention the major things. The system is CentOS 5.3 on VMware. The maildir is on an NFS share, index and control is local. About a month ago I thought I upgraded from 1.1.x to 1.2.x. by doing an rpmbuild and deploying. I say thought because today I determined the binaries were still 1.1x. Today a reboot was done after a kernel upgrade (2.6.18-128.x - 2.6.18-164). The mail system never came back up. My assumption is that the working binaries were in memory but the images on disk were changed. Anyway, the problem is with deliver writing to the mail dir. The error is: Oct 3 21:33:58 myserver dovecot: auth(default): master in: USER 1 myacco...@mydomain.net service=deliver Oct 3 21:33:58 myserver dovecot: auth(default): prefetch(myacco...@mydomain.net): passdb didn't return userdb entries, trying the next userdb Oct 3 21:33:58 myserver dovecot: auth-worker(default): sql(myacco...@mydomain.net): SELECT '/home/vmail/mydomain.net/myaccount' as home, 'maildir:/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount' as mail, 5000 AS uid, 5000 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = 'myacco...@mydomain.net' AND active = '1' Oct 3 21:33:58 myserver dovecot: auth(default): master out: USER 1 myacco...@mydomain.net home=/home/vmail/mydomain.net/myaccount mail=maildir:/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount uid=5000gid=5000quota=dirsize:storage=0 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: home=/home/vmail/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: mail=maildir:/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: uid=5000 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: gid=5000 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: quota=dirsize:storage=0 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): maildir: data=/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): maildir++: root=/home/vmail/mydomain.net/myaccount, index=/var/indexes/mydomain.net/myaccount, control=/var/indexes/mydomain.net/myaccount, inbox=/home/vmail/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): Namespace : Using permissions from /home/vmail/mydomain.net/myaccount: mode=0770 gid=-1 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): open(/home/vmail/mydomain.net/myaccount/tmp/1254620038.M241510P27678.myserver.mydomain.net) failed: Permission denied Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): msgid=200910040116.n941gjtj001...@nm2srvp01.mydomain.net: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2009-10-03 21:33:58] Oct 3 21:33:58 myserver postfix/pipe[27677]: 89A24914CB: to=myacco...@mydomain.net, orig_to=server@mydomain.net, relay=dovecot, delay=1033, delays=1032/0.16/0/0.31, dsn=4.3.0, status=deferred (temporary failure) The files are being created: (r...@myserver:/home/vmail/mydomain.net/myaccount/tmp)# ls -la total 156 drwxrwx--- 2 vmail vmail 4096 Oct 3 21:49 . drwxrwx--- 9 vmail vmail 4096 Oct 3 20:19 .. -- 1 vmail vmail0 Nov 30 1970 1254620038.M241510P27678.myserver.mydomain.net The user does have permission: (r...@myserver:/home/vmail/mydomain.net/myaccount/tmp)# su - vmail -bash-3.2$ pwd /home/vmail/mydomain.net/myaccount/tmp -bash-3.2$ ls -la total 160 drwxrwx--- 2 vmail vmail 4096 Oct 3 21:54 . drwxrwx--- 9 vmail vmail 4096 Oct 3 20:19 .. -- 1 vmail vmail0 Nov 30 1970 1254620038.M241510P27678.myserver.mydomain.net -bash-3.2$ rm 1254620038.M241510P27678.myserver.mydomain.net rm: remove write-protected regular empty file `1254620038.M241510P27678.myserver.mydomain.net'? y -bash-3.2$ echo this 1254620038.M241510P27678.myserver.mydomain.net -bash-3.2$ ls -la 1254620038.M241510P27678.myserver.mydomain.net -rw-r--r-- 1 vmail vmail 5 Oct 3 21:58 1254620038.M241510P27678.myserver.mydomain.net -bash-3.2$ cat 1254620038.M241510P27678.myserver.mydomain.net this -bash-3.2$ rm 1254620038.M241510P27678.myserver.mydomain.net -bash-3.2$ If you delete the directory it does get recreated. I upgraded to 1.2.5 but it did not help. There were a lot of errors in the audit.log,
Re: [Dovecot] deliver stopped working
Its the O_EXCL in the open call! How can I make it not use O_EXCL? Thanks, -Ted- strace.out.6700:open(/home/vmail/mydomain.net/myaccount/tmp/1254635441.M259070P6700.myserver.mydomain.net, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_LARGEFILE, 0777) = -1 EACCES (Permission denied) Hi: I have been using Dovecot for well over a year now and it has always worked with few problems. The mail setup is not simple... Postfix+MailScanner+ClamAV+Docvecot+MySql+postfix.admin... just to mention the major things. The system is CentOS 5.3 on VMware. The maildir is on an NFS share, index and control is local. About a month ago I thought I upgraded from 1.1.x to 1.2.x. by doing an rpmbuild and deploying. I say thought because today I determined the binaries were still 1.1x. Today a reboot was done after a kernel upgrade (2.6.18-128.x - 2.6.18-164). The mail system never came back up. My assumption is that the working binaries were in memory but the images on disk were changed. Anyway, the problem is with deliver writing to the mail dir. The error is: Oct 3 21:33:58 myserver dovecot: auth(default): master in: USER 1 myacco...@mydomain.net service=deliver Oct 3 21:33:58 myserver dovecot: auth(default): prefetch(myacco...@mydomain.net): passdb didn't return userdb entries, trying the next userdb Oct 3 21:33:58 myserver dovecot: auth-worker(default): sql(myacco...@mydomain.net): SELECT '/home/vmail/mydomain.net/myaccount' as home, 'maildir:/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount' as mail, 5000 AS uid, 5000 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = 'myacco...@mydomain.net' AND active = '1' Oct 3 21:33:58 myserver dovecot: auth(default): master out: USER 1 myacco...@mydomain.net home=/home/vmail/mydomain.net/myaccount mail=maildir:/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount uid=5000gid=5000quota=dirsize:storage=0 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: home=/home/vmail/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: mail=maildir:/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: uid=5000 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: gid=5000 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): auth input: quota=dirsize:storage=0 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): maildir: data=/home/vmail/mydomain.net/myaccount:INDEX=/var/indexes/mydomain.net/myaccount:CONTROL=/var/indexes/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): maildir++: root=/home/vmail/mydomain.net/myaccount, index=/var/indexes/mydomain.net/myaccount, control=/var/indexes/mydomain.net/myaccount, inbox=/home/vmail/mydomain.net/myaccount Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): Namespace : Using permissions from /home/vmail/mydomain.net/myaccount: mode=0770 gid=-1 Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): open(/home/vmail/mydomain.net/myaccount/tmp/1254620038.M241510P27678.myserver.mydomain.net) failed: Permission denied Oct 3 21:33:58 myserver dovecot: deliver(myacco...@mydomain.net): msgid=200910040116.n941gjtj001...@nm2srvp01.mydomain.net: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2009-10-03 21:33:58] Oct 3 21:33:58 myserver postfix/pipe[27677]: 89A24914CB: to=myacco...@mydomain.net, orig_to=server@mydomain.net, relay=dovecot, delay=1033, delays=1032/0.16/0/0.31, dsn=4.3.0, status=deferred (temporary failure) The files are being created: (r...@myserver:/home/vmail/mydomain.net/myaccount/tmp)# ls -la total 156 drwxrwx--- 2 vmail vmail 4096 Oct 3 21:49 . drwxrwx--- 9 vmail vmail 4096 Oct 3 20:19 .. -- 1 vmail vmail0 Nov 30 1970 1254620038.M241510P27678.myserver.mydomain.net The user does have permission: (r...@myserver:/home/vmail/mydomain.net/myaccount/tmp)# su - vmail -bash-3.2$ pwd /home/vmail/mydomain.net/myaccount/tmp -bash-3.2$ ls -la total 160 drwxrwx--- 2 vmail vmail 4096 Oct 3 21:54 . drwxrwx--- 9 vmail vmail 4096 Oct 3 20:19 .. -- 1 vmail vmail0 Nov 30 1970 1254620038.M241510P27678.myserver.mydomain.net -bash-3.2$ rm 1254620038.M241510P27678.myserver.mydomain.net rm: remove write-protected regular empty file `1254620038.M241510P27678.myserver.mydomain.net'? y -bash-3.2$ echo this 1254620038.M241510P27678.myserver.mydomain.net -bash-3.2$ ls -la 1254620038.M241510P27678.myserver.mydomain.net -rw-r--r--