[Dovecot] Backtrace:/usr/local/libexec/dovecot/imap
GNU gdb 6.8-debian Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as i486-linux-gnu... Reading symbols from /lib/i686/cmov/libdl.so.2...Reading symbols from /usr/lib/debug/lib/i686/cmov/libdl-2.7.so...done. done. Loaded symbols for /lib/i686/cmov/libdl.so.2 Reading symbols from /lib/i686/cmov/libc.so.6...Reading symbols from /usr/lib/debug/lib/i686/cmov/libc-2.7.so...done. done. Loaded symbols for /lib/i686/cmov/libc.so.6 Reading symbols from /lib/ld-linux.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.7.so...done. done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/local/lib/dovecot/imap/lib10_quota_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib10_quota_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib11_imap_quota_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib11_trash_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib11_trash_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib20_fts_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib20_fts_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib20_mail_log_plugin.so Reading symbols from /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib20_zlib_plugin.so Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /lib/libbz2.so.1.0...done. Loaded symbols for /lib/libbz2.so.1.0 Reading symbols from /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so...done. Loaded symbols for /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so Reading symbols from /usr/lib/gconv/ISO8859-1.so...Reading symbols from /usr/lib/debug/usr/lib/gconv/ISO8859-1.so...done. done. Loaded symbols for /usr/lib/gconv/ISO8859-1.so Reading symbols from /lib/libgcc_s.so.1...done. Loaded symbols for /lib/libgcc_s.so.1 Core was generated by `/usr/local/libexec/dovecot/imap'. Program terminated with signal 6, Aborted. [New process 1] #0 0xb7ff2424 in __kernel_vsyscall () #0 0xb7ff2424 in __kernel_vsyscall () No symbol table info available. #1 0xb7eb3640 in raise () from /lib/i686/cmov/libc.so.6 No symbol table info available. #2 0xb7eb5018 in abort () from /lib/i686/cmov/libc.so.6 No symbol table info available. #3 0x080d7235 in default_fatal_finish (type=value optimized out, status=0) at failures.c:150 backtrace = 0x9611888 /usr/local/libexec/dovecot/imap [0x80d7221] - /usr/local/libexec/dovecot/imap [0x80d72a2] - /usr/local/libexec/dovecot/imap [0x80d6c39] - /usr/local/lib/dovecot/imap/lib21_fts_squat_plugin.so [0xb7... #4 0x080d72a2 in i_internal_fatal_handler (type=LOG_TYPE_PANIC, status=0, fmt=0xb7e3cf50 file %s: line %d (%s): assertion failed: (%s), args=0xbfa0dcf4 N���\231) at failures.c:430 No locals. #5 0x080d6c39 in i_panic ( format=0xb7e3cf50 file %s: line %d (%s): assertion failed: (%s)) at failures.c:197 No locals. #6 0xb7e39a82 in uidlist_write_array (output=0x965c9bc, uid_list=0xb79cae0c, uid_count=31, packed_flags=value optimized out, offset=0, write_size=true, size_r=0xbfa0ddd8) at squat-uidlist.c:153 uidbuf = (uint8_t *) 0x96117b8 �\030= bufp = (uint8_t *) 0x96117ba = sizebuf = �hݠ� sizebufp = value optimized out listbuf = � listbufp = (uint8_t *) 0xbfa0dd52 ��hݠ� uid = 6 uid2 = 5 prev = value optimized out base_uid = 3112 size_value = value optimized out i = 4 bitmask_len = 7 uid_list_len = 1008 idx = 1008 max_idx = value optimized out mask = value optimized out datastack = true num = value optimized out __PRETTY_FUNCTION__ = uidlist_write_array #7 0xb7e39d78 in uidlist_write (output=0x965c9bc, list=value optimized out, write_size=value optimized out, size_r=0xbfa0ddd8) at squat-uidlist.c:270 _data_stack_cur_id = 6 uid_list = (const uint32_t *) 0xb79cae0c buf = � bufp = value optimized out uid_count = 31 packed_flags = value optimized out offset = 0 ret = value optimized out __PRETTY_FUNCTION__ = uidlist_write #8 0xb7e39eaf in uidlist_flush (ctx=0x965c948, list=0xb79cae08, uid=3149) at squat-uidlist.c:1104 size = 128 #9 0xb7e3a236 in squat_uidlist_build_add_uid (ctx=0x965c948, uid_list_idx=value optimized out, uid=3149) at squat-uidlist.c:1219 list = value optimized out idx
[Dovecot] quota warning for fs quota
Hello, I configured my Dovecot to use filesystem (fs) quota. It works fine, the correct free/used space and percentage is being shown to the client. However, the warning feature doesn't seem to work, no mail is being sent, although executing the script standalone works fine. Is quota warning for fs quota supported? I use Dovecot 1.0.10 (Ubuntu package). Thanks, Florian
Re: [Dovecot] LDA questions
On Thu, December 4, 2008 1:24 pm, Romer Ventura wrote: Hello, I am looking at the docs and I see this: Problems with deliver Namespaces are supported with v1.1 and later. With v1.0 and older versions mails can be delivered only to mailboxes specified by the mail_location setting. But in the dovecot.conf I see: # NOTE: Namespaces currently work ONLY with IMAP! POP3 and LDA currently ignore # namespaces completely, they use only the mail_location setting. I am running 1.1.7 so is that a typo in the dovecot.conf or the wiki page..? Also, I got postfix+dovecot configure to authenticate to Active Directory using pam_krb5 and I am able to login and send emails with pop3 or imap, but unable to receive emails since postfix complaints about the user not being found in the local recipient table. Now I have made a few changes, but I cant get to see deliver complaint, all I see is: postfix/smtpd[19924]: NOQUEUE: reject: RCPT from : 550 5.1.1 [EMAIL PROTECTED]: Recipient address rejected: User unknown in local recipient table; So I think that it is not being passed to deliver... Master.cf has: dovecot unix- n n - - pipe flags=DR user=vmail:vmail argv=/usr/lib/dovecot/deliver -f ${sender} -d ${recipient} Main.cf has: virtual_mailbox_domains = your.domain.here virtual_transport = dovecot Any ideas..? Thanks Talk to the postfix list, it looks like you may have a problem with your aliases. -- Matt Rude website: www.mattrude.com - wiki: wiki.mattrude.com PGP Fingerprint: 0E94 70DA 89F8 5102 0862 5EA2 CB10 759E E65F 2C46
[Dovecot] proxy and master user
Hi For some application we need a master user on our IMAP servers. We use dovecot 1.1.7 in proxy mode, with proxy_maybe (some mailboxes are on the proxy itself, others are on remote servers, also running dovecot). But the proxy removes the '*master' suffix from the username when using the master user to log in on the proxy. So the base name of the user with the master password are submitted to the real server, which of course fails. Is there a way to tell the proxy to forward the master user to the real server, without forcing it in destuser, since we also need to have regular (non master) logins? Thanks in advance. -- Matthieu Herrb smime.p7s Description: S/MIME Cryptographic Signature
[Dovecot] UID/GID changed
I have a problem with Dovecot 1.1.6 after having reset the UID/GID information for a few email accounts. I get the following error: Dec 5 12:26:03 ns6 dovecot: POP3(mike): stat(/home/popuser_mike/Maildir/tmp) failed: Permission denied (euid=1366 egid=1366 missing +x perm: /home/popuser_mike/Maildir) Dec 5 12:26:03 ns6 dovecot: POP3(mike): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2008-12-05 12:26:03] Dec 5 12:27:40 ns6 dovecot: POP3(mike): stat(/home/popuser_mike/Maildir/tmp) failed: Permission denied (euid=1366 egid=1366 missing +x perm: /home/popuser_mike/Maildir) Dec 5 12:27:40 ns6 dovecot: POP3(mike): Couldn't open INBOX: Internal error occurred. Refer to server log for more information. [2008-12-05 12:27:40] Permissions are: [/home/popuser_mike/Maildir] ls -la total 40 drwxrws--- 5 mike mail 4096 Dec 5 12:23 ./ drwxr-xr-x 6 mike mike 4096 Nov 5 14:34 ../ drwx--S--- 2 mike mail 4096 Dec 3 21:20 cur/ -rw-rw 1 mike mail 7560 Dec 4 08:02 dovecot.index.log.save -rw-rw 1 mike mail 184 Dec 4 08:02 dovecot.index.save -rw-rw 1 660 mail 18 Dec 4 08:02 dovecot-uidlist.save -rw-rw 1 mike mail8 Nov 5 19:00 dovecot-uidvalidity -rw-rw 1 mike mail0 Nov 5 19:00 dovecot-uidvalidity.4912338c drwx--S--- 2 mike mail 4096 Dec 5 11:46 new/ drwx--S--- 2 mike mail 4096 Dec 5 11:46 tmp/ What am I missing? -- Albert E. Whale, CHS CISA CISSP Sr. Security, Network and Systems Consultant ABS Computer Technology, Inc. http://www.ABS-CompTech.com - Email, Internet and Security Consultants
[Dovecot] Username changed by dovecot..?
Hello, I have postfix+dovecot authenticating via LDAP to Active directory and everything is working fine except that some user names get changed by dovecot. # cat dovecot/dovecot-ldap.conf hosts = 192.168.50.30 192.168.50.31 base = ou=HST-Users,dc=h-st,dc=com ldap_version = 3 auth_bind = yes dn = cn=account,cn=Users,dc=h-st,dc=com dnpass = password user_attrs = sAMAccountName=mail=maildir:/home/vmail/%Ud/%Ln,=gid=1000,=uid=1001 user_filter = ((objectClass=person)(mail=%u)) pass_filter = ((objectClass=person)(mail=%u)) I am using the value of ³mail² field from active directory as user name. So here are test users: test1: [EMAIL PROTECTED] test3: [EMAIL PROTECTED] test5: [EMAIL PROTECTED] USER TEST1: # telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user [EMAIL PROTECTED] +OK pass houston +OK Logged in. Logs show: dovecot: auth(default): client in: AUTH 1 PLAIN service=pop3 secured lip=127.0.0.1 rip=127.0.0.1 lport=110 rport=43073 resp=hidden dovecot: auth(default): ldap([EMAIL PROTECTED],127.0.0.1): bind search: base=ou=HST-Users,dc=h-st,dc=com filter=((objectClass=person)([EMAIL PROTECTED])) dovecot: auth(default): ldap([EMAIL PROTECTED],127.0.0.1): no fields returned by the server dovecot: auth(default): client out: OK 1 [EMAIL PROTECTED] dovecot: auth(default): master in: REQUEST 7 35261 dovecot: auth(default): ldap([EMAIL PROTECTED],127.0.0.1): user search: base=ou=HST-Users,dc=h-st,dc=com scope=subtree filter=((objectClass=person)([EMAIL PROTECTED])) fields=sAMAccountName dovecot: auth(default): ldap([EMAIL PROTECTED],127.0.0.1): result: sAMAccountName(mail=maildir:/home/vmail/%Ud/%Ln)=maildir:/home/vmail/H-ST.CO M/test1 dovecot: auth(default): master out: USER 7 [EMAIL PROTECTED] mail=maildir:/home/vmail/H-ST.COM/test1 gid=1000uid=1001 dovecot: pop3-login: Login: user=[EMAIL PROTECTED], method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured The directory was created and everything is fine. USER TEST3: # telnet localhost pop3 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. +OK Dovecot ready. user [EMAIL PROTECTED] +OK pass houston -ERR [IN-USE] Internal login failure. Refer to server log for more information. Connection closed by foreign host. Logs show: dovecot: auth(default): client in: AUTH 1 PLAIN service=pop3 secured lip=127.0.0.1 rip=127.0.0.1 lport=110 rport=34057 resp=hidden dovecot: auth(default): ldap([EMAIL PROTECTED],127.0.0.1): bind search: base=ou=HST-Users,dc=h-st,dc=com filter=((objectClass=person)([EMAIL PROTECTED])) dovecot: auth(default): auth([EMAIL PROTECTED],127.0.0.1): username changed [EMAIL PROTECTED] - test3 dovecot: auth(default): ldap(test3,127.0.0.1): result: uid(user)=test3 dovecot: auth(default): client out: OK 1 user=test3 dovecot: auth(default): master in: REQUEST 8 38591 dovecot: auth(default): ldap(test3,127.0.0.1): user search: base=ou=HST-Users,dc=h-st,dc=com scope=subtree filter=((objectClass=person)(mail=test3)) fields=sAMAccountName dovecot: auth(default): ldap(test3,127.0.0.1): Unknown user dovecot: auth(default): userdb(test3,127.0.0.1): user not found from userdb ldap dovecot: auth(default): master out: NOTFOUND 8 dovecot: pop3-login: Internal login failure (auth failed, 1 attempts): user=test3, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured It obvously fails because the username was changed to only %u. Why does it get changed...? Any ideas...? Thanks.. # dovecot -n # 1.1.7: /etc/dovecot/dovecot.conf # OS: Linux 2.6.16.60-0.21-xenpae i686 SUSE Linux Enterprise Server 10 (i586) protocols: imap imaps pop3 pop3s login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(pop3): /usr/lib/dovecot/pop3-login mail_uid: vmail mail_gid: vmail mail_location: maildir:~/Maildir/ mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins(default): acl mail_plugins(imap): acl mail_plugins(pop3): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login verbose: yes debug: yes passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix group:
Re: [Dovecot] LDA questions
On Thu, 2008-12-04 at 13:24 -0600, Romer Ventura wrote: Hello, I am looking at the docs and I see this: Problems with deliver Namespaces are supported with v1.1 and later. With v1.0 and older versions mails can be delivered only to mailboxes specified by the mail_location setting. But in the dovecot.conf I see: # NOTE: Namespaces currently work ONLY with IMAP! POP3 and LDA currently ignore # namespaces completely, they use only the mail_location setting. I am running 1.1.7 so is that a typo in the dovecot.conf or the wiki page..? I forgot to remove that text in v1.1. Removed now. Now I have made a few changes, but I cant get to see deliver complaint, all I see is: postfix/smtpd[19924]: NOQUEUE: reject: RCPT from : 550 5.1.1 [EMAIL PROTECTED]: Recipient address rejected: User unknown in local recipient table; Like Matt said, this is a Postfix configuration issue. You'll have to configure Postfix to figure out what users exist. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Username changed by dovecot..?
On Fri, 2008-12-05 at 12:30 -0600, Romer Ventura wrote: # cat dovecot/dovecot-ldap.conf You didn't show pass_attrs, so Dovecot is using the defaults: pass_attrs = uid=user,userPassword=password The uid=user part makes Dovecot change the username if uid field is different than the logged in username. So you could set: pass_attrs = userPassword=password signature.asc Description: This is a digitally signed message part
[Dovecot] Max OS X 10.5 Mail + Dovecot
Hi, People using the new OS X mail client are unable to connect to the unsigned dovecot-mkcert.sh certificate on my Dovecot installations. Turning off SSL fixes the problem. Is there any way to make it work automatically, or do I just have to get the certificates signed? Has anyone figured this one out before? Thanks, Chris
Re: [Dovecot] LDA questions
Hi, First, namespaces: Deliver runs perfectly with namespaces, so I suppose it's a little glitch in the config file comments. Regarding your delivery problem, read this from your config file (or http://wiki.dovecot.org/UserDatabase/Static): --- snip --- Unless your MTA already verifies that the user exists before calling deliver, you'll most likely want deliver itself to verify the user's existence. Since deliver looks up the user only from the userdb, it of course doesn't work with static userdb because there is no list of users. Normally static userdb handles this by doing a passdb lookup instead. This works with most passdbs, with PAM being the most notable exception. If you want to avoid this user verification, you can add allow_all_users=yes to the args in which case the passdb lookup is skipped. --- snap --- ...which should explain why you don't get anything delivered. I think you have three options: allow_all_users=yes (which would be cheesy), setup another database or use postfixes virtual transport agent. Depends. Regards, Thomas
Re: [Dovecot] Max OS X 10.5 Mail + Dovecot
On Friday, December 05, 2008, at 10:45AM, Chris Cappuccio [EMAIL PROTECTED] wrote: People using the new OS X mail client are unable to connect to the unsigned dovecot-mkcert.sh certificate on my Dovecot installations. Turning off SSL fixes the problem. Is there any way to make it work automatically, or do I just have to get the certificates signed? Has anyone figured this one out before? I have an unsigned SSL certificate with Dovecot and connect fine using OSX.5's Mail.app. What do you mean, unable to connect? Do you really mean unable to connect, or do you mean, an error message comes up every time they try to connect? If its the latter complaint, please see this document: http://support.apple.com/kb/TA22383 I know it says 10.3 Mail, but the steps to follow are essentially unchanged between 10.3 and 10.5.
Re: [Dovecot] Max OS X 10.5 Mail + Dovecot
Well the symptom is that the OS X mail client just times out. It talks to port 993 on the server for a while, but just shows the user a moving icon. Eventually it complains the mail server didn't respond. 10.3 and 10.4 work fine, strangely enough. It times out as it's checking connection to the mail server. I did upgrade from dovecot 1.0 to 1.1 without doing much of any config changes on the dovecot side. But other clients work fine... Actually I just realized while watching tcpdump that Mail.app is testing port 25 after 993. So it may be a Postfix SSL failure of some sort. Chris Peter Giessel [EMAIL PROTECTED] wrote: On Friday, December 05, 2008, at 10:45AM, Chris Cappuccio [EMAIL PROTECTED] wrote: People using the new OS X mail client are unable to connect to the unsigned dovecot-mkcert.sh certificate on my Dovecot installations. Turning off SSL fixes the problem. Is there any way to make it work automatically, or do I just have to get the certificates signed? Has anyone figured this one out before? I have an unsigned SSL certificate with Dovecot and connect fine using OSX.5's Mail.app. What do you mean, unable to connect? Do you really mean unable to connect, or do you mean, an error message comes up every time they try to connect? If its the latter complaint, please see this document: http://support.apple.com/kb/TA22383 I know it says 10.3 Mail, but the steps to follow are essentially unchanged between 10.3 and 10.5.
Re: [Dovecot] qmail and LDA: passdb didn't return userdb entries
On Tuesday, December 2 at 03:35 PM, quoth Alessio Cecchi: i'm testing Dovecot LDA to works with qmail and vpopmail. I have added into a .qmail for a users this line: [EMAIL PROTECTED]: /home/vpopmail/domains/test.com/0/test# cat .qmail | /var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -d [EMAIL PROTECTED] The easiest way to do this is to follow the instructions on the wiki (http://wiki.dovecot.org/LDA). Dovecot's `deliver` needs to know two things: the $HOME and the FROM_ENVELOPE. Why does it need the latter? I haven't a clue. But this should work for you: | /var/qmail/bin/preline -f /usr/libexec/dovecot/deliver -f ${SENDER:-} Using the -d flag is a bad idea unless your dovecot is set up with a passdb and userdb. The problem for you with instituting a static userdb is that you've enabled user hashing in vpopmail. On my system, I can use this: userdb static { args = uid=XXX gid=XXX home=/var/lib/vpopmail/domains/%Ld/%Ln allow_all_users=yes } But that won't work for you because the location of the home directory isn't so simple on your system. I don't know how to tell Dovecot how to hash user directories the way that vpopmail does. I have read in the wiki that deliver needed to know some much information about users, like HOMEDIR, but this information are not returned by vpopmail authentication? It also needs the -f flag (for unknown reasons) AND you need to avoid the -d flag (the -d flag tells deliver to ignore the $HOME environment variable and to attempt to look up the home directory in the userdb which, as you've noticed, can be tricky). ~Kyle -- Moral indignation is jealousy with a halo. -- H. G. Wells pgpva7EsGdhzB.pgp Description: PGP signature