Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
i had the same problem. solution: increase default_vsz_limit in /etc/dovecot/conf.d/10-master.conf. for me 384M did the job. On 11/21/2013 10:01 AM, Jost Krieger wrote: On Thu Nov 21 08:56:39 2013, Robert Schetterer wrote: may off topic , but you may manage spam learn ham/spam for users another way too, they only need simply forward mail, i use it like that way ,since years, it also works with sieve rules. The problem: Users don't (at least ours). If they need a mail, they pull it out of the spam folder, and they use the Junk button in their client, but they can't be bothered to do more. And the antispam plugin is the only halfway effective way to automate this for all clients. Hint: We make the plugin send a mail and process it later. Yours Jost Krieger signature.asc Description: OpenPGP digital signature
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
On Thu Nov 21 08:56:39 2013, Robert Schetterer wrote: may off topic , but you may manage spam learn ham/spam for users another way too, they only need simply forward mail, i use it like that way ,since years, it also works with sieve rules. The problem: Users don't (at least ours). If they need a mail, they pull it out of the spam folder, and they use the Junk button in their client, but they can't be bothered to do more. And the antispam plugin is the only halfway effective way to automate this for all clients. Hint: We make the plugin send a mail and process it later. Yours Jost Krieger -- | jost.krieger+...@ruhr-uni-bochum.de Please help stamp out spam! | | Postmaster, JAPH, resident answer machineat RUB Comp. Center | | Sincere words are not sweet, sweet words are not sincere.| | Lao Tse, Tao Te King 81 |
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
On 11/18/2013 10:08 AM, Steffen Kaiser wrote: On Mon, 11 Nov 2013, Dean wrote: If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. /usr/bin/sa-learn is a perl script, calling the various Mail::SpamAssassin modules. No 32/64 bit there afaik. I have a 64bit system and use the spamassassin demon to train ham/spam without such problem. I have the 32bit lib installed: locate libgcc_s /lib/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.3/32/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.4/32/libgcc_s.so /usr/lib32/libgcc_s.so.1 The 32bit library got onto the system via the Suggests of Debian's gcc package. I installed the 32bit version too. $ locate libgcc_s.so /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc_s.so /usr/lib32/libgcc_s.so.1 Still no luck. This is with FuzzyOcr enabled, fails on the mysql DB connect 12570-sa-learn Nov 20 13:39:27.817 [12572] info: FuzzyOcr: Using scan gocr-180: /usr/bin/gocr -l 180 -d 2 -i $input 12570-sa-learn Nov 20 13:39:27.817 [12572] info: FuzzyOcr: Using scan tesseract: /usr/bin/tesseract $input $output 12570-sa-learn Nov 20 13:39:27.817 [12572] dbg: FuzzyOcr: Connecting to: dbi:mysql:database=FuzzyOcr;mysql_socket=/var/run/mysqld/mysqld.sock 12570-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 12570-end And this is with FuzzyOcr disabled, so it goes right to the Bayes DB and fails 14826-sa-learn Nov 20 13:57:38.246 [14828] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x476eae0), bayes_store_module=Mail::SpamAssassin::BayesStore::MySQL 14826-sa-learn Nov 20 13:57:38.265 [14828] dbg: bayes: using username: debian-spamd 14826-sa-learn Nov 20 13:57:38.265 [14828] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::MySQL=HASH(0x5039840) 14826-sa-learn Nov 20 13:57:38.266 [14828] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x476eae0) implements 'learner_is_scan_available', priority 0 14826-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 14826-end This is what is *supposed* to happen (using cmdline /usr/local/bin/sa-learn-pipe.sh --spam /tmp/email-to-learn) 15412-sa-learn Nov 20 14:02:55.095 [15414] dbg: bayes: using username: debian-spamd 15412-sa-learn Nov 20 14:02:55.095 [15414] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::MySQL=HASH(0x3ef55f0) 15412-sa-learn Nov 20 14:02:55.095 [15414] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x3631ba0) implements 'learner_is_scan_available', priority 0 15412-sa-learn Nov 20 14:02:55.118 [15414] dbg: bayes: database connection established 15412-sa-learn Nov 20 14:02:55.118 [15414] dbg: bayes: found bayes db version 3 The markasjunk2 plugin for roundcube calls sa-learn-pipe.sh and it works fine. The difference is that it is called with a file parameter that contains the email to be learned, while Dovecot/antispam pipes the email into the script. Both methods work fine, as checked on the cmdline. /usr/local/bin/sa-learn-pipe.sh --spam /tmp/email-to-learn /usr/local/bin/sa-learn-pipe.sh --spam /tmp/email-to-learn It's only when it's called from the context of Dovecot/antispam that we see the libgcc_s.so.1 error pop up, and the mysql connection apparently fail. I think that context is the key, but I don't what it is. Something about the environment is causing those mysql connections to fail. I believe it's permissions - the socket is 777, and the cmdline runs are done with a regular ID and work fine. The antispam functionality is a great feature for remote email clients like thunderbird. Just need to get it working :) Any ideas ? If anyone wants to test I can provide a small 32meg bootable ISO (Ubuntu mini.iso) that installs 13.04 and the various apps, all preconfigured - works fine for a bare machine or a VM/VPS. I can also provide the installer script that does all the installs/configuration. Run it on a bare 13.04 server/mini install and it does the rest. -- Dean Carpenter deano is at areyes dot com 94TT :)
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
Darn. Thought I had found a good point about pthread_cancel. See the last post here : https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285 Juergen Perlinger (juergen-perlinger) https://launchpad.net/%7Ejuergen-perlinger wrote on 2013-10-25: #30 https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285/comments/30 I finally tracked it down, I think. The pthread code tries to load libgcc_s on pthread_exit(), and this dos not work when the effective user was changed -- many daemons switch from root to a restricted user, and that's one way to end up in this problem. If the library is loaded globally for the process before the user is changed, everything works. This is a problem of the 'pthread_exit()' implementation (delayed/on-demand load of libgcc_s) and/or the 'mmap()' implementation in the kernel. I've tried putting /lib/x86_64-linux-gnu/libgcc_s.so.1 into /etc/ld.so.preload, I've changed the exec line in /etc/init/dovecot to exec LD_PRELOAD=/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf and the sa-learn line in /usr/local/bin/sa-learn-pipe.sh to LD_PRELOAD=/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/bin/sa-learn -D --progress $* /tmp/sendmail-msg-$$.txt /tmp/sa-learn-pipe.$$.log 21 So far to no avail. I'm going to try the spool2dir backend with incron. Cumbersome, but it should work ... On 11/20/2013 02:17 PM, Dean wrote: On 11/18/2013 10:08 AM, Steffen Kaiser wrote: On Mon, 11 Nov 2013, Dean wrote: If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. /usr/bin/sa-learn is a perl script, calling the various Mail::SpamAssassin modules. No 32/64 bit there afaik. I have a 64bit system and use the spamassassin demon to train ham/spam without such problem. I have the 32bit lib installed: locate libgcc_s /lib/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.3/32/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.4/32/libgcc_s.so /usr/lib32/libgcc_s.so.1 The 32bit library got onto the system via the Suggests of Debian's gcc package. I installed the 32bit version too. $ locate libgcc_s.so /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc_s.so /usr/lib32/libgcc_s.so.1 Still no luck. This is with FuzzyOcr enabled, fails on the mysql DB connect 12570-sa-learn Nov 20 13:39:27.817 [12572] info: FuzzyOcr: Using scan gocr-180: /usr/bin/gocr -l 180 -d 2 -i $input 12570-sa-learn Nov 20 13:39:27.817 [12572] info: FuzzyOcr: Using scan tesseract: /usr/bin/tesseract $input $output 12570-sa-learn Nov 20 13:39:27.817 [12572] dbg: FuzzyOcr: Connecting to: dbi:mysql:database=FuzzyOcr;mysql_socket=/var/run/mysqld/mysqld.sock 12570-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 12570-end And this is with FuzzyOcr disabled, so it goes right to the Bayes DB and fails 14826-sa-learn Nov 20 13:57:38.246 [14828] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x476eae0), bayes_store_module=Mail::SpamAssassin::BayesStore::MySQL 14826-sa-learn Nov 20 13:57:38.265 [14828] dbg: bayes: using username: debian-spamd 14826-sa-learn Nov 20 13:57:38.265 [14828] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::MySQL=HASH(0x5039840) 14826-sa-learn Nov 20 13:57:38.266 [14828] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x476eae0) implements 'learner_is_scan_available', priority 0 14826-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 14826-end This is what is *supposed* to happen (using cmdline /usr/local/bin/sa-learn-pipe.sh --spam /tmp/email-to-learn) 15412-sa-learn Nov 20 14:02:55.095 [15414] dbg: bayes: using username: debian-spamd 15412-sa-learn Nov 20 14:02:55.095 [15414] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::MySQL=HASH(0x3ef55f0) 15412-sa-learn Nov 20 14:02:55.095 [15414] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x3631ba0) implements 'learner_is_scan_available', priority 0 15412-sa-learn Nov 20 14:02:55.118 [15414] dbg: bayes: database connection established 15412-sa-learn Nov 20 14:02:55.118 [15414] dbg: bayes: found bayes db version 3 The markasjunk2 plugin for roundcube calls sa-learn-pipe.sh and it works fine. The difference is that it is called with a file parameter that contains the email to be learned, while Dovecot/antispam pipes the email into the script. Both methods work fine, as checked on the cmdline. /usr/local/bin/sa-learn-pipe.sh --spam /tmp/email-to-learn /usr/local/bin/sa-learn-pipe.sh --spam /tmp/email-to-learn It's only when it's called from the context of Dovecot/antispam
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Wed, 20 Nov 2013, Dean wrote: Date: Wed, 20 Nov 2013 18:05:25 -0500 From: Dean deano-dove...@areyes.com Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin Darn. Thought I had found a good point about pthread_cancel. See the last post here : https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285 Juergen Perlinger (juergen-perlinger) https://launchpad.net/%7Ejuergen-perlinger wrote on 2013-10-25: #30 https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285/comments/30 I finally tracked it down, I think. The pthread code tries to load libgcc_s on pthread_exit(), and this dos not work when the effective user was changed -- many daemons switch from root to a restricted user, and that's one way to end up in this problem. If the library is loaded globally for the process before the user is changed, everything works. This is a problem of the 'pthread_exit()' implementation (delayed/on-demand load of libgcc_s) and/or the 'mmap()' implementation in the kernel. I've tried putting /lib/x86_64-linux-gnu/libgcc_s.so.1 into /etc/ld.so.preload, I've changed the exec line in /etc/init/dovecot to exec LD_PRELOAD=/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf and the sa-learn line in /usr/local/bin/sa-learn-pipe.sh to LD_PRELOAD=/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/bin/sa-learn -D --progress $* /tmp/sendmail-msg-$$.txt /tmp/sa-learn-pipe.$$.log 21 Does sa-learn change UID? Maybe you can make sa-learn set-uid or pass a specific -u /-x . - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUo26A13r2wJMiz2NAQJ8FwgAl/i1dxQL0XqKwP+Xzwea33LfK39p4Rqw BpNw2iedsK4EhY3dkpOGb1tpcdl9PVAZK2z8WxdTqgXJWugOfmVJRMymp+1nKVYQ lMCQp9LIMAasAl9BDa9OCN6L99qNclYSEH8SNPj1PDvxpyAeshroz2GQY1R+JuEl +I7EsZsVEkrm+Zq4ET6Jjbbv6n/nWCVRGvvUi83vb4oGUcdvpyQoJ6QmhEZDV3Gc kIkB1a4PhnhYqweuyZ2s6Xo+kYjjSIOvPcNkbDG3xwX1g2re6MlNTAHNSJbk7u21 8z10IwSlDRD6H13vWvtwfQL4v1tPafJp+RF0kRb9qO3C8DwE+7d2EQ== =+ICP -END PGP SIGNATURE-
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Am 21.11.2013 08:45, schrieb Steffen Kaiser: On Wed, 20 Nov 2013, Dean wrote: Date: Wed, 20 Nov 2013 18:05:25 -0500 From: Dean deano-dove...@areyes.com Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin Darn. Thought I had found a good point about pthread_cancel. See the last post here : https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285 Juergen Perlinger (juergen-perlinger) https://launchpad.net/%7Ejuergen-perlinger wrote on 2013-10-25: #30 https://bugs.launchpad.net/ubuntu/+source/gcc-3.3/+bug/40285/comments/30 I finally tracked it down, I think. The pthread code tries to load libgcc_s on pthread_exit(), and this dos not work when the effective user was changed -- many daemons switch from root to a restricted user, and that's one way to end up in this problem. If the library is loaded globally for the process before the user is changed, everything works. This is a problem of the 'pthread_exit()' implementation (delayed/on-demand load of libgcc_s) and/or the 'mmap()' implementation in the kernel. I've tried putting /lib/x86_64-linux-gnu/libgcc_s.so.1 into /etc/ld.so.preload, I've changed the exec line in /etc/init/dovecot to exec LD_PRELOAD=/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/sbin/dovecot -F -c /etc/dovecot/dovecot.conf and the sa-learn line in /usr/local/bin/sa-learn-pipe.sh to LD_PRELOAD=/lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/bin/sa-learn -D --progress $* /tmp/sendmail-msg-$$.txt /tmp/sa-learn-pipe.$$.log 21 Does sa-learn change UID? Maybe you can make sa-learn set-uid or pass a specific -u /-x . -- Steffen Kaiser may off topic , but you may manage spam learn ham/spam for users another way too, they only need simply forward mail, i use it like that way ,since years, it also works with sieve rules. For sure you have to manage only authed users from your system are able to send to learn aliases. http://gtmp.org/doku.php/publications:sa-postfix-en for other stuff i use spamass-milter or amavis milter and clamav-milter with sanesecurity antispam signatures, i never had urgent need for the dovecot antispam plugin Best Regards MfG Robert Schetterer - -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Franziskanerstraße 15, 81669 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJSjbywAAoJEP8jBObu0LlEMwwH/1E1Mra8510edneAohvkc6Yj tIlGUaKIIpmddml2H5/1yql7nIMoGH389mDhJKYaMaG8qLb9tvCgdaF7s+auaJd+ fyK44BHr+8Je3CBLeeWfIfRk7QbnmbW5HkdTBoghoa6GBShfvxxYEEdDWMhN3xyq ThDbpfJSwsl0TV1x0Egz1FJ43mNzq6EPmqJdbNa+BKXb5LJUBLouFI+YQnDt48oQ q8wTOo/rd0yOYSUu+VulEAPx5rtlMKJXQxgMxRbiGqWJq+ybbvL13ah4y13bMsYi nflgllMxoFox1aFenzXMskMTeUx83FXKVJUZQo/IaO6tr+4/JGRK785w0Ky9iyM= =rYae -END PGP SIGNATURE-
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 11 Nov 2013, Dean wrote: If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. /usr/bin/sa-learn is a perl script, calling the various Mail::SpamAssassin modules. No 32/64 bit there afaik. I have a 64bit system and use the spamassassin demon to train ham/spam without such problem. I have the 32bit lib installed: locate libgcc_s /lib/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.3/32/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.4/32/libgcc_s.so /usr/lib32/libgcc_s.so.1 The 32bit library got onto the system via the Suggests of Debian's gcc package. - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUoothl3r2wJMiz2NAQLeYQgAmyR8m7sMJD0pFnwHNXJtZ2+ENokgYz1h yC4B9QxIe6gqA4ITdp8hx3EGQII3JYQaci+qq0IsAnqq9YimCkVE9zTBrVc6aU19 yEJ6l+lWSgoyPdMVSF41ysfv37U8BlUfqsmE6I3Yj7Pp2SkBv3P4aAxt9n0VFm6J HZUbmjdRqhBhZvl2pDAdyUmTGzQU+v8SMknllHfsuC1OYHHGJlFbCpQBobZoEkkY KxOUfGVgIxekk1o0hA+7jPzCeaxfEjXgYkLKFzQeHin8T9fEZ4ibdRG3nLezJS45 1OwX+6qlAfjTyJShwYZ/BednXIWB9m7FvBXFgbS6L1D2onIyf/Xfvg== =spQn -END PGP SIGNATURE-
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
So, is anyone out there actually *using* the antispam plugin with spamassassin ? What is your recipe for success ? The issue I'm seeing here appears to be the running of a perl script that does mysql access from dovecot. I'm running the exact same script from roundcube using the markasjunk2 plugin, and it works fine. The only difference is that roundcube provides a file argument for the email to learn, while dovecot pipes the email into the script. dovecot sa-learn-pipe.sh --spam /tmp/sometmpfile roundcube sa-learn-pipe.sh --spam /tmp/someotherfile The script handles either case just fine. Testing on the cmdline works cleanly. From antispam/dovecot, it always fails on the mysql access : 27877-sa-learn Nov 16 10:05:44.887 [27879] dbg: FuzzyOcr: Connecting to: dbi:mysql:database=FuzzyOcr;mysql_socket=/var/run/mysqld/mysqld.sock 27877-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 27877-end Something about the perl DBI interface seems to want something from the libgcc_s.so lib and can't find it, even though it's installed. But why would it work fine from the cmdline, with any userid ? And from roundcube/markasjunk2 ? On 11/11/2013 04:00 PM, Dean wrote: On 11/11/2013 02:31 AM, Steffen Kaiser wrote: On Fri, 8 Nov 2013, Dean Carpenter wrote: Running /usr/bin/sa-learn directly always returns with an error code of 1, and the bayes DB isn't actually updated. Running the /usr/local/bin/sa-learn-pipe.sh script from the example will run sa-learn successfully, but sa-learn fails partway through, right on a sql DB access. I have both bayes and FuzzyOcr data stored in mysql, and the error occurs on accessing either one. That is, I've tested with FuzzyOcr enabled, and it fails on the db access to the FuzzyOcr DB, and I've tried it with FuzzyOcr disabled. In that case, it fails on the access to the bayes DB. The error line right there is : libgcc_s.so.1 must be installed for pthread_cancel to work Since sa-learn terminated prematurely, the bayes DB isn't updated at all. But this is not a Dovecot problem, isn't it? Antispam calls sa-learn, but that program fails. Exactly true. But the circumstance is particular to Dovecot, and I'm sure that *someone* else out there is using this config (dovecot and spamassassin). So hoping someone has seen this and gotten around it. Do you have the system library libgcc_s installed as the error message says? Yup. $ locate libgcc_s /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc_s.so Search the net for that error message, see: https://lists.ubuntu.com/archives/foundations-bugs/2012-March/070050.html If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. /usr/bin/sa-learn is a perl script, calling the various Mail::SpamAssassin modules. No 32/64 bit there afaik.
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
On 11/11/2013 02:31 AM, Steffen Kaiser wrote: On Fri, 8 Nov 2013, Dean Carpenter wrote: Running /usr/bin/sa-learn directly always returns with an error code of 1, and the bayes DB isn't actually updated. Running the /usr/local/bin/sa-learn-pipe.sh script from the example will run sa-learn successfully, but sa-learn fails partway through, right on a sql DB access. I have both bayes and FuzzyOcr data stored in mysql, and the error occurs on accessing either one. That is, I've tested with FuzzyOcr enabled, and it fails on the db access to the FuzzyOcr DB, and I've tried it with FuzzyOcr disabled. In that case, it fails on the access to the bayes DB. The error line right there is : libgcc_s.so.1 must be installed for pthread_cancel to work Since sa-learn terminated prematurely, the bayes DB isn't updated at all. But this is not a Dovecot problem, isn't it? Antispam calls sa-learn, but that program fails. Exactly true. But the circumstance is particular to Dovecot, and I'm sure that *someone* else out there is using this config (dovecot and spamassassin). So hoping someone has seen this and gotten around it. Do you have the system library libgcc_s installed as the error message says? Yup. $ locate libgcc_s /lib/x86_64-linux-gnu/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.7/libgcc_s.so Search the net for that error message, see: https://lists.ubuntu.com/archives/foundations-bugs/2012-March/070050.html If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. /usr/bin/sa-learn is a perl script, calling the various Mail::SpamAssassin modules. No 32/64 bit there afaik. -- Dean Carpenter deano is at areyes dot com 94TT :)
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Fri, 8 Nov 2013, Dean Carpenter wrote: Running /usr/bin/sa-learn directly always returns with an error code of 1, and the bayes DB isn't actually updated. Running the /usr/local/bin/sa-learn-pipe.sh script from the example will run sa-learn successfully, but sa-learn fails partway through, right on a sql DB access. I have both bayes and FuzzyOcr data stored in mysql, and the error occurs on accessing either one. That is, I've tested with FuzzyOcr enabled, and it fails on the db access to the FuzzyOcr DB, and I've tried it with FuzzyOcr disabled. In that case, it fails on the access to the bayes DB. The error line right there is : libgcc_s.so.1 must be installed for pthread_cancel to work Since sa-learn terminated prematurely, the bayes DB isn't updated at all. But this is not a Dovecot problem, isn't it? Antispam calls sa-learn, but that program fails. Do you have the system library libgcc_s installed as the error message says? Search the net for that error message, see: https://lists.ubuntu.com/archives/foundations-bugs/2012-March/070050.html If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. 4505 sa-learn rc=134 id=uid=108(Debian-exim) gid=113(Debian-exim) groups=113(Debian-exim) HOME= 4505-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 4505-end Nov 8 09:44:57 newgalah1 imap: antispam: running mailtrain backend program parameter 1 --spam Nov 8 09:44:58 newgalah1 imap: antispam: run program failed with exit code -1 - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUoCH0F3r2wJMiz2NAQKypwf+M63gGswfoTkNqB0VB/TgK47hb8GQfwNj S6WpypdiSUbVU9NkHezdKmQNmSEyGP/34UChacNCtUbezRV77j/vc1kb/Uap+Z76 cETR5m0zFt5Svl84lm14027ZU9Ph5O0ddr2NTi1NJqmos4V8zBw2C6OfD85vFN1T HDPz6e1h8mIFKhoisudbHt/2KcQkkPA9NinGnSgtpyyGwX7pVghQ6Hb4XD5xD/7F HTXqOit52NvzDn2tflIWxdyOIbAxN5wU4q5tWvA0ZckCbAqpc9o+zbAYZm8nOqmo lm+oaaBpKNbPyScQTFTn7ccmm2GDsxxUEQ6ubX7GxPXOnQvuHjMefg== =Xew9 -END PGP SIGNATURE-
[Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
This might be a fairly long message, but I wanted to be sure to include as much information as possible. I'm having an issue with the dovecot-antispam plugin in that it seems to be unable to successfully run anything from the pipe backend. To qualify that, they run, but they fail ... Running /usr/bin/sa-learn directly always returns with an error code of 1, and the bayes DB isn't actually updated. Running the /usr/local/bin/sa-learn-pipe.sh script from the example will run sa-learn successfully, but sa-learn fails partway through, right on a sql DB access. I have both bayes and FuzzyOcr data stored in mysql, and the error occurs on accessing either one. That is, I've tested with FuzzyOcr enabled, and it fails on the db access to the FuzzyOcr DB, and I've tried it with FuzzyOcr disabled. In that case, it fails on the access to the bayes DB. The error line right there is : libgcc_s.so.1 must be installed for pthread_cancel to work Since sa-learn terminated prematurely, the bayes DB isn't updated at all. Running /usr/bin/sa-learn or the script /usr/local/bin/sa-learn-pipe.sh directly from cmdline works fine though - sa-learn completes correctly and updates the bayes DB properly, I can see the new tokens. $ sa-learn-pipe.sh --spam /usr/share/doc/spamassassin/examples/sample-spam.txt $ sa-learn --spam /usr/share/doc/spamassassin/examples/sample-spam.txt I think it would be great to have a dedicated logfile for antispam, one that would capture both stdout as well as stderr. These tests are being done on a clean Ubuntu 13.04 system. I'm rebuilding the VM repeatedly as I configure the various pieces, and can test any changes or whatever you might suggest very easily. I've fully scripted the install and configuration of Exim4, Dovecot, Spamassassin, Clamav, Percona/Mysql, Roundcube, and can build a full VM under Virtualbox or any VPS in less than 10 minutes. Ubuntu 13.04 Dovecot 2.1.7 dovecot-antispam2.0+20120225-3 Anyone else using the antispam plugin with spamassassin 3.3.2 ? Anything I can check to see what's causing this problem ? $ cat /usr/local/bin/sa-learn-pipe.sh #!/bin/bash echo /usr/bin/sa-learn $* /tmp/sendmail-msg-$$.txt echo $$-start ($*) /var/log/sa-learn-pipe.log cat0 /tmp/sendmail-msg-$$.txt /usr/bin/sa-learn -D $* /tmp/sendmail-msg-$$.txt /tmp/sa-learn-pipe.$$.log 21 echo $$ sa-learn rc=$? id=$(id) HOME=$HOME /var/log/sa-learn-pipe.log while read line; do echo $$-sa-learn $line /var/log/sa-learn-pipe.log done /tmp/sa-learn-pipe.$$.log rm -f /tmp/sendmail-msg-$$.txt echo $$-end /var/log/sa-learn-pipe.log exit 0 With FuzzyOcr DISabled, fails right after Bayes DB access $ cat /var/log/sa-learn-pipe.log 4505-start (--spam) 4505 sa-learn rc=134 id=uid=108(Debian-exim) gid=113(Debian-exim) groups=113(Debian-exim) HOME= 4505-sa-learn Nov 8 09:05:26.134 [4507] dbg: logger: adding facilities: all 4505-sa-learn Nov 8 09:05:26.134 [4507] dbg: logger: logging level is DBG 4505-sa-learn Nov 8 09:05:26.134 [4507] dbg: generic: SpamAssassin version 3.3.2 4505-sa-learn Nov 8 09:05:26.134 [4507] dbg: generic: Perl 5.014002, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin : : 4505-sa-learn Nov 8 09:05:27.131 [4507] dbg: replacetags: done replacing tags 4505-sa-learn Nov 8 09:05:27.131 [4507] dbg: FreeMail: loaded freemail_domains entries: 2470 normal, 29 wildcard 4505-sa-learn Nov 8 09:05:27.132 [4507] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x3879e88) implements 'learner_new', priority 0 4505-sa-learn Nov 8 09:05:27.132 [4507] dbg: bayes: learner_new self=Mail::SpamAssassin::Plugin::Bayes=HASH(0x3879e88), bayes_store_module=Mail::SpamAssassin::BayesStore::MySQL 4505-sa-learn Nov 8 09:05:27.151 [4507] dbg: bayes: using username: debian-spamd 4505-sa-learn Nov 8 09:05:27.151 [4507] dbg: bayes: learner_new: got store=Mail::SpamAssassin::BayesStore::MySQL=HASH(0x3ec0388) 4505-sa-learn Nov 8 09:05:27.152 [4507] dbg: plugin: Mail::SpamAssassin::Plugin::Bayes=HASH(0x3879e88) implements 'learner_is_scan_available', priority 0 4505-sa-learn libgcc_s.so.1 must be installed for pthread_cancel to work 4505-end 7235-start () With FuzzyOcr ENabled, fails right after FuzzyOcr DB access $ cat /var/log/sa-learn-pipe.log : : 7804-sa-learn Nov 8 09:37:09.612 [7806] info: FuzzyOcr: Using scan ocrad-invert: /usr/bin/ocrad -s5 -i $input 7804-sa-learn Nov 8 09:37:09.612 [7806] info: FuzzyOcr: Using scan ocrad-decolorize-invert: /usr/bin/ocrad -s5 -i $input 7804-sa-learn Nov 8 09:37:09.612 [7806] info: FuzzyOcr: Using scan ocrad-decolorize: /usr/bin/ocrad -s5 $input 7804-sa-learn Nov 8 09:37:09.612 [7806] info: FuzzyOcr: Using scan gocr: /usr/bin/gocr -i $input 7804-sa-learn Nov 8 09:37:09.612
[Dovecot] Problems running Dovecot 1.2.17 on AIX
Hello, we have a problem getting Dovecot 1.2.17 to work on one of our AIX-Machines (AIX 5.3). Dovecot compiles fine, but if we try to run it we get strange library dependency problems such as the following: [root@localhost dovecot-test]# /local/dovecot-test/sbin/dovecot -F -c /local/dovecot-test/etc/dovecot.clients.conf Edlopen(/local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so) failed: rtld: 0712-001 Symbol bsearch_strcmp was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol safe_mkstemp_group was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol mail_user_module_register was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol dict_iterate_init was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol dict_iterate was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol dict_iterate_deinit was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. rtld: 0712-001 Symbol i_strcmp_p was referenced from module /local/dovecot-test/lib/dovecot/imap/lib01_acl_plugin.so(), but a runtime definition of the symbol was not found. Additional errors occurred but are not reported. FCouldn't load required plugins We tried to use the compiler-script as described on the wiki (http://wiki1.dovecot.org/AixPluginsSupport) and we tried to compile dovecot with gcc instead of xlc. We even tried it on another host running AIX 5.3 but dovecot still fails with the runtime linker complaining about missing runtime definitions. Any hint/help would be appreciated. Thanks in advance Manuel
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
Patrick Westenberg pw at wk-serv.de writes: Hi Patrick, Hi again, FYI: this is the way it works for me: require [fileinto, mailbox]; you mean the really name mailbox or? if header :contains X-Spam-Flag YES { fileinto :create Spamverdacht; } If the specified mailbox does not exist, it will be created. cu Jim
Re: [Dovecot] problems and dovecot manegesieve
Hello, Em 28-09-2010 18:10, Timo Sirainen escreveu: On Tue, 2010-09-28 at 16:19 +0100, Jose Luis Faria wrote: Hello, my server is working with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0. but if activate managesieve, is not listening in 4190! Add sieve to protocols setting. I did this add yesterday but it still not working. -- :) cumprimentos -- José Luís Faria Network Eng./Administrador de Sistemas Departamento de Informática Universidade do Minho Braga, Portugal smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] problems and dovecot manegesieve
On Wed, 2010-09-29 at 13:53 +0100, Jose Luis Faria wrote: Add sieve to protocols setting. I did this add yesterday but it still not working. Show your full doveconf -n output then.
[Dovecot] problems and dovecot manegesieve
Hello, my server is working with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0. but if activate managesieve, is not listening in 4190! any help? I setup this: -- ## ## ManageSieve specific settings ## # Service definitions service managesieve-login { inet_listener sieve { port = 4190 } #inet_listener sieve_deprecated { # port = 2000 #} # Number of connections to handle before starting a new process. Typically # the only useful values are 0 (unlimited) or 1. 1 is more secure, but 0 # is faster. doc/wiki/LoginProcess.txt #service_count = 1 # Number of processes to always keep waiting for more connections. #process_min_avail = 0 # If you set service_count=0, you probably need to grow this. #vsz_limit = 64M } service managesieve { # Max. number of ManageSieve processes (connections) #process_count = 1024 } # Service configuration protocol sieve { # Maximum ManageSieve command line length in bytes. ManageSieve usually does # not involve overly long command lines, so this setting will not normally need # adjustment #managesieve_max_line_length = 65536 # Maximum number of ManageSieve connections allowed for a user from each IP address. # NOTE: The username is compared case-sensitively. #mail_max_userip_connections = 10 # Space separated list of plugins to load (none known to be useful so far). Do NOT # try to load IMAP plugins here. #mail_plugins = # MANAGESIEVE logout format string: # %i - total number of bytes read from client # %o - total number of bytes sent to client #managesieve_logout_format = bytes=%i/%o # To fool ManageSieve clients that are focused on CMU's timesieved you can specify # the IMPLEMENTATION capability that the dovecot reports to clients. # For example: 'Cyrus timsieved v2.2.13' #managesieve_implementation_string = Dovecot Pigeonhole # Explicitly specify the SIEVE and NOTIFY capability reported by the server before # login. If left unassigned these will be reported dynamically according to what # the Sieve interpreter supports by default (after login this may differ depending # on the user). #managesieve_sieve_capability = #managesieve_notify_capability = # The maximum number of compile errors that are returned to the client upon script # upload or script verification. #managesieve_max_compile_errors = 5 # Refer to 90-sieve.conf for script quota configuration and configuration of # Sieve execution limits. } -- :) cumprimentos -- José Luís Faria Network Eng./Administrador de Sistemas Departamento de Informática Universidade do Minho Braga, Portugal smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] problems and dovecot manegesieve
On Tue, 2010-09-28 at 16:19 +0100, Jose Luis Faria wrote: Hello, my server is working with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0. but if activate managesieve, is not listening in 4190! Add sieve to protocols setting.
[Dovecot] Problems with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0
Hello, I have installed the dovecot-2.0.2 and dovecot-2.0-pigeonhole-0.2.0 but if I try to use sieve I get this error. I can't find any help in documentation. Any ideas? thanks --- /usr/local/sbin/dovecot start doveadm(root): Error: dlopen(/usr/local/lib/dovecot /lib90_sieve_plugin.so) failed: /usr/local/lib/dovecot/libdovecot-sieve.so.0: undefined symbol: mail_deliver_save_open /usr/local/sbin/dovecot -n # 2.0.2: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.9-42.0.2.ELsmp x86_64 CentOS release 4.3 (Final) auth_verbose = yes base_dir = /var/run/dovecot/ default_login_user = nobody disable_plaintext_auth = no info_log_path = /var/qmail/log/dovecot/mail.log listen = * log_path = /var/qmail/log/dovecot/dovecot.log mail_debug = yes mail_location = maildir:~/Maildir mail_plugins = sieve managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } service imap-login { inet_listener imap { port = 10143 } inet_listener imaps { port = 10993 ssl = yes } } service pop3-login { inet_listener pop3 { port = 10110 } inet_listener pop3s { port = 10995 ssl = yes } } userdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } protocol lda { auth_socket_path = /var/run/dovecot/auth-master info_log_path = /var/qmail/log/dovecot/dovecot-deliver.log log_path = /var/qmail/log/dovecot/dovecot-deliver.log mail_plugins = $mail_plugins postmaster_address = postmas...@example.tld } protocol lmtp { mail_plugins = $mail_plugins } -- :) cumprimentos -- José Luís Faria Network Eng./Administrador de Sistemas Departamento de Informática Universidade do Minho Braga, Portugal smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] Problems with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0
On Thu, 2010-09-16 at 11:05 +0100, Jose Luis Faria wrote: doveadm(root): Error: dlopen(/usr/local/lib/dovecot /lib90_sieve_plugin.so) failed: /usr/local/lib/dovecot/libdovecot-sieve.so.0: undefined symbol: mail_deliver_save_open .. mail_plugins = sieve Sieve plugin can be used only by lda/lmtp, but you enabled it globally. Use: protocol lda { mail_plugins = sieve }
Re: [Dovecot] Problems with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0
Op 16-9-2010 14:50, Timo Sirainen schreef: doveadm(root): Error: dlopen(/usr/local/lib/dovecot/lib90_sieve_plugin.so) failed:/usr/local/lib/dovecot/libdovecot-sieve.so.0: undefined symbol:mail_deliver_save_open Sieve plugin can be used only by lda/lmtp, but you enabled it globally. Use: protocol lda { mail_plugins = sieve } Wasn't this supposed to show a better error message now? I think I remember this was addressed recently. Regards, Stephan.
Re: [Dovecot] Problems with dovecot-2.0.2+dovecot-2.0-pigeonhole-0.2.0
On Thu, 2010-09-16 at 15:19 +0200, Stephan Bosch wrote: Op 16-9-2010 14:50, Timo Sirainen schreef: doveadm(root): Error: dlopen(/usr/local/lib/dovecot/lib90_sieve_plugin.so) failed:/usr/local/lib/dovecot/libdovecot-sieve.so.0: undefined symbol:mail_deliver_save_open Wasn't this supposed to show a better error message now? I think I remember this was addressed recently. It was, yeah. It just wasn't working in doveadm, but fixed now http://hg.dovecot.org/dovecot-2.0/rev/7000a9833b19. It now gives: doveadm(tss): Error: dlopen(/usr/local/lib/dovecot/lib90_sieve_plugin.so) failed: /usr/local/lib/dovecot/libdovecot-sieve.so.0: undefined symbol: mail_deliver_get_log_var_expand_table doveadm(tss): Error: Can't load plugin sieve_plugin: Plugin is intended to be used only by binaries: lda lmtp (we're doveadm) doveadm(tss): Fatal: Couldn't load required plugins
[Dovecot] Problems with dovecot 2.0, sieve and mdbox
Hi guys, I tried to use a global sieve skript to sort spam mails into a subfolder of INBOX. I´m using mdbox. The log shows that the script is called and executed but it is not able to find or create the mailbox: Sep 4 15:18:55 mercury dovecot: lmtp(6237, m...@steulerfliesen.de): Debug: Namespace : Permission lookup failed from /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht Sep 4 15:18:55 mercury dovecot: lmtp(6237, m...@steulerfliesen.de): Debug: Namespace : Using permissions from /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1 Sep 4 15:22:37 mercury dovecot: lmtp(6261, m...@steulerfliesen.de): Debug: Namespace : Permission lookup failed from /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht Sep 4 15:22:37 mercury dovecot: lmtp(6261, m...@steulerfliesen.de): Debug: Namespace : Using permissions from /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1 My skript looks like this: require fileinto; if header :contains X-Spam-Flag YES { fileinto Spamverdacht; } I also tried: require fileinto; if header :contains X-Spam-Flag YES { fileinto INBOX.Spamverdacht; } How can I fix this? Regards Patrick
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
On 04/09/2010 14:27, Patrick Westenberg wrote: The log shows that the script is called and executed but it is not able to find or create the mailbox: Hello Patrick, I probably can't help you with this problem, but I can mention that oftentimes if you ask about a problem on this list you may be asked to provide the output of dovecot -n. Bill
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
William Blunn schrieb: I probably can't help you with this problem, but I can mention that oftentimes if you ask about a problem on this list you may be asked to provide the output of dovecot -n. True words. # 2.0.1: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.5 auth_debug = yes auth_debug_passwords = yes auth_verbose = yes mail_debug = yes mail_gid = vmail mail_location = mdbox:~/mdbox mail_plugins = quota mail_uid = vmail managesieve_notify_capability = mailto managesieve_sieve_capability = comparator-i;octet comparator-i;ascii-casemap fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date passdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } plugin { quota = maildir:User quota quota_rule2 = Trash:storage=+50M sieve = ~/.dovecot.sieve sieve_global_path = /usr/local/etc/dovecot/sieve/default.sieve } protocols = lmtp service auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 } } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } ssl = no userdb { args = /usr/local/etc/dovecot/dovecot-sql.conf.ext driver = sql } protocol lmtp { mail_plugins = $mail_plugins sieve } protocol lda { mail_plugins = $mail_plugins sieve }
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
On Sat, 04 Sep 2010 15:27:26 +0200 Patrick Westenberg p...@wk-serv.de articulated: I tried to use a global sieve skript to sort spam mails into a subfolder of INBOX. I´m using mdbox. The log shows that the script is called and executed but it is not able to find or create the mailbox: Sep 4 15:18:55 mercury dovecot: lmtp(6237, m...@steulerfliesen.de): Debug: Namespace : Permission lookup failed from /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht Sep 4 15:18:55 mercury dovecot: lmtp(6237, m...@steulerfliesen.de): Debug: Namespace : Using permissions from /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1 Sep 4 15:22:37 mercury dovecot: lmtp(6261, m...@steulerfliesen.de): Debug: Namespace : Permission lookup failed from /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht Sep 4 15:22:37 mercury dovecot: lmtp(6261, m...@steulerfliesen.de): Debug: Namespace : Using permissions from /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1 My skript looks like this: require fileinto; if header :contains X-Spam-Flag YES { fileinto Spamverdacht; } I also tried: require fileinto; if header :contains X-Spam-Flag YES { fileinto INBOX.Spamverdacht; } How can I fix this? This looks very much like a permissions problem. Please post the output of 'dovecot -n' and the user/group modes set on /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht. -- Jerry ✌ dovecot.u...@seibercom.net Disclaimer: off-list followups get on-list replies or get ignored. Please do not ignore the Reply-To header. __ To get something clean, one has to get something dirty. To get something dirty, one does not have to get anything clean.
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
Jerry schrieb: This looks very much like a permissions problem. Please post the output of 'dovecot -n' and the user/group modes set on /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht. I posted dovecot -n in my previous post. user and group settings look like this: mercury:/var/mail/steulerfliesen.de/mail/mdbox# ls -l drwx--S--- 3 vmail vmail 4096 4. Sep 13:52 mailboxes drwx--S--- 2 vmail vmail 4096 4. Sep 14:07 storage mercury:/var/mail/steulerfliesen.de/mail/mdbox/mailboxes# ls -l drwx--S--- 3 vmail vmail 4096 4. Sep 13:52 INBOX I expect(ed) the folder Spamverdacht to be created automatically by dovecot like Dovecot 1.x does. Patrick
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
Why so complicated? Originalnachricht Von: fakessh fake...@fakessh.eu Gesendet: 4 Sep 2010 17:31 +02:00 An: Patrick Westenberg p...@wk-serv.de CC: dovecot@dovecot.org Betreff: Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox On Sat, 04 Sep 2010 15:27:26 +0200, Patrick Westenberg p...@wk-serv.de wrote: Hi guys, I tried to use a global sieve skript to sort spam mails into a subfolder of INBOX. I´m using mdbox. The log shows that the script is called and executed but it is not able to find or create the mailbox: Sep 4 15:18:55 mercury dovecot: lmtp(6237, m...@steulerfliesen.de): Debug: Namespace : Permission lookup failed from /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/Spamverdacht Sep 4 15:18:55 mercury dovecot: lmtp(6237, m...@steulerfliesen.de): Debug: Namespace : Using permissions from /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1 Sep 4 15:22:37 mercury dovecot: lmtp(6261, m...@steulerfliesen.de): Debug: Namespace : Permission lookup failed from /var/mail/steulerfliesen.de/mail/mdbox/mailboxes/INBOX.Spamverdacht Sep 4 15:22:37 mercury dovecot: lmtp(6261, m...@steulerfliesen.de): Debug: Namespace : Using permissions from /var/mail/steulerfliesen.de/mail/mdbox: mode=0700 gid=-1 My skript looks like this: require fileinto; if header :contains X-Spam-Flag YES { fileinto Spamverdacht; } I also tried: require fileinto; if header :contains X-Spam-Flag YES { fileinto INBOX.Spamverdacht; } How can I fix this? Regards Patrick the script should be require [fileinto,regex,comparator-i;ascii-numeric,reject,relational]; # rule:[spammanage-before] if header :value ge :comparator i;ascii-numeric [X-Spam-score] [500] { discard; stop; } if header :value ge :comparator i;ascii-numeric [X-Spam-score] [100] { fileinto Junk.spam; stop; } if header :value ge :comparator i;ascii-numeric [X-Spam-score] [10] { fileinto Junk; } elsif anyof ( header :contains Received [ [4.63. [218.160., [218.242.] ] ) { fileinto Junk; } elsif anyof ( header :contains [SPAM, X-Spam-hits] [ADDRESSES_ON_CD, X_OSIRU_DUL, X_OSIRU_SPAMWARE_SITE, X_OSIRU_SPAM_SRC ] ) { fileinto Junk; }
Re: [Dovecot] Problems with dovecot 2.0, sieve and mdbox
Hi again, FYI: this is the way it works for me: require [fileinto, mailbox]; if header :contains X-Spam-Flag YES { fileinto :create Spamverdacht; } If the specified mailbox does not exist, it will be created. Regards Patrick
[Dovecot] Problems compiling Dovecot 2.0.0 on Solaris 10 x86
I'm having issues getting Dovecot 2.0.0 to compile - I get the following error: cc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-settings -I../../src/lib-master -DPKG_RUNDIR=\/usr/local/var/run/dovecot\ -DPKG_LIBEXECDIR=\/usr/local/libexec/dovecot\ -DEXAMPLE_CONFIG_DIR=\/usr/local/share/doc/dovecot/example-config\ -DMODULEDIR=\/usr/local/lib/dovecot\ -DSSLDIR=\/etc/ssl\ -I/usr/local/include -I/usr/local/ssl/include -D_XPG6 -L/usr/local/lib -L/usr/local/ssl/lib -KPIC -lm -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -xc99 -I/usr/local/include -I/usr/local/ssl/include -L/usr/local/lib -L/usr/local/ssl/lib -D_XPG6 -xstrconst -KPIC -lm -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -c doveconf.c config-request.h, line 6: warning: useless declaration doveconf.c, line 554: undefined symbol: optarg doveconf.c, line 554: warning: improper pointer/integer combination: arg #2 doveconf.c, line 560: warning: improper pointer/integer combination: op = doveconf.c, line 581: undefined symbol: optind doveconf.c, line 583: undefined symbol: optind doveconf.c, line 584: undefined symbol: optind cc: acomp failed for doveconf.c gmake[3]: *** [doveconf.o] Error 2 gmake[3]: Leaving directory `/home/schatt/code/evaluation_src/dovecot-2.0.0/src/config' gmake[2]: *** [all-recursive] Error 1 gmake[2]: Leaving directory `/home/schatt/code/evaluation_src/dovecot-2.0.0/src' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory `/home/schatt/code/evaluation_src/dovecot-2.0.0' gmake: *** [all] Error 2 Anyone have any idea on how to resolve this one? -Drew
Re: [Dovecot] Problems compiling Dovecot 2.0.0 on Solaris 10 x86
On Wed, 2010-08-25 at 11:08 -0700, Drew Schatt wrote: I'm having issues getting Dovecot 2.0.0 to compile - I get the following error: Compiles fine with me and with a few other Solaris users. -D_XPG6 This breaks it. Why did you add it?
[Dovecot] Problems with Dovecot + imaptest
Hi everyone: I´m trying to install imaptest on my server with Solaris 10, however i´m found in this moment with some instalations problems. Anyone knows what libraries need have installed ? ./configure --with-dovecot=/opt/setup/dovecot-1.2.10 make Error: make all-recursive make[1]: Entering directory `/opt/setup/imaptest-20100630' Making all in src make[2]: Entering directory `/opt/setup/imaptest-20100630/src' if gcc -DHAVE_CONFIG_H -I. -I. -I.. -MT checkpoint.o -MD -MP -MF .deps/checkpoint.Tpo -c -o checkpoint.o checkpoint.c; \ then mv -f .deps/checkpoint.Tpo .deps/checkpoint.Po; else rm -f .deps/checkpoint.Tpo; exit 1; fi checkpoint.c:3:17: lib.h: No such file or directory checkpoint.c:4:17: str.h: No such file or directory checkpoint.c:5:19: array.h: No such file or directory checkpoint.c:6:24: mail-types.h: No such file or directory In file included from checkpoint.c:7: settings.h:4:21: network.h: No such file or directory In file included from checkpoint.c:7: settings.h:40: error: syntax error before ARRAY_TYPE settings.h:40: warning: no semicolon at end of struct or union settings.h:46: error: syntax error before random_states settings.h:46: warning: data definition has no type or storage class settings.h:47: error: syntax error before no_tracking settings.h:47: warning: data definition has no type or storage class settings.h:51: error: syntax error before '}' token In file included from checkpoint.c:8: mailbox.h:4:29: seq-range-array.h: No such file or directory In file included from checkpoint.c:8: mailbox.h:13: error: syntax error before struct mailbox.h:13: warning: data definition has no type or storage class mailbox.h:18: error: syntax error before uoff_t mailbox.h:18: warning: no semicolon at end of struct or union mailbox.h:22: error: syntax error before sent_date mailbox.h:22: warning: data definition has no type or storage class mailbox.h:25: error: syntax error before headers mailbox.h:25: warning: data definition has no type or storage class mailbox.h:28: error: syntax error before const mailbox.h:28: warning: data definition has no type or storage class mailbox.h:32: error: syntax error before uint32_t mailbox.h:32: warning: no semicolon at end of struct or union mailbox.h:37: error: syntax error before ref0_timeout mailbox.h:37: warning: data definition has no type or storage class mailbox.h:39: error: syntax error before internaldate mailbox.h:39: warning: data definition has no type or storage class mailbox.h:48: error: syntax error before ':' token mailbox.h:69: error: syntax error before uint64_t mailbox.h:69: warning: no semicolon at end of struct or union mailbox.h:72: error: syntax error before '*' token mailbox.h:72: warning: data definition has no type or storage class mailbox.h:81: error: syntax error before '}' token mailbox.h:82: error: syntax error before struct mailbox.h:82: warning: data definition has no type or storage class mailbox.h:100: error: syntax error before struct mailbox.h:100: warning: data definition has no type or storage class mailbox.h:107: error: syntax error before uint64_t mailbox.h:107: warning: no semicolon at end of struct or union mailbox.h:110: error: syntax error before struct mailbox.h:110: warning: data definition has no type or storage class mailbox.h:112: warning: parameter names (without types) in function declaration mailbox.h:112: warning: data definition has no type or storage class mailbox.h:114: error: syntax error before messages mailbox.h:114: warning: data definition has no type or storage class mailbox.h:137: error: syntax error before time_t mailbox.h:137: warning: no semicolon at end of struct or union mailbox.h:140: error: syntax error before struct mailbox.h:140: warning: data definition has no type or storage class mailbox.h:141: error: syntax error before struct mailbox.h:141: warning: data definition has no type or storage class mailbox.h:144: error: syntax error before expunged_uids mailbox.h:144: warning: data definition has no type or storage class mailbox.h:150: error: syntax error before ':' token mailbox.h:151: error: syntax error before ':' token mailbox.h:152: error: syntax error before ':' token mailbox.h:153: error: syntax error before ':' token mailbox.h:154: error: syntax error before ':' token mailbox.h:163: error: syntax error before uint64_t mailbox.h:163: warning: no semicolon at end of struct or union mailbox.h:168: error: syntax error before keywords mailbox.h:168: warning: data definition has no type or storage class mailbox.h:171: warning: parameter names (without types) in function declaration mailbox.h:171: warning: data definition has no type or storage class mailbox.h:173: error: syntax error before messages mailbox.h:173: warning: data definition has no type or storage class mailbox.h:177: error: syntax error before ':' token mailbox.h:178: error: syntax error before ':' token mailbox.h:191: error: syntax error before mailbox_view_save_offline_cache mailbox.h:191:
Re: [Dovecot] Problems with Dovecot + imaptest
On Wed, 2010-07-14 at 10:22 -0500, Wilberth Perez wrote: Hi everyone: I´m trying to install imaptest on my server with Solaris 10, however i´m found in this moment with some instalations problems. Anyone knows what libraries need have installed ? ./configure --with-dovecot=/opt/setup/dovecot-1.2.10 Does /opt/setup/dovecot-1.2.10 contain Dovecot's sources? Anyway, imaptest nowadays requires v2.0's sources (oops, the wiki is wrong, fixing now).
Re: [Dovecot] Problems with Dovecot + imaptest
Hi Timo: Yes, My Path /opt/setup/dovecot-1.2.10 contains Dovecot's sources. So, I can´t use imaptest with dovecot 1.210 ? Cheers . wilberth. El 14/07/2010 10:43 a.m., Timo Sirainen escribió: On Wed, 2010-07-14 at 10:22 -0500, Wilberth Perez wrote: Hi everyone: I´m trying to install imaptest on my server with Solaris 10, however i´m found in this moment with some instalations problems. Anyone knows what libraries need have installed ? ./configure --with-dovecot=/opt/setup/dovecot-1.2.10 Does /opt/setup/dovecot-1.2.10 contain Dovecot's sources? Anyway, imaptest nowadays requires v2.0's sources (oops, the wiki is wrong, fixing now).
Re: [Dovecot] Problems with Dovecot + imaptest
On Wed, 2010-07-14 at 10:59 -0500, Wilberth Perez wrote: So, I can´t use imaptest with dovecot 1.210 ? You can use imaptest with any imap server. You just have to build it against Dovecot v2.0 sources (there is no need to install Dovecot v2.0).
[Dovecot] problems implementing dovecot LDA with Postfix
Per the instructions here http://wiki.dovecot.org/LDA and here http://wiki.dovecot.org/LDA/Postfix I set postmaster_address = postmas...@hardwarefreak.com in /etc/dovecot/dovecot.conf and mailbox_command = /usr/lib/dovecot/deliver in /etc/postfix/main.cf When I restart dovecot I get this: [07:17:00][r...@greer]/etc/dovecot$ /etc/init.d/dovecot restart Restarting IMAP/POP3 mail server: dovecotError: Error in configuration file /etc/dovecot/dovecot.conf line 754: Unknown setting: postmaster_address Fatal: Invalid configuration in /etc/dovecot/dovecot.conf failed! And after restarting Postfix and sending a test message from a gmail account I get this in the mail log: May 9 07:26:09 greer postfix/qmgr[13384]: AEE976C32C: from=snugmons...@gmail.com, size=1628, nrcpt=1 (queue active) May 9 07:26:09 greer dovecot: deliver(stan): Fatal: postmaster_address setting not given May 9 07:26:09 greer postfix/local[13392]: AEE976C32C: to=s...@hardwarefreak.com, relay=local, delay=1.4, delays=1.3/0.03/0/0.04, dsn=4.3.0, status=deferred (temporary failure) The server is Debian Lenny 5.0.4 with Postfix 2.5.5 and Dovecot 1.2.11 from Lenny backports. Any ideas? Everything I've found via Google relating to this Dovecot startup error has to do with people converting old dovecot.conf files to a new dovecot version. -- Stan
Re: [Dovecot] problems implementing dovecot LDA with Postfix
Am 09.05.2010 14:43, schrieb Stan Hoeppner: Per the instructions here http://wiki.dovecot.org/LDA and here http://wiki.dovecot.org/LDA/Postfix I set postmaster_address = postmas...@hardwarefreak.com in /etc/dovecot/dovecot.conf postmaster_address has to be in an protocol lda {}-part: protocol lda { postmaster_address = postmas...@hardwarefreak.com } best regards, Anton -- ADIT Systems Anton Dollmaier, B.Sc. Im Moos 22 84323 Massing Telefon: +49-700-46862348* (Mo-Sa, 10:00-20:00 Uhr) Telefax: +49-700-32922348* Twitter: http://twitter.com/ADITSystems Blog:http://blog.aditsystems.de/ Wiki:https://kunden.aditsystems.de/wiki/ (*: 12ct./Minute aus dem Netz der DTAG, ggf. abweichende Kosten aus dem Mobilfunknetz)
Re: [Dovecot] problems implementing dovecot LDA with Postfix
Anton Dollmaier put forth on 5/9/2010 7:46 AM: Am 09.05.2010 14:43, schrieb Stan Hoeppner: Per the instructions here http://wiki.dovecot.org/LDA and here http://wiki.dovecot.org/LDA/Postfix I set postmaster_address = postmas...@hardwarefreak.com in /etc/dovecot/dovecot.conf postmaster_address has to be in an protocol lda {}-part: It is. Any other suggestions? -- Stan
Re: [Dovecot] problems implementing dovecot LDA with Postfix
Am 09.05.2010 um 16:04 schrieb Stan Hoeppner: postmaster_address has to be in an protocol lda {}-part: It is. Any other suggestions? -- Stan What does 'dovecot -n' list, does it show the LDA section syntactically correct? Regards Thomas
Re: [Dovecot] problems implementing dovecot LDA with Postfix
Thomas Leuxner put forth on 5/9/2010 9:19 AM: Am 09.05.2010 um 16:04 schrieb Stan Hoeppner: postmaster_address has to be in an protocol lda {}-part: It is. Any other suggestions? -- Stan What does 'dovecot -n' list, does it show the LDA section syntactically correct? [10:01:28][r...@greer]/etc/dovecot$ dovecot -n # 1.2.11: /etc/dovecot/dovecot.conf Error: Error in configuration file /etc/dovecot/dovecot.conf line 754: Unknown setting: postmaster_address Fatal: Invalid configuration in /etc/dovecot/dovecot.conf Damnit. I found it. It's always a stupid oversight... I'd forgotten to remove the comment symbols from the top and bottom of the LDA section. It's easy to forget little things like this when one doesn't live and breath inside dovecot.conf daily. #protocol lda { ... #} It looks like it's working now: May 9 10:17:18 greer dovecot: deliver(stan): msgid=4be6d19e.3070...@lorentz.leidenuniv.nl: saved mail to INBOX May 9 10:17:18 greer postfix/local[14447]: 0DA0C6C3D2: to=s...@hardwarefreak.com, relay=local, delay=0.43, delays=0.38/0.03/0/0.02, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver) Thanks for the help guys. If you'd not have kept my nose in dovecot.conf I'd not have found it. -- Stan
[Dovecot] Problems compiling dovecot 1.2 with vpopmail
Dear sirs I try to update dovecot from 1.1.16 to 1.2.6. But when compiling dovecot 1.2.6 get the following error: libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -o dovecot-auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o auth-master-listener.o auth-request.o auth-request-handler.o auth-stream.o auth-worker-client.o auth-worker-server.o db-checkpassword.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o mech-digest-md5.o mech-external.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o otp-skey-common.o plain-common.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-nss.o userdb-passwd.o userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o db-ldap.o passdb-ldap.o userdb-ldap.o -Wl,--export-dynamic libpassword.a ../lib-settings/libsettings.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../lib-sql/libsql.a ../lib/liblib.a -lpam -L/usr/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz -lm -lcrypt -ldl -lrt userdb-vpopmail.o(.text+0x3e2): In function `vpopmail_preinit': /usr/local/src/dovecot/dovecot-1.2.6/src/auth/userdb-vpopmail.c:163: undefined reference to `vauth_open' collect2: ld returned 1 exit status make[3]: *** [dovecot-auth] Error 1 make[3]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src/auth' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6' make: *** [all] Error 2 I use: CentOS 4.6 vpopmail 5.4.13 What could be wrong? Thanks Jose Luis _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
Friends, More information: The problem is with dovecot 1.2.6 and 1.2.5 With Dovecot 1.2.4 no problems. Thanks Jose Luis From: jolumape...@hotmail.com To: dovecot@dovecot.org Date: Fri, 16 Oct 2009 11:56:45 -0500 Subject: [Dovecot] Problems compiling dovecot 1.2 with vpopmail Dear sirs I try to update dovecot from 1.1.16 to 1.2.6. But when compiling dovecot 1.2.6 get the following error: libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -o dovecot-auth auth.o auth-cache.o auth-client-connection.o auth-master-connection.o auth-master-listener.o auth-request.o auth-request-handler.o auth-stream.o auth-worker-client.o auth-worker-server.o db-checkpassword.o db-sql.o db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o mech-cram-md5.o mech-digest-md5.o mech-external.o mech-gssapi.o mech-ntlm.o mech-otp.o mech-skey.o mech-rpa.o mech-apop.o mech-winbind.o otp-skey-common.o plain-common.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o passdb-checkpassword.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o passdb-shadow.o passdb-sia.o passdb-vpopmail.o passdb-sql.o userdb.o userdb-blocking.o userdb-checkpassword.o userdb-nss.o userdb-passwd.o userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o userdb-sql.o db-ldap.o passdb-ldap.o userdb-ldap.o -Wl,--export-dynamic libpassword.a ../lib-settings/libsettings.a ../lib-ntlm/libntlm.a ../lib-otp/libotp.a ../lib-sql/libsql.a ../lib/liblib.a -lpam -L/usr/vpopmail/lib -lvpopmail -L/usr/lib/mysql -lmysqlclient -lz -lm -lcrypt -ldl -lrt userdb-vpopmail.o(.text+0x3e2): In function `vpopmail_preinit': /usr/local/src/dovecot/dovecot-1.2.6/src/auth/userdb-vpopmail.c:163: undefined reference to `vauth_open' collect2: ld returned 1 exit status make[3]: *** [dovecot-auth] Error 1 make[3]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src/auth' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6' make: *** [all] Error 2 I use: CentOS 4.6 vpopmail 5.4.13 What could be wrong? Thanks Jose Luis _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
On Fri, 2009-10-16 at 11:56 -0500, Jose Luis Marin Perez wrote: /usr/local/src/dovecot/dovecot-1.2.6/src/auth/userdb-vpopmail.c:163: undefined reference to `vauth_open' .. vpopmail 5.4.13 Hmm. I thought the vauth_open() would have been in older vpopmails too, since apparently it's required in vpopmail 5.5. Anyway, you're using checkpassword and vchkpw, so you don't need to compile vpopmail support in dovecot. Just don't use --with-vpopmail configure option. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
Dear Timo, For a problem with expire plugin and the command dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool you recommended me configure userdb vpopmail and fix the problem. How can I solve this problem? Dovecot 1.2.4 has no problem to compile with vpopmail. I can use this version? Thanks Jose Luis dovecot-n # 1.1.16: /usr/local/etc/dovecot.conf # OS: Linux 2.6.9-67.0.7.EL i686 CentOS release 4.6 (Final) log_path: /var/log/dovecot.log listen: *:10143 ssl_listen: *:10943 login_dir: /usr/local/var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login first_valid_uid: 89 last_valid_uid: 89 first_valid_gid: 89 last_valid_gid: 89 mail_uid: 89 mail_gid: 89 mail_location: maildir:~/Maildir mail_debug: yes mail_plugins: quota imap_quota autocreate expire mail_log mail_log_max_lines_per_sec: 0 namespace: type: private separator: . prefix: INBOX. inbox: yes list: yes subscriptions: yes auth default: passdb: driver: checkpassword args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh userdb: driver: prefetch args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u userdb: driver: vpopmail socket: type: listen master: path: /usr/local/var/run/dovecot/auth-master mode: 384 user: vpopmail group: vchkpw plugin: quota: maildir quota_rule: ?:storage=0 quota_rule2: Trash:ignore quota_rule3: Papelera:ignore expire: INBOX.Papelera 1 INBOX.Papelera.* 1 expire_dict: proxy::expire mail_log_events: delete undelete expunge copy mailbox_delete mail_log_group_events: mail_log_fields: uid box msgid size autocreate: INBOX.Papelera autosubscribe: INBOX.Papelera dict: expire: mysql:/usr/local/etc/dovecot-dict-expire.conf Subject: Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail From: t...@iki.fi To: jolumape...@hotmail.com CC: dovecot@dovecot.org Date: Fri, 16 Oct 2009 14:56:20 -0400 On Fri, 2009-10-16 at 11:56 -0500, Jose Luis Marin Perez wrote: /usr/local/src/dovecot/dovecot-1.2.6/src/auth/userdb-vpopmail.c:163: undefined reference to `vauth_open' .. vpopmail 5.4.13 Hmm. I thought the vauth_open() would have been in older vpopmails too, since apparently it's required in vpopmail 5.5. Anyway, you're using checkpassword and vchkpw, so you don't need to compile vpopmail support in dovecot. Just don't use --with-vpopmail configure option. _ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=createwx_url=/friends.aspxmkt=en-us
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
On Fri, 2009-10-16 at 14:04 -0500, Jose Luis Marin Perez wrote: For a problem with expire plugin and the command dovecot --exec-mail ext /usr/libexec/dovecot/expire-tool you recommended me configure userdb vpopmail and fix the problem. No, I recommended userdb checkpassword. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
Dear Timo, This recommendation was made in July 2009 when I ask you about the operation of expiration plugin. I forward email. It is possible to solve this problem with Dovecot 1.2.6 or use dovecot 1.2.4? Thanks Jose Luis From: t...@iki.fi To: jolumape...@hotmail.com Date: Sun, 12 Jul 2009 15:52:50 -0400 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Problems with Expire Plugin Then you'll need to figure out some other userdb that lets Doveot get those directories with a userdb lookup. Have you tried userdb vpopmail? You can still keep using userdb prefetch for imap/pop3, just add the userdb vpopmail after the prefetch. On Jul 12, 2009, at 3:20 PM, Jose Luis Marin Perez wrote: Dear Timo, Thankas for your reply. Initially I configure static userdb static and worked for all accounts except for those with the directory with the following format /usr/vpopmail/domain/sistemasunidos/0/jmarin /usr/vpopmail/domain/sistemasunidos/1/lcampo So I had to configure userdb prefetch How could solve this problem because I have many accounts that have the format described above Thanks Jose Luis CC: dovecot@dovecot.org From: t...@iki.fi To: jolumape...@hotmail.com Subject: Re: [Dovecot] Problems with Expire Plugin Date: Sun, 12 Jul 2009 14:20:19 -0400 On Jul 11, 2009, at 2:36 AM, Jose Luis Marin Perez wrote: When running expire-tool --test shows the following message on dovecot.log: dovecot: Jul 11 02:05:12 Error: auth(default): prefetch(jma...@sistemasunidos.com ): userdb lookup not possible with only userdb prefetch Yeah, that's probably the reason it's not working. Dovecot needs to figure out user's userdb configuration but you've only configured userdb prefetch. You'd need to configure another userdb after the prefetch that allows Dovecot to do userdb lookups (without first authenticating, it doesn't know the users' passwords). passdb: driver: checkpassword args: /usr/vpopmail/bin/vchkpw /usr/local/bin/vchkpw-wrapper.sh userdb: driver: prefetch args: uid=89 gid=89 home=/usr/vpopmail/domains/%d/%u Looks like you're trying to use userdb prefetch as if it were userdb static. Those args in prefetch are ignored completely. If all your users use those uid/gid/home, perhaps you should be using userdb static instead of prefetch? _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE _ Connect to the next generation of MSN Messenger http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-ussource=wlmailtagline
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmai l
On Fri, 2009-10-16 at 14:27 -0500, Jose Luis Marin Perez wrote: Dear Timo, This recommendation was made in July 2009 when I ask you about the operation of expiration plugin. But since then you talked about wanting per-user expire settings and that can't work with userdb vpopmail, so I recommended userdb checkpassword: http://dovecot.org/list/dovecot/2009-October/043745.html It is possible to solve this problem with Dovecot 1.2.6 or use dovecot 1.2.4? I don't think userdb vpopmail is going to help you, but you could get 1.2.6 compiled by just deleting the vauth_open() line from code. I'll need to figure out something more permanent for it later. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
Hi Timo, When you compile dovecot with the option --without-vpopmail I get this error: ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x7a2):/usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:648: undefined reference to `SSL_COMP_get_name' ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x11fe): In function `ssl_proxy_ctx_init': /usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:818: undefined reference to `SSL_CTX_set_info_callback' collect2: ld returned 1 exit status make[3]: *** [imap-login] Error 1 make[3]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src/imap-login' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6' make: *** [all] Error 2 There is some patch to fix this? Information: CentOS4.6 openssl-0.9.7a-43.17.el4_7.2 Thanks Jose Luis Subject: Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail From: t...@iki.fi To: jolumape...@hotmail.com CC: dovecot@dovecot.org Date: Fri, 16 Oct 2009 15:37:38 -0400 On Fri, 2009-10-16 at 14:27 -0500, Jose Luis Marin Perez wrote: Dear Timo, This recommendation was made in July 2009 when I ask you about the operation of expiration plugin. But since then you talked about wanting per-user expire settings and that can't work with userdb vpopmail, so I recommended userdb checkpassword: http://dovecot.org/list/dovecot/2009-October/043745.html It is possible to solve this problem with Dovecot 1.2.6 or use dovecot 1.2.4? I don't think userdb vpopmail is going to help you, but you could get 1.2.6 compiled by just deleting the vauth_open() line from code. I'll need to figure out something more permanent for it later. _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmai l
On Fri, 2009-10-16 at 17:56 -0500, Jose Luis Marin Perez wrote: Hi Timo, When you compile dovecot with the option --without-vpopmail I get this error: ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text +0x7a2):/usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:648: undefined reference to `SSL_COMP_get_name' This happens with old OpenSSL versions. You can fix it with attached patch. diff -r 5c5fc2aa299a src/login-common/ssl-proxy-openssl.c --- a/src/login-common/ssl-proxy-openssl.c Mon Oct 05 19:52:03 2009 -0400 +++ b/src/login-common/ssl-proxy-openssl.c Fri Oct 16 18:57:55 2009 -0400 @@ -635,7 +635,9 @@ const char *ssl_proxy_get_security_string(struct ssl_proxy *proxy) { SSL_CIPHER *cipher; +#ifdef HAVE_SSL_COMPRESSION const COMP_METHOD *comp; +#endif int bits, alg_bits; const char *comp_str; @@ -644,9 +646,13 @@ cipher = SSL_get_current_cipher(proxy-ssl); bits = SSL_CIPHER_get_bits(cipher, alg_bits); +#ifdef HAVE_SSL_COMPRESSION comp = SSL_get_current_compression(proxy-ssl); comp_str = comp == NULL ? : t_strconcat( , SSL_COMP_get_name(comp), NULL); +#else + comp_str = ; +#endif return t_strdup_printf(%s with cipher %s (%d/%d bits)%s, SSL_get_version(proxy-ssl), SSL_CIPHER_get_name(cipher), signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail
Hi Timo, Now get this error: /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast-o imap-login client.o client-authenticate.o imap-proxy.o ../login-common/liblogin-common.a ../lib-imap/libimap.a ../lib-auth/libauth.a ../lib/liblib.a -lssl -lcrypto -ldl -lrt libtool: link: gcc -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -o imap-login client.o client-authenticate.o imap-proxy.o ../login-common/liblogin-common.a ../lib-imap/libimap.a ../lib-auth/libauth.a ../lib/liblib.a -lssl -lcrypto -ldl -lrt ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x11ca): In function `ssl_proxy_ctx_init': /usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:824: undefined reference to `SSL_CTX_set_info_callback' collect2: ld returned 1 exit status make[3]: *** [imap-login] Error 1 make[3]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src/imap-login' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6' make: *** [all] Error 2 Thanks Jose Luis From: jolumape...@hotmail.com To: t...@iki.fi Date: Fri, 16 Oct 2009 17:56:22 -0500 CC: dovecot@dovecot.org Subject: Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail Hi Timo, When you compile dovecot with the option --without-vpopmail I get this error: ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x7a2):/usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:648: undefined reference to `SSL_COMP_get_name' ../login-common/liblogin-common.a(ssl-proxy-openssl.o)(.text+0x11fe): In function `ssl_proxy_ctx_init': /usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:818: undefined reference to `SSL_CTX_set_info_callback' collect2: ld returned 1 exit status make[3]: *** [imap-login] Error 1 make[3]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src/imap-login' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/local/src/dovecot/dovecot-1.2.6' make: *** [all] Error 2 There is some patch to fix this? Information: CentOS4.6 openssl-0.9.7a-43.17.el4_7.2 Thanks Jose Luis Subject: Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmail From: t...@iki.fi To: jolumape...@hotmail.com CC: dovecot@dovecot.org Date: Fri, 16 Oct 2009 15:37:38 -0400 On Fri, 2009-10-16 at 14:27 -0500, Jose Luis Marin Perez wrote: Dear Timo, This recommendation was made in July 2009 when I ask you about the operation of expiration plugin. But since then you talked about wanting per-user expire settings and that can't work with userdb vpopmail, so I recommended userdb checkpassword: http://dovecot.org/list/dovecot/2009-October/043745.html It is possible to solve this problem with Dovecot 1.2.6 or use dovecot 1.2.4? I don't think userdb vpopmail is going to help you, but you could get 1.2.6 compiled by just deleting the vauth_open() line from code. I'll need to figure out something more permanent for it later. _ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+worldmkt=en-USform=QBRE _ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vistamkt=en-USform=QBRE
Re: [Dovecot] Problems compiling dovecot 1.2 with vpopmai l
On Fri, 2009-10-16 at 18:26 -0500, Jose Luis Marin Perez wrote: /usr/local/src/dovecot/dovecot-1.2.6/src/login-common/ssl-proxy-openssl.c:824: undefined reference to `SSL_CTX_set_info_callback' Does the attached patch fix it? diff -r b5e6de777e52 src/login-common/ssl-proxy-openssl.c --- a/src/login-common/ssl-proxy-openssl.c Fri Oct 16 15:30:15 2009 -0400 +++ b/src/login-common/ssl-proxy-openssl.c Fri Oct 16 19:34:14 2009 -0400 @@ -721,6 +721,7 @@ return ssl_params.dh_1024; } +#ifdef HAVE_SSL_CTX_SET_INFO_CALLBACK static void ssl_info_callback(const SSL *ssl, int where, int ret) { struct ssl_proxy *proxy; @@ -738,6 +739,7 @@ net_ip2addr(proxy-ip)); } } +#endif static int ssl_verify_client_cert(int preverify_ok, X509_STORE_CTX *ctx) { @@ -820,8 +822,10 @@ cafile, ssl_last_error()); } } +#ifdef HAVE_SSL_CTX_SET_INFO_CALLBACK if (verbose_ssl) SSL_CTX_set_info_callback(ssl_ctx, ssl_info_callback); +#endif if (SSL_CTX_need_tmp_RSA(ssl_ctx)) SSL_CTX_set_tmp_rsa_callback(ssl_ctx, ssl_gen_rsa_key); SSL_CTX_set_tmp_dh_callback(ssl_ctx, ssl_tmp_dh_callback); signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems getting Dovecot to work.
On 9/12/2009 9:06 AM, Mark Gillespie wrote: Hi, having a nightmare trying to get dovecot working on my SheevaPlug (flash based ARM embedded device). I need to use virtual users, and I need to store all the mail on an external USB HDD (not in home directories which live in the limited flash space). However I can't even log in via telnet. I've followed the Wiki troubleshooting tips, and still no further forward. logging via telnet, I get: user sheeva BAD Error in IMAP command received by server. the logs show: ubuntu dovecot: User sheeva is missing UID (see mail_uid setting) What do I need to do? I know basic Linux stuff, but I wouldn't call myself an expert, so please no tech talks!!! Thats kind of a silly thing to say on a technical support list, don't you think? ;) Seriously... what you are trying to do *requires* some level of technical skill... to expect otherwise is - well, unrealistic. -- Best regards, Charles
[Dovecot] Problems getting Dovecot to work.
Hi, having a nightmare trying to get dovecot working on my SheevaPlug (flash based ARM embedded device). I need to use virtual users, and I need to store all the mail on an external USB HDD (not in home directories which live in the limited flash space). However I can't even log in via telnet. I've followed the Wiki troubleshooting tips, and still no further forward. logging via telnet, I get: user sheeva BAD Error in IMAP command received by server. the logs show: ubuntu dovecot: User sheeva is missing UID (see mail_uid setting) What do I need to do? I know basic Linux stuff, but I wouldn't call myself an expert, so please no tech talks!!! -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: [Dovecot] Problems getting Dovecot to work.
On Sat, 12 Sep 2009, Mark Gillespie wrote: Hi, having a nightmare trying to get dovecot working on my SheevaPlug (flash based ARM embedded device). I need to use virtual users, and I need to store all the mail on an external USB HDD (not in home directories which live in the limited flash space). However I can't even log in via telnet. I've followed the Wiki troubleshooting tips, and still no further forward. logging via telnet, I get: user sheeva BAD Error in IMAP command received by server. the logs show: ubuntu dovecot: User sheeva is missing UID (see mail_uid setting) Is that *all* the logs show? What do I need to do? I know basic Linux stuff, but I wouldn't call myself an expert, so please no tech talks!!! This is a technical mailing list. See: http://wiki.dovecot.org/UserIds and note that mail_uid = System user and group used to access mails. If you use multiple, userdb can override these by returning uid or gid fields. You can use either numbers or names. -- Sahil Tandon sa...@tandon.net
Re: [Dovecot] Problems with Dovecot 1.1.16 and MS A.D.
Only thing I know about AD is that you apparently should use port 3268. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems with dovecot/sendmail combi.
On Fri, 2009-08-21 at 14:57 +0200, Roger wrote: Looks like this is working, imapsync now nicely makes the subfolders. But, when I try to log in from the webmail server I got this error: IMAP(sannevdh): Error: stat(/var/mail/sannevdh/tmp) failed: Not a directory So you want mbox as INBOX and Maildir elsewhere? http://wiki.dovecot.org/Namespaces has example for that. prefix: #mbox/ location: maildir:~/Maildir:INBOX=/var/mail/%u You need to use mbox: prefix and some other path than ~/Maildir. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems with dovecot/sendmail combi.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 20 Aug 2009, Roger wrote: But how do I do that and does that inflict all users on the server (only a part of the users use imap). there are about 200 pop users on the mail server and only 50 of them need imap. Replace mail_location: mail_location: maildir:~/Maildir:INBOX=/var/mail/%u then imap_sync POP and IMAP users don't care about server-side storage format. Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSo5geXWSIuGy1ktrAQLwGwf/Q/0HauNbZzZw4rUgUeR3QxtZztGADweM Bmot3ucHg4YLD1WARFQFyapWIyGZRDIhCeJZtUYNnheN48wU4ieh3xTXnPOyjhRH zWHh5QTIXX6c+e2nUtJvmBK4dt6lsCBaQqoehVSP8tTKYAkpiHS3ubAHKojm8tck XYkolCivKbV7fUi8AMlFi9YcHbUzaDjrOIGq5GsVFWFV0xlLk1wBkklMxx96ARh/ AKokMOdI6dNsQQJMjyQirLuGtD88sOYVY/9ywwdNO4qZ+lCegZVluJj+bg9Df3xZ TxfATfqyrDLND8WvvWaIFOTdQjfRS/qNY5I5pYcAEIHAd6PtM36JLA== =o+SJ -END PGP SIGNATURE-
Re: [Dovecot] Problems with dovecot/sendmail combi.
Steffen Kaiser wrote .. -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 20 Aug 2009, Roger wrote: But how do I do that and does that inflict all users on the server (only a part of the users use imap). there are about 200 pop users on the mail server and only 50 of them need imap. Replace mail_location: mail_location: maildir:~/Maildir:INBOX=/var/mail/%u then imap_sync POP and IMAP users don't care about server-side storage format. Bye, - -- Steffen Kaiser Looks like this is working, imapsync now nicely makes the subfolders. But, when I try to log in from the webmail server I got this error: IMAP(sannevdh): Error: stat(/var/mail/sannevdh/tmp) failed: Not a directory I changed the dovecot.conf to this: mail_location: maildir:~/Maildir:INBOX=/var/mail/%u and namespace: type: private separator: / prefix: #mbox/ location: maildir:~/Maildir:INBOX=/var/mail/%u inbox: yes list: yes subscriptions: yes namespace: type: private separator: . location: maildir:~/Maildir list: no subscriptions: yes
[Dovecot] Problems with dovecot/sendmail combi.
Hi, I am really stuck here. I am trying to setup imap for an external mail server. I have a freebsd server running sendmail / dovecot. I am transfering the existing mail from an exchange 2003 server to the mailserver using imapsync. This works fine, but gives errors when it tries to make a submap, also thunderbird gives an error Mailbox doesn't allow inferior mailboxes when I try to make a submap. I found out that it has something to do with the mbox not able to have submaps and there should be a workaround using namespaces. I tried several setups but keep getting errors. Does anybody know how to configure namespaces to allow submaps? dovecot -n # 1.2.3: /usr/local/etc/dovecot.conf # OS: FreeBSD 6.4-STABLE i386 log_path: /var/log/dovecot.log protocols: imap imaps pop3 pop3s disable_plaintext_auth: no verbose_ssl: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login login_process_per_connection: no login_processes_count: 4 verbose_proctitle: yes first_valid_gid: 0 mail_access_groups: mail mail_location: mbox:~/mail:INBOX=/var/mail/%u mail_debug: yes mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/local/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh namespace: type: private separator: / prefix: #mbox/ location: mbox:~/mail:INBOX=/var/mail/%u inbox: yes list: yes subscriptions: yes namespace: type: private separator: / location: maildir:~/mail list: yes subscriptions: yes lda: postmaster_address: postmas...@example.com sendmail_path: /usr/sbin/sendmail auth default: verbose: yes debug: yes debug_passwords: yes passdb: driver: pam userdb: driver: passwd mbox is in /var/mail/%u and home dir is in /home/mailusers/%u
Re: [Dovecot] Problems with dovecot/sendmail combi.
Yes, But how do I do that and does that inflict all users on the server (only a part of the users use imap). there are about 200 pop users on the mail server and only 50 of them need imap. Thanks, Roger Charles Marcus wrote .. On 8/20/2009, Roger Berger (dove...@berger.nl) wrote: I found out that it has something to do with the mbox not able to have submaps and there should be a workaround using namespaces. I tried several setups but keep getting errors. Does anybody know how to configure namespaces to allow submaps? Assuming you mean subFOLDERS, my recommendation is to convert to maildir at the same time. -- Best regards, Charles
Re: [Dovecot] Problems with dovecot/sendmail combi.
On 8/20/2009, Roger Berger (dove...@berger.nl) wrote: I found out that it has something to do with the mbox not able to have submaps and there should be a workaround using namespaces. I tried several setups but keep getting errors. Does anybody know how to configure namespaces to allow submaps? Assuming you mean subFOLDERS, my recommendation is to convert to maildir at the same time. -- Best regards, Charles
[Dovecot] Problems with Dovecot 1.1.16 and MS A.D.
Hello dear fellows, I'm trying to integrate my dovecot (version 1.1.16) but it's not working anyway. The test that I'm doing is simple: # telnet mail.unimetro.net 110 Trying 192.168.20.4... Connected to mail.unimetro.net. Escape character is '^]'. +OK Unimetro Mailserver Ready. user bindmail +OK pass xxx123 Connection closed by foreign host. At /var/log/dovecot.log I see these lines: dovecot: Aug 12 14:55:43 Info: dovecot v1.1.16 starting up dovecot: Aug 12 14:59:46 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 14:59:46 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 14:59:46 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:02:46 Info: pop3-login: Disconnected: Inactivity (auth failed, 1 attempts): method=PLAIN, rip=192.168.20.4, lip=192.168.20.4, secured dovecot: Aug 12 15:06:57 Error: auth(default): ldap(postmaster): Connection appears to be hanging, reconnecting dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): ldap(postmaster): Connection appears to be hanging, reconnecting dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): ldap(bindmail,192.168.20.4): ldap_search(((ObjectClass=person)(sAMAccountName=bindmail)(memberOf=CN=UMAMAIL,OU=Groups,DC=unimetro,DC=net))) failed: Operations error dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: dovecot: Aug 12 15:06:57 Error: auth(default): re_encode_request new request is: Some times, with the same test these lines appears: dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:31:04 Error: auth(default): ldap(bindmail,192.168.20.4): ldap_search(((ObjectClass=person)(sAMAccountName=bindmail) (memberOf=CN=UMAMAIL,OU=Groups,DC=unimetro,DC=net))) failed: Operations error dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:31:04 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:31:06 Info: pop3-login: Disconnected (auth failed, 1 attempts): user=bindmail, method=PLAIN, rip=192.168.20.4, lip=192.168.20.4, secured dovecot: Aug 11 10:34:10 Info: pop3-login: Disconnected: Inactivity (auth failed, 1 attempts): user=bindmail, method=PLAIN, rip=192.168.20.4, lip=192.168.20.4, secured dovecot: Aug 11 10:35:17 Panic: auth(default): file aqueue.c: line 69 (aqueue_delete): assertion failed: (n count) dovecot: Aug 11 10:35:17 Error: child 1579 (auth) killed with signal 6 (core not dumped) dovecot: Aug 11 10:38:17 Info: pop3-login: Disconnected: Inactivity (auth failed, 1 attempts): method=PLAIN, rip=192.168.20.4, lip=192.168.20.4, secured dovecot: Aug 11 10:50:32 Error: auth(default): ber_get_next failed. dovecot: Aug 11 10:50:32 Error: auth(default): LDAP: Connection lost to LDAP server, reconnecting dovecot: Aug 11 10:54:53 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:54:53 Error: auth(default): re_encode_request new request is: dovecot: Aug 11 10:54:53 Error: auth(default): re_encode_request new request is: Attached are my confs. I'm running at a FreeBSD 7.2 BOX. # pkg_info | egrep dovecot|postfix|ldap apr-ipv6-gdbm-db42-ldap-mysql-pgsql-1.3.8.1.3.9 Apache Portability Library dovecot-1.1.16 Secure and compact IMAP and POP3 servers dovecot-sieve-1.1.6 A Sieve plugin for the Dovecot 'deliver' LDA openldap-client-2.4.17 Open source LDAP client implementation postfix-2.6.2_1,1 A secure alternative to widely-used Sendmail And I have success using ldapsearch to access the MS A.D with: /usr/local/bin/ldapsearch -v -x -h 192.168.20.3 -D CN=bindmail,CN=Users,DC=unimetro,DC=net -w x123 -b dc=unimetro, dc=net Thanks for your time! Best regards, Vinícius Schmidt dovecot.conf Description: Binary data dovecot-ldap.conf Description: Binary data
[Dovecot] Problems with Dovecot 1.2.3 + IMAP (SSL) + iPhone OS 3.0
Hello Has anyone else problems with Dovecot 1.2.3? For clients such as Thunderbird, Outlook 2007 everything works perfect. When I use an iPhone the child process is killed: Aug 11 08:08:44 imap-login: Info: Login: user=username, method=PLAIN,rip=1.2.3.4, lip=4.3.2.1, TLS Aug 11 08:08:44 dovecot: Error: child 5382 (imap) killed with signal 11 (core dumps disabled) Currently I have downgraded again to the working 1.2. I wonder if this problem is known or anyone is looking for it.
Re: [Dovecot] Problems with Dovecot 1.2.3 + IMAP (SSL) + iPhone OS 3.0
On Aug 11, 2009, at 2:22 AM, Sascha Scandella wrote: Has anyone else problems with Dovecot 1.2.3? For clients such as Thunderbird, Outlook 2007 everything works perfect. When I use an iPhone the child process is killed: Aug 11 08:08:44 imap-login: Info: Login: user=username, method=PLAIN,rip=1.2.3.4, lip=4.3.2.1, TLS Aug 11 08:08:44 dovecot: Error: child 5382 (imap) killed with signal 11 (core dumps disabled) Can you get gdb backtrace? http://dovecot.org/bugreport.html Or do you have a shared namespace? There was a crash bug related to it..
[Dovecot] problems compiling dovecot-1.2.2 on solaris 10
if test $dot_seen = no; then \ make $target-am || exit 1; \ fi; test -z $fail make: Fatal error: Command failed for target `all-recursive' Current working directory /scratch/jawelsh/src/dovecot-1.2.2/src *** Error code 1 The following command caused the error: failcom='exit 1'; \ for f in x $MAKEFLAGS; do \ case $f in \ *=* | --[!k]*);; \ *k*) failcom='fail=yes';; \ esac; \ done; \ dot_seen=no; \ target=`echo all-recursive | sed s/-recursive//`; \ list='src doc'; for subdir in $list; do \ echo Making $target in $subdir; \ if test $subdir = .; then \ dot_seen=yes; \ local_target=$target-am; \ else \ local_target=$target; \ fi; \ (cd $subdir make $local_target) \ || eval $failcom; \ done; \ if test $dot_seen = no; then \ make $target-am || exit 1; \ fi; test -z $fail make: Fatal error: Command failed for target `all-recursive' Current working directory /scratch/jawelsh/src/dovecot-1.2.2 *** Error code 1 make: Fatal error: Command failed for target `all' [house-7]$ this is with gcc-4.1.1 any ideas? Jason
Re: [Dovecot] problems compiling dovecot-1.2.2 on solaris 10
On Wed, 2009-07-29 at 09:33 -0400, Jason Welsh wrote: if test $dot_seen = no; then \ make $target-am || exit 1; \ fi; test -z $fail make: Fatal error: Command failed for target `all-recursive' Current working directory /scratch/jawelsh/src/dovecot-1.2.2/src *** Error code 1 The following command caused the error: failcom='exit 1'; \ .. Umm. Is this from the actual 1.2.2 tarball? Did you run any autotools stuff before running configure and make? That error you have doesn't look like anything I've seen before, so I've no idea what the problem is in your system. There are two other problems in Solaris though, but neither produces the error you see. I guess you could anyway try running http://dovecot.org/nightly/dovecot-latest.tar.gz which fixes those two Solaris issues.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] problems compiling dovecot-1.2.2 on solaris 10
well, I thought I had the official tarball, but the dovecot-latest.tar.gz compiled fine.. thanks. Jason Timo Sirainen wrote: On Wed, 2009-07-29 at 09:33 -0400, Jason Welsh wrote: if test $dot_seen = no; then \ make $target-am || exit 1; \ fi; test -z $fail make: Fatal error: Command failed for target `all-recursive' Current working directory /scratch/jawelsh/src/dovecot-1.2.2/src *** Error code 1 The following command caused the error: failcom='exit 1'; \ .. Umm. Is this from the actual 1.2.2 tarball? Did you run any autotools stuff before running configure and make? That error you have doesn't look like anything I've seen before, so I've no idea what the problem is in your system. There are two other problems in Solaris though, but neither produces the error you see. I guess you could anyway try running http://dovecot.org/nightly/dovecot-latest.tar.gz which fixes those two Solaris issues.. -- |Jason Welsh ja...@monsterjam.org| | http://monsterjam.orgDSS PGP: 0x5E30CC98 | |gpg key: http://monsterjam.org/gpg/ |
Re: [Dovecot] Problems with dovecot
On Sat, 2009-01-10 at 17:30 +0100, Filip Francis wrote: Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory That's weird. Try if setting login_process_size=0 helps? signature.asc Description: This is a digitally signed message part
[Dovecot] Problems with dovecot
Hi all, Ihave jsut been compiling dovecot 1.1.6-1.1.8 on a solaris 10 x86 machine with sun studio 12. It compiles correctly but when i want to run dovecot i am getting this error message Jan 10 17:16:16 Carolyn dovecot: [ID 762119 mail.info] Dovecot v1.1.8 starting up Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth-worker(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.info] auth-worker(default): mysql: Connected to localhost (mail) Jan 10 17:16:17 Carolyn dovecot: [ID 575603 mail.error] Temporary failure in creating login processes, slowing down for now Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.crit] Panic: file istream.c: line 89: assertion failed: (stream-eof) Jan 10 17:16:17 Carolyn dovecot: [ID 398108 mail.error] Raw backtrace: and i have tried already so many things in orde to get this up and running could somebody help me out on this. I need to get this running. dovecot -n gives me # 1.1.8: /opt/Dovecot/etc/dovecot.conf # OS: SunOS 5.10 i86pc zfs base_dir: /var/run/dovecot log_timestamp: ?%Y-%m-%d %H:%M:%S ? protocols: imap pop3 listen(default): *:143 listen(imap): *:143 listen(pop3): *:110 ssl_disable: yes login_dir: /var/run/dovecot/login login_executable(default): /opt/Dovecot/libexec/dovecot/imap-login login_executable(imap): /opt/Dovecot/libexec/dovecot/imap-login login_executable(pop3): /opt/Dovecot/libexec/dovecot/pop3-login login_user: vmail login_process_size: 128 first_valid_uid: 150 last_valid_uid: 150 mail_access_groups: mail mail_location: maildir:/var/vmail/%d/%u mail_debug: yes mail_executable(default): /opt/Dovecot/libexec/dovecot/imap mail_executable(imap): /opt/Dovecot/libexec/dovecot/imap mail_executable(pop3): /opt/Dovecot/libexec/dovecot/pop3 mail_plugin_dir(default): /opt/Dovecot/lib/dovecot/imap mail_plugin_dir(imap): /opt/Dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /opt/Dovecot/lib/dovecot/pop3 auth default: mechanisms: plain login user: nobody verbose: yes debug: yes debug_passwords: yes passdb: driver: sql args: /opt/Dovecot/etc/dovecot-sql.conf userdb: driver: sql args: /opt/Dovecot/etc/dovecot-sql.conf socket: type: listen client: path: /var/spool/postfix/private/auth mode: 432 user: postfix master: path: /var/run/dovecot/auth-master mode: 432 user: vmail group: mail ../sbin/dovecot --build-options Build options: ioloop=poll openssl Mail storages: maildir mbox raw SQL drivers: mysql Passdb: checkpassword pam passwd passwd-file shadow sql Userdb: passwd passwd-file prefetch sql static and driver = mysql connect = host=localhost dbname=xxx user=xxx password=xxx # The new name for MD5 is MD5-CRYPT so you might need to change this depending on version default_pass_scheme = MD5 # Get the mailbox user_query = SELECT '/var/vmail/%d/%n' as home, 'maildir:/var/vmail/%d/%n' as mail, 150 AS uid, 6 AS gid, concat('dirsize:storage=', quota) AS quota FROM mailbox WHERE username = '%u' AND active = '1' # Get the password password_query = SELECT username
Re: [Dovecot] Problems with dovecot
Filip Francis wrote: Hi all, Ihave jsut been compiling dovecot 1.1.6-1.1.8 on a solaris 10 x86 machine with sun studio 12. It compiles correctly but when i want to run dovecot i am getting this error message Jan 10 17:16:16 Carolyn dovecot: [ID 762119 mail.info] Dovecot v1.1.8 starting up Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth-worker(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.info] auth-worker(default): mysql: Connected to localhost (mail) Jan 10 17:16:17 Carolyn dovecot: [ID 575603 mail.error] Temporary failure in creating login processes, slowing down for now Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.crit] Panic: file istream.c: line 89: assertion failed: (stream-eof) Jan 10 17:16:17 Carolyn dovecot: [ID 398108 mail.error] Raw backtrace: what does ldd /opt/Dovecot/libexec/dovecot/imap-login give? -- Udo Rader http://www.bestsolution.at
Re: [Dovecot] Problems with dovecot
r...@carolyn /opt/Dovecot/etc # ldd /opt/Dovecot/libexec/dovecot/imap-login libssl.so.0.9.7 = /opt/coolstack/lib/libssl.so.0.9.7 libcrypto.so.0.9.7 =/opt/coolstack/lib/libcrypto.so.0.9.7 librt.so.1 =/usr/lib/librt.so.1 libnsl.so.1 = /usr/lib/libnsl.so.1 libsocket.so.1 =/usr/lib/libsocket.so.1 libsendfile.so.1 = /usr/lib/libsendfile.so.1 libmtsk.so.1 = /usr/lib/libmtsk.so.1 libthread.so.1 =/usr/lib/libthread.so.1 libc.so.1 = /usr/lib/libc.so.1 libaio.so.1 = /lib/libaio.so.1 libmd.so.1 =/lib/libmd.so.1 libmp.so.2 =/lib/libmp.so.2 libscf.so.1 = /lib/libscf.so.1 libdl.so.1 =/lib/libdl.so.1 libpthread.so.1 = /lib/libpthread.so.1 libm.so.2 = /lib/libm.so.2 libdoor.so.1 = /lib/libdoor.so.1 libuutil.so.1 = /lib/libuutil.so.1 libgen.so.1 = /lib/libgen.so.1 libssl_extra.so.0.9.7 = /usr/sfw/lib/libssl_extra.so.0.9.7 libcrypto_extra.so.0.9.7 = /usr/sfw/lib/libcrypto_extra.so.0.9.7 Filip Udo Rader wrote: Filip Francis wrote: Hi all, Ihave jsut been compiling dovecot 1.1.6-1.1.8 on a solaris 10 x86 machine with sun studio 12. It compiles correctly but when i want to run dovecot i am getting this error message Jan 10 17:16:16 Carolyn dovecot: [ID 762119 mail.info] Dovecot v1.1.8 starting up Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth-worker(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.info] auth-worker(default): mysql: Connected to localhost (mail) Jan 10 17:16:17 Carolyn dovecot: [ID 575603 mail.error] Temporary failure in creating login processes, slowing down for now Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.crit] Panic: file istream.c: line 89: assertion failed: (stream-eof) Jan 10 17:16:17 Carolyn dovecot: [ID 398108 mail.error] Raw backtrace: what does ldd /opt/Dovecot/libexec/dovecot/imap-login give? -- Udo Rader http://www.bestsolution.at
Re: [Dovecot] Problems with dovecot
Filip Francis wrote: r...@carolyn /opt/Dovecot/etc # ldd /opt/Dovecot/libexec/dovecot/imap-login libssl.so.0.9.7 = /opt/coolstack/lib/libssl.so.0.9.7 libcrypto.so.0.9.7 =/opt/coolstack/lib/libcrypto.so.0.9.7 librt.so.1 =/usr/lib/librt.so.1 libnsl.so.1 = /usr/lib/libnsl.so.1 libsocket.so.1 =/usr/lib/libsocket.so.1 libsendfile.so.1 = /usr/lib/libsendfile.so.1 libmtsk.so.1 = /usr/lib/libmtsk.so.1 libthread.so.1 =/usr/lib/libthread.so.1 libc.so.1 = /usr/lib/libc.so.1 libaio.so.1 = /lib/libaio.so.1 libmd.so.1 =/lib/libmd.so.1 libmp.so.2 =/lib/libmp.so.2 libscf.so.1 = /lib/libscf.so.1 libdl.so.1 =/lib/libdl.so.1 libpthread.so.1 = /lib/libpthread.so.1 libm.so.2 = /lib/libm.so.2 libdoor.so.1 = /lib/libdoor.so.1 libuutil.so.1 = /lib/libuutil.so.1 libgen.so.1 = /lib/libgen.so.1 libssl_extra.so.0.9.7 = /usr/sfw/lib/libssl_extra.so.0.9.7 libcrypto_extra.so.0.9.7 = /usr/sfw/lib/libcrypto_extra.so.0.9.7 Filip Udo Rader wrote: Filip Francis wrote: Hi all, Ihave jsut been compiling dovecot 1.1.6-1.1.8 on a solaris 10 x86 machine with sun studio 12. It compiles correctly but when i want to run dovecot i am getting this error message Jan 10 17:16:16 Carolyn dovecot: [ID 762119 mail.info] Dovecot v1.1.8 starting up Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth-worker(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.info] auth-worker(default): mysql: Connected to localhost (mail) Jan 10 17:16:17 Carolyn dovecot: [ID 575603 mail.error] Temporary failure in creating login processes, slowing down for now Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.crit] Panic: file istream.c: line 89: assertion failed: (stream-eof) Jan 10 17:16:17 Carolyn dovecot: [ID 398108 mail.error] Raw backtrace: what does ldd /opt/Dovecot/libexec/dovecot/imap-login give? please don't top post what user does your dovecot installation run under? and is your installation chroot`ed? -- Udo Rader http://www.bestsolution.at
Re: [Dovecot] Problems with dovecot
Filip Francis wrote: Udo Rader wrote: Filip Francis wrote: r...@carolyn /opt/Dovecot/etc # ldd /opt/Dovecot/libexec/dovecot/imap-login libssl.so.0.9.7 = /opt/coolstack/lib/libssl.so.0.9.7 libcrypto.so.0.9.7 =/opt/coolstack/lib/libcrypto.so.0.9.7 librt.so.1 =/usr/lib/librt.so.1 libnsl.so.1 = /usr/lib/libnsl.so.1 libsocket.so.1 =/usr/lib/libsocket.so.1 libsendfile.so.1 = /usr/lib/libsendfile.so.1 libmtsk.so.1 = /usr/lib/libmtsk.so.1 libthread.so.1 =/usr/lib/libthread.so.1 libc.so.1 = /usr/lib/libc.so.1 libaio.so.1 = /lib/libaio.so.1 libmd.so.1 =/lib/libmd.so.1 libmp.so.2 =/lib/libmp.so.2 libscf.so.1 = /lib/libscf.so.1 libdl.so.1 =/lib/libdl.so.1 libpthread.so.1 = /lib/libpthread.so.1 libm.so.2 = /lib/libm.so.2 libdoor.so.1 = /lib/libdoor.so.1 libuutil.so.1 = /lib/libuutil.so.1 libgen.so.1 = /lib/libgen.so.1 libssl_extra.so.0.9.7 = /usr/sfw/lib/libssl_extra.so.0.9.7 libcrypto_extra.so.0.9.7 = /usr/sfw/lib/libcrypto_extra.so.0.9.7 Filip Udo Rader wrote: Filip Francis wrote: Hi all, Ihave jsut been compiling dovecot 1.1.6-1.1.8 on a solaris 10 x86 machine with sun studio 12. It compiles correctly but when i want to run dovecot i am getting this error message Jan 10 17:16:16 Carolyn dovecot: [ID 762119 mail.info] Dovecot v1.1.8 starting up Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.warning] auth-worker(default): Growing pool 'mysql driver' with: 1024 Jan 10 17:16:16 Carolyn dovecot: [ID 107833 mail.info] auth-worker(default): mysql: Connected to localhost (mail) Jan 10 17:16:17 Carolyn dovecot: [ID 575603 mail.error] Temporary failure in creating login processes, slowing down for now Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] imap-login: ld.so.1: imap-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/imap-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: libsocket.so.1: open failed: No such file or directory Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.error] pop3-login: ld.so.1: pop3-login: fatal: relocation error: file /opt/Dovecot/libexec/dovecot/pop3-login: symbol socket: referenced symbol not found Jan 10 17:16:17 Carolyn dovecot: [ID 107833 mail.crit] Panic: file istream.c: line 89: assertion failed: (stream-eof) Jan 10 17:16:17 Carolyn dovecot: [ID 398108 mail.error] Raw backtrace: what does ldd /opt/Dovecot/libexec/dovecot/imap-login give? please don't top post what user does your dovecot installation run under? and is your installation chroot`ed? -- Udo Rader http://www.bestsolution.at it runs under dovecot then probably user dovecot does not have a reasonable library path set to find libsocket.so.1. can you do a % su - dovecot % whoami dovecot % ldd /opt/Dovecot/libexec/dovecot/imap-login
Re: [Dovecot] Problems with dovecot deliver.
On Mon, 2008-06-16 at 18:59 +0400, Dpoke wrote: deliver(dpoke): Jun 16 18:34:16 Error: open(/tmp/dovecot.deliver..1213626856.2732.ad657cfa5dccbc61) failed: Permission denied A bit late reply, but clearly the problem is this. Isn't your /tmp directory world-writable or why can't deliver create a new file there? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems with dovecot/sieve and vacation
[EMAIL PROTECTED] wrote: Hello, Thank you for the reply. I will plan to do the upgrade some time soon, that is not questionable. Now back to this, I checked the following: # strings /usr/libexec/dovecot/deliver | grep sendmail /usr/lib/sendmail and... is your sendmail binary placed here? So, if I understand correctly, this is fine. Depends on your OS... I don't know is this path correct for you. What I have in maillog is the following: [...]deliver(...): execv(/usr/lib/sendmail) failed: Permission denied [...]deliver(...): Sendmail process terminated abnormally, exit status 89 [...]deliver(...): sieve runtime error: Vacation: Error sending mail and here is answer to your problem: execv(/usr/lib/sendmail) failed: Permission denied - fix this. Dovecot deliver tries to execute sendmain binary /usr/lib/sendmail and got premission denied error form OS. This means - not only vacation is not working on your server - dovecot also can't send bounces, forwards and notify messages. Uldis
[Dovecot] Problems with dovecot/sieve and vacation
Hello, First of all, initial data: # dovecot --version 1.0.rc15 # dovecot -n # /etc/dovecot.conf protocols: imaps pop3s disable_plaintext_auth: yes login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_max_processes_count: 256 login_max_connections: 512 verbose_proctitle: yes first_valid_uid: 200 last_valid_uid: 200 first_valid_gid: 200 last_valid_gid: 200 mail_location: maildir:%h/Maildir maildir_copy_with_hardlinks: yes umask: 7 mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %u auth default: mechanisms: login plain user: nobody passdb: driver: ldap args: /etc/dovecot-ldap.conf userdb: driver: ldap args: /etc/dovecot-ldap.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 group: vmail I am trying to get a vacation autoresponder to work, but I was not able to. Everything else is working fine. Spam scripts work, forward scripts work, ... but vacation does not work. I have tried different configurations, simple: require vacation; vacation I am currently testing the vacation autoresponder.; And a little more complex: require [fileinto, vacation]; ## Move spam to spam folder if exists X-Spam-Flag { fileinto spam.incoming; # Stop here so that we do not reply on spams stop; } vacation # Reply at most once a day to a same sender :days 1 :subject Out of office reply test # List of recipient addresses which are included in the auto replying. # If a mail's recipient is not on this list, no vacation reply is sent for it. :addresses [[EMAIL PROTECTED]] I'm testing the vacation autoresponder.; The script gets compiled as I have checked the dates and the .dovecot.lda-dupes gets created; however, there is no autoreply message. Additionally, I noticed that my recipient e-mail address gets added to .dovecot.lda-dupes: # cat .dovecot.lda-dupes � �H+�� �,[EMAIL PROTECTED] And, I also noticed that, if I delete this file and I send an e-mail to that address, I receive the e-mail duplicated, but only the first time, before .dovecot.lda-dupes gets created. I checked the mail headers of the e-mail upon reception and they seem fine: Return-Path: [EMAIL PROTECTED] X-Original-To: [EMAIL PROTECTED] Delivered-To: [EMAIL PROTECTED] Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by mail.fluendo.com (Postfix) with ESMTP id E5777250133 for [EMAIL PROTECTED]; Fri, 18 Jul 2008 17:48:30 +0200 (CEST) Received: by wr-out-0506.google.com with SMTP id c49so243003wra.19 for [EMAIL PROTECTED]; Fri, 18 Jul 2008 08:48:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=iMPULXt7n6+6MVu47vQWBga4lMRSIYkfGnO59XcugXQ=; b=bLLBZZxblyF2LFTPMXPgVesAM/Ep/P5GwgN7aaGjd7JFVpXBBNU7Mq4OaeNbFZRzIN jk+wgDl3uvAg3GkhOso7+kxAI+SOe/u8nDBzzCp5muKieMC5xe84gJOh0+bviaaoahDf vxKWX9e/BTvBkq1AOTOfTnlHRONQ00aoNza44= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=PgczmkJcZnKNF2sIhkrPgtbt9OJaNjYVXeJ5498WjvodyiY97ZQEpTFjXoFrM3RWGI EsRDyre253LVRbBJIZses3nbJLWGCQ9aebPnJQMQr6I1dnNL8AIqB6oMjIDp43Yjlj30 muP/LU0PigmTrnsy9+k9kWEy0MRG+ehBBUgn0= Received: by 10.90.101.17 with SMTP id y17mr289500agb.72.1216396109274; Fri, 18 Jul 2008 08:48:29 -0700 (PDT) Received: by 10.90.99.17 with HTTP; Fri, 18 Jul 2008 08:48:29 -0700 (PDT) Message-ID: [EMAIL PROTECTED] Date: Fri, 18 Jul 2008 17:48:29 +0200 From: Ioannis Aslanidis [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Test 12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: ClamAV using ClamSMTP -- Ioannis Aslanidis I would really like to have this solved as soon as possible, so any help is greatly welcome. If you require any further information, please, do not hesitate to contact me. Thanks in advance for your prompt reply. Regards, Ioannis begin:vcard fn:Ioannis Aslanidis n:Aslanidis;Ioannis org:Flumotion Services S.A.;Infrastructure Department
Re: [Dovecot] Problems with dovecot/sieve and vacation
On 7/18/2008, Ioannis Aslanidis ([EMAIL PROTECTED]) wrote: # dovecot --version 1.0.rc15 Upgrade... this is very old... There are lots of reasons to upgrade, but sieve stuff has changed a LOT sinc rc15... -- Best regards, Charles
Re: [Dovecot] Problems with dovecot/sieve and vacation
Thank you for the reply. Because of the fact that this is a production server, I would like to be 100% sure that upgrading sieve will fix this issue. Could you confirm this? Regards, Ioannis On Fri, 18 Jul 2008 13:06:04 -0400, Charles Marcus [EMAIL PROTECTED] wrote: On 7/18/2008, Ioannis Aslanidis ([EMAIL PROTECTED]) wrote: # dovecot --version 1.0.rc15 Upgrade... this is very old... There are lots of reasons to upgrade, but sieve stuff has changed a LOT sinc rc15... -- Best regards, Charles
Re: [Dovecot] Problems with dovecot/sieve and vacation
On 7/18/2008, [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: Thank you for the reply. Because of the fact that this is a production server, I would like to be 100% sure that upgrading sieve will fix this issue. Could you confirm this? Because its a production server, you should be most concerned about upgrading... you are using a VERY EARLY RELEASE CANDIDATE version (there were more than 30 (thats THIRTY) RC's of the 1.0 series) of an OLDER RELEASE version (dovecot is currently at 1.1.1 - lots of reasons to upgrade to the 1.1.x series)... Hopefully you understand that most people don't have time to go back and read all of the release notes of all of the 40+ releases since yours was released to see if your particular problem was fixed. -- Best regards, Charles
Re: [Dovecot] Problems with dovecot/sieve and vacation
[EMAIL PROTECTED] wrote: Thank you for the reply. Because of the fact that this is a production server, I would like to be 100% sure that upgrading sieve will fix this issue. Could you confirm this? Regards, Ioannis Not sure. Vacation code is not changed since... first release sieve plugin. Vacation code calls 2 functions: first marks dupes (it seems working) , then, if it success second function is called which actualy sends vacation message. This action (success or failure) is loged in log file. 1. wthat is in your log files? 2. the only reason I can guess about failure in second function is sendmail binary. default value of sendmail_path (hardcoded) is /usr/lib/sendmail. You can verify this: strings /path/to/dovecot/deliver | grep sendmail If default value is incorrect try add sendmail_path variable in dovecot.conf e.g.: - protocol lda { sendmail_path = /usr/sbin/sendmail } - ..anyway I recommend upgrade to 1.0 release at less. Uldis
Re: [Dovecot] Problems with dovecot/sieve and vacation
Hello, Thank you for the reply. I will plan to do the upgrade some time soon, that is not questionable. Now back to this, I checked the following: # strings /usr/libexec/dovecot/deliver | grep sendmail /usr/lib/sendmail So, if I understand correctly, this is fine. What I have in maillog is the following: [EMAIL PROTECTED] for [EMAIL PROTECTED] ORCPT=rfc822;[EMAIL PROTECTED] Jul 19 01:58:56 se01 spampd[9143]: clean message [EMAIL PROTECTED] (0.28/3.50) from [EMAIL PROTECTED] for [EMAIL PROTECTED] ORCPT=rfc822;[EMAIL PROTECTED] in 0.04s, 1926 bytes. Jul 19 01:58:56 se01 clamsmtpd: 10C4A0: [EMAIL PROTECTED], [EMAIL PROTECTED], status=CLEAN Jul 19 01:58:56 se01 postfix/smtp[15494]: AC414250084: to=[EMAIL PROTECTED], relay=127.0.0.1[127.0.0.1]:10025, delay=0.86, delays=0.55/0.01/0.06/0.24, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as 253AE250133) Jul 19 01:58:56 se01 deliver([EMAIL PROTECTED]): execv(/usr/lib/sendmail) failed: Permission denied Jul 19 01:58:56 se01 deliver([EMAIL PROTECTED]): Sendmail process terminated abnormally, exit status 89 Jul 19 01:58:56 se01 deliver([EMAIL PROTECTED]): sieve runtime error: Vacation: Error sending mail Jul 19 01:58:57 se01 deliver([EMAIL PROTECTED]): msgid=[EMAIL PROTECTED]: saved mail to INBOX Jul 19 01:58:57 se01 deliver([EMAIL PROTECTED]): msgid=[EMAIL PROTECTED]: saved mail to INBOX Jul 19 01:58:57 se01 postfix/pipe[15529]: 253AE250133: to=[EMAIL PROTECTED], relay=dovecot, delay=1.5, delays=0.24/0.01/0/1.2, dsn=2.0.0, status=sent (delivered via dovecot service) For what I see here, this could be a SELinux permission problem, am I right? Regards, Ioannis On Sat, 19 Jul 2008 02:35:11 +0300, Uldis Pakuls [EMAIL PROTECTED] wrote: Vacation code calls 2 functions: first marks dupes (it seems working) , then, if it success second function is called which actualy sends vacation message. This action (success or failure) is loged in log file. 1. wthat is in your log files? 2. the only reason I can guess about failure in second function is sendmail binary. default value of sendmail_path (hardcoded) is /usr/lib/sendmail. You can verify this: strings /path/to/dovecot/deliver | grep sendmail If default value is incorrect try add sendmail_path variable in dovecot.conf
[Dovecot] Problems with dovecot deliver.
Hello all. I am using dovecot 1.1.rc4. Some of my mail deliver without errors. Other mail during its deliver give next errors in logs: Postfix log Jun 16 18:34:17 postfix/local[2730]: A394E292002: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=3013, delays=3008/1.3/0/2.9, dsn=4.3.0, status=deferred (temporary failure) Jun 16 18:34:17 postfix/local[2731]: B5FE7292004: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=2998, delays=2994/0.98/0/2.6, dsn=4.3.0, status=deferred (temporary failure) Jun 16 18:34:18 postfix/local[2731]: 28723292003: to=[EMAIL PROTECTED], orig_to=[EMAIL PROTECTED], relay=local, delay=2993, delays=2989/3.5/0/0.72, dsn=4.3.0, status=deferred (temporary failure) Deliver log. (Also I found no other useful information relaying this problem in other dovecot logs.) deliver(dpoke): Jun 16 18:34:15 Info: maildir: data=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:15 Info: maildir++: root=/opt/home/dpoke//Maildir, index=, control=, inbox=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:15 Info: maildir: data=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:15 Info: maildir++: root=/opt/home/dpoke//Maildir, index=, control=, inbox=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:16 Error: open(/tmp/dovecot.deliver..1213626856.2732.ad657cfa5dccbc61) failed: Permission denied deliver(dpoke): Jun 16 18:34:16 Error: copy: i_stream_read() failed: Permission denied deliver(dpoke): Jun 16 18:34:16 Info: msgid=: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2008-06-16 18:34:14] deliver(dpoke): Jun 16 18:34:16 Error: open(/tmp/dovecot.deliver..1213626856.2733.ad657cfa5dccbc61) failed: Permission denied deliver(dpoke): Jun 16 18:34:16 Error: copy: i_stream_read() failed: Permission denied deliver(dpoke): Jun 16 18:34:16 Info: msgid=: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2008-06-16 18:34:14] deliver(dpoke): Jun 16 18:34:17 Info: maildir: data=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:17 Info: maildir++: root=/opt/home/dpoke//Maildir, index=, control=, inbox=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:17 Info: maildir: data=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:17 Info: maildir++: root=/opt/home/dpoke//Maildir, index=, control=, inbox=/opt/home/dpoke//Maildir deliver(dpoke): Jun 16 18:34:17 Error: open(/tmp/dovecot.deliver..1213626857.2737.712b51aaca368d64) failed: Permission denied deliver(dpoke): Jun 16 18:34:17 Error: copy: i_stream_read() failed: Permission denied deliver(dpoke): Jun 16 18:34:17 Info: msgid=: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2008-06-16 18:34:17] deliver(dpoke): Jun 16 18:34:17 Error: open(/tmp/dovecot.deliver..1213626857.2736.712b51aaca368d64) failed: Permission denied deliver(dpoke): Jun 16 18:34:18 Error: copy: i_stream_read() failed: Permission denied deliver(dpoke): Jun 16 18:34:18 Info: msgid=: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2008-06-16 18:34:17] . This is my dovecot configuration: # 1.0.3: /opt/etc/dovecot.conf protocols: imap listen: 192.168.1.1 ssl_disable: yes disable_plaintext_auth: no login_dir: /opt/var/run/dovecot/login login_executable: /opt/libexec/dovecot/imap-login login_user: nobody login_processes_count: 1 auth default: verbose: yes debug: yes passdb: driver: passwd-file args: /opt/etc/passwd.imap userdb: driver: passwd-file args: /etc/passwd How can I fix this mail delivering problem? Thanks in advance for any ideas/suggestions/answers. And sorry for my bad English ;) -- Ilya Galanin
Re: [Dovecot] Problems with dovecot deliver.
On 6/16/2008, Dpoke ([EMAIL PROTECTED]) wrote: I am using dovecot 1.1.rc4. Ummm... This is my dovecot configuration: # 1.0.3: /opt/etc/dovecot.conf This says you're using 1.0.3... Maybe you need to upgrade to the latest 1.1rc (now at rc10), and make sure you're starting the evrsion you think you are? -- Best regards, Charles
Re: [Dovecot] Problems executing dovecot.
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 19 Nov 2007, Marcelo Iturbe wrote: Nov 20 04:13:27 postdam dovecot: imap-login: Login: user=noresponder, method=PLAIN, rip=201.238.214.202, lip=201.238.214.203 Nov 20 04:16:07 postdam dovecot: IMAP(noresponder): block_alloc(): Out of memory Nov 20 04:16:07 postdam dovecot: child 23174 (imap) returned error 83 (Out of memory) So the only thing that comes to mind... is moving the files by command line. Er, do something against the out-of-memory condition (RAM). You can move the files via command line, no problem; but you do not solve the problem that way. If you cannot move as few as 100 mails at once, my users would flock me. Do you run the server over limits? Or is the Dovecot process grows so large? Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBR0PoQy9SORjhbDpvAQKt/wgA4ZQhpJiFK5rZhYE9nZO8ybn7ekcXBqs6 7miWbozH2yfuOFYxMLS8UAwe9rnMuBRdfi54hvTJ0pUKIj3y2ZJoRScKH0V/DNSp 2bY/Qg5jZp2o+sDH/u+/jE85VQd37+LPOKXyvay7Fn84UpUiu5QSuehWNuSSuBgZ 7mI4fWwO+Ig6T46q0WXPKGR4rUbIWjtSXxAXVcSO5NMaFqNyux2b8YkxjaSlKXo0 w243I7dEJ9ORVWACro7ZPk/xSnOs5ZyN/QcettLxKrKknKK9fJRECnXdd53S62Sk WnwkUCK/8ZSy1QU/eUgcS7v84kjY9CFT+EFBwRp6/BQeL1XsapyvjQ== =VvuQ -END PGP SIGNATURE-
Re: [Dovecot] Problems executing dovecot.
yes there is actually... Nov 20 04:13:27 postdam dovecot: imap-login: Login: user=noresponder, method=PLAIN, rip=201.238.214.202, lip=201.238.214.203 Nov 20 04:16:07 postdam dovecot: IMAP(noresponder): block_alloc(): Out of memory Nov 20 04:16:07 postdam dovecot: child 23174 (imap) returned error 83 (Out of memory) So the only thing that comes to mind... is moving the files by command line. Can a I just go ahead and create dot directories and move emails from one directory to another? or will that mess up the GUIDs? Thanks, Marcelo On 15/11/2007, Asheesh Laroia [EMAIL PROTECTED] wrote: On Thu, 15 Nov 2007, Marcelo Iturbe wrote: 112 copy 1:100 toBeProcessed Connection to host lost. I keep getting dropped... Does /var/log/syslog say anything interesting? -- Asheesh. -- Real Men don't make backups. They upload it via ftp and let the world mirror it. -- Linus Torvalds -- Marcelo Iturbe ■ CIO ■ Tigabytes Chile ■ Google Enterprise Partner T: 562 264 1044 ■ www.tigabytes.com
Re: [Dovecot] Problems executing dovecot.
On Mon, 2007-11-19 at 16:30 -0300, Marcelo Iturbe wrote: yes there is actually... Nov 20 04:13:27 postdam dovecot: imap-login: Login: user=noresponder, method=PLAIN, rip=201.238.214.202, lip=201.238.214.203 Nov 20 04:16:07 postdam dovecot: IMAP(noresponder): block_alloc(): Out of memory Maybe its dovecot.index.cache file has grown so large that it takes most of the available virtual space. You can set mail_process_size=0 to remove this limit. So the only thing that comes to mind... is moving the files by command line. Can a I just go ahead and create dot directories and move emails from one directory to another? Yes. or will that mess up the GUIDs? GUIDs? Global UIDs? Dovecot don't have those yet. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems executing dovecot.
On Thu, 15 Nov 2007, Marcelo Iturbe wrote: 112 copy 1:100 toBeProcessed Connection to host lost. I keep getting dropped... Does /var/log/syslog say anything interesting? -- Asheesh. -- Real Men don't make backups. They upload it via ftp and let the world mirror it. -- Linus Torvalds
[Dovecot] Problems executing dovecot.
Hello, I am running OS: Ubuntu 6.06.1 LTS dovecot # 1.0.7 Beta Problem: I have all the email delivery set up with maildir. I currently have an account which has 297,261 emails in the Inbox. Here is a transcript of a telnet session with the server: * OK Dovecot ready. 110 login somelameuser lameuserspass 110 OK Logged in. 111 select inbox * FLAGS (\Answered \Flagged \Deleted \Seen \Draft) * OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted. * 297261 EXISTS * 149522 RECENT * OK [UNSEEN 1] First unseen. * OK [UIDVALIDITY 118842] UIDs valid * OK [UIDNEXT 301157] Predicted next UID 111 OK [READ-WRITE] Select completed. 112 copy 1:100 toBeProcessed Connection to host lost. I keep getting dropped... My original idea was to move the files via command prompt, but I wasn't sure if that was allowed, thought I might mess up the UIDs. How could I move the emails into other directories (folders) so that a regular IMAP conector can process the emails? Thanks for your help Marcelo -- Marcelo Iturbe ■ CIO ■ Tigabytes Chile ■ Google Enterprise Partner T: 562 264 1044 ■ www.tigabytes.com
Re: [Dovecot] Problems with dovecot 1.1b3
On Sat, 2007-10-20 at 23:11 -0400, Adam McDougall wrote: telnet server 143 ? login username pass 1 select anyfolder 2 IDLE DONE (crash) If this is not reproducable for you, I guess I'll have to setup some process debugging. Not reproducible with me. gdb backtrace would be nice. http://dovecot.org/bugreport.html What notify method are you using? (dovecot --build-options) signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems with dovecot 1.1b3
On Wed, 2007-10-17 at 20:05 -0400, Adam McDougall wrote: The first thing I did was to try to update my dovecot.conf from 1.0 to work with 1.1. When I started dovecot 1.1 for the first time, I noticed it was listening to 143 but not 993, even though my config was designed for ssl/tls in 1.0 without any listen ports specified: Fixed: http://hg.dovecot.org/dovecot/rev/79836b3474f4 One of the more basic problems I've seen is the behavior from list = no/yes. I think this fixes it: http://hg.dovecot.org/dovecot/rev/c901bdf0db75 signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems with dovecot 1.1b3
On Sat, Oct 20, 2007 at 11:01:03PM +0300, Timo Sirainen wrote: On Wed, 2007-10-17 at 20:05 -0400, Adam McDougall wrote: The first thing I did was to try to update my dovecot.conf from 1.0 to work with 1.1. When I started dovecot 1.1 for the first time, I noticed it was listening to 143 but not 993, even though my config was designed for ssl/tls in 1.0 without any listen ports specified: Fixed: http://hg.dovecot.org/dovecot/rev/79836b3474f4 That seems to work. One of the more basic problems I've seen is the behavior from list = no/yes. I think this fixes it: http://hg.dovecot.org/dovecot/rev/c901bdf0db75 This helps, thunderbird seems to act as I would expect with hidden=yes and list=no: 8 list mail/% * LIST (\HasNoChildren) / mail/Deleted Items .. etc but mutt cannot access mail/ when I ask it to: set folder={localhost:1143}mail/ Chdir to: imap://localhost:1143/mail/ mutt says No such folder a0006 LIST mail a0006 OK List completed. a0007 LIST mail% a0007 OK List completed. I can see a difference in what the client asks for, mail/% versus mail%. I'm not sure why mutt is removing the / but is it supposed to work anyway on the server side? I can do a trace with mutt on dovecot 1.0 if you want. Thanks.
Re: [Dovecot] Problems with dovecot 1.1b3
On Sat, 2007-10-20 at 17:15 -0400, Adam McDougall wrote: This helps, thunderbird seems to act as I would expect with hidden=yes and list=no: 8 list mail/% * LIST (\HasNoChildren) / mail/Deleted Items Right. but mutt cannot access mail/ when I ask it to: set folder={localhost:1143}mail/ Chdir to: imap://localhost:1143/mail/ mutt says No such folder a0006 LIST mail a0006 OK List completed. Looks like v1.0 answers to this, although I didn't do it intentionally. I guess it's a good idea. http://hg.dovecot.org/dovecot/rev/5b2ff32877d4 a0007 LIST mail% a0007 OK List completed. This happened with v1.0 too. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problems with dovecot 1.1b3
On Sun, Oct 21, 2007 at 01:44:26AM +0300, Timo Sirainen wrote: On Sat, 2007-10-20 at 17:15 -0400, Adam McDougall wrote: This helps, thunderbird seems to act as I would expect with hidden=yes and list=no: 8 list mail/% * LIST (\HasNoChildren) / mail/Deleted Items Right. but mutt cannot access mail/ when I ask it to: set folder={localhost:1143}mail/ Chdir to: imap://localhost:1143/mail/ mutt says No such folder a0006 LIST mail a0006 OK List completed. Looks like v1.0 answers to this, although I didn't do it intentionally. I guess it's a good idea. http://hg.dovecot.org/dovecot/rev/5b2ff32877d4 a0007 LIST mail% a0007 OK List completed. This happened with v1.0 too. Thanks! This patch seems to make it act the way I expected. Next issue: when I try to read a message in a private namespace using thunderbird, dovecot is killed with signal 11. In thunderbird, it just acts like it refuses to read any message contents from private namespace. Based on a tcpdump trace, it is reproducable easily for me with telnet: telnet server 143 ? login username pass 1 select anyfolder 2 IDLE DONE (crash) If this is not reproducable for you, I guess I'll have to setup some process debugging.
[Dovecot] Problems with dovecot 1.1b3
I am testing dovecot 1.1 betas on a testing system, hoping to take advantage of self repairing and NFS-capable indexes when 1.1 is sensible to put into production. I ran into a number of issues that I did not have with 1.0, and I think I'll just pick one or more at a time and report them rather than try to report every single issue at once, hoping that some of the fixes will solve more than one problem. I started with 1.1b2 just for record, but the issues seem to be present in 1.1b3 as well. I realized yesterday that using the acl plugin may be complicating my testing and results, so I have disabled it for now and am connecting with plaintext IMAP just so I can sniff connections and see what is happening. I am running it on FreeBSD 6.2-stable from Sep 19 2007. First my dovecot -n output: # 1.1.beta3: /usr/local/etc/dovecot.conf ssl_cert_file: /usr/local/etc/apache2/ssl/ssl.pem ssl_key_file: /usr/local/etc/apache2/ssl/ssl.pem disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/libexec/dovecot/imap-login verbose_proctitle: yes first_valid_uid: 1000 first_valid_gid: 0 mail_location: maildir:%h/Maildir:CONTROL=%h/Maildir/dovecot/private/control:INDEX=%h/Maildir/dovecot/private/indexes mail_debug: yes mmap_disable: yes mail_nfs_storage: yes mail_nfs_index: yes mail_plugins: mail_log mail_log_max_lines_per_sec: 0 imap_client_workarounds: delay-newmail netscape-eoh tb-extra-mailbox-sep namespace: type: private separator: / prefix: mail/ location: maildir:%h/Maildir:CONTROL=%h/Maildir/dovecot/private2/control:INDEX=%h/Maildir/dovecot/private2/indexes hidden: yes list: yes namespace: type: private separator: / inbox: yes list: yes auth default: mechanisms: plain login passdb: driver: pam userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/auth mode: 384 user: postfix group: postfix plugin: acl: vfile:/usr/local/etc/dovecot-acls The first thing I did was to try to update my dovecot.conf from 1.0 to work with 1.1. When I started dovecot 1.1 for the first time, I noticed it was listening to 143 but not 993, even though my config was designed for ssl/tls in 1.0 without any listen ports specified: # netstat -a | grep LISTEN | grep imap tcp4 0 0 *.imap *.*LISTEN So, I thought I would try specifying the ports in the config: protocol imap { listen = *:143 ssl_listen = *:993 # .. } Success! # netstat -a | grep LISTEN | grep imap tcp4 0 0 *.imaps*.*LISTEN tcp4 0 0 *.imap *.*LISTEN Initially I was then testing using ACLs, but I disabled it to simplify. One of the more basic problems I've seen is the behavior from list = no/yes. For the sake of simplicity and example, I've disabled most of the additional public and private namespaces from my 1.0 config. I have some private namespaces with prefix mail/ and Mail/ that I wish to provide for users for compatability with clients set with those prefixes. In dovecot 1.0, this worked as expected: namespace: type: private separator: / prefix: mail/ hidden: yes But in 1.1b2 or b3, I never seem to get a list of the contents under mail/ when I tell mutt to default to servername/mail/ as the default folder path. Cases: hidden = yes list = yes a0006 LIST mail * LIST (\Noselect \HasChildren) / mail a0006 OK List completed. a0007 LIST mail/% a0007 OK List completed. mutt lists contents of only ../ and selecting it brings me to the imap root with the expected folders. When ../ is followed, I see all my folders as well as all my folders repeated under mail/ prefix. hidden = yes list = no a0006 LIST mail a0006 OK List completed. a0007 LIST mail/% a0007 OK List completed. mutt claims No such folder hidden = no list = yes a0006 LIST mail * LIST (\Noselect \HasChildren) / mail a0006 OK List completed. a0007 LIST mail/% a0007 OK List completed. mutt lists contents of only ../ and selecting it brings me to the imap root with the expected folders. When ../ is followed, I see all my folders as well as all my folders repeated under mail/ prefix.