[Dovecot] PATCH missing Return-Path in message (was Re: SEGV with Dovecot v1.0.0 Deliver and cmusieve v1.0.1 and vacation)
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 26 Apr 2007, Steffen Kaiser wrote: Hello, after digging in the CMU Sieve lib sources, I found where the problem stems from. Somehow (I don't know why) in dovecot-sieve-1.0.1/src/libsieve/script.c:671 /* first, let's figure out if we should respond to this */ ret = makehash(hash, a-u.vac.send.addr, a-u.vac.send.msg); u.vac.send.addr is NULL. Although, in dovecot-sieve-1.0.1/src/libsieve/bc_eval.c:256 I get the impression that this error handled by silently skipping vacation, if no return-path is available. It didn't happened for me. BTW: I want to have those replys ;-) The reason is that by default sendmail does not pass forth Return-Path to the MDA and Dovecot deliver does not use the -f option for this reason. The attached patch changes this by leting deliver_get_return_address() return any information available: str = mail_get_first_header(mail, Return-Path); if(!str) str = envelope_sender != DEFAULT_ENVELOPE_SENDER ? envelope_sender /* -f option */ : mail_get_first_header(mail, From); /* That's not the most correct one, but alas */ The problem still exists, if neither of the three information is available, but, well ... . Now, vacation is working. Bye, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBRmAmqC9SORjhbDpvAQKR9gf/W3rEkHaJwAfyMU4aMFyHy7i9W/zQQhQE s9fNfnyk+SDUbjkeDn+XmBSItVZf4PCY0DrdINzSiN6HVCBvekyWDyYN4dag9PB5 SGY1GEriApZYWloZXt6BMDjxHVu0mw74Zq1OhlwURHIWxUF2Fw2ryxEIIfgrsOgg pOC97nItWkN2zG7xFPDymZZ+n4q2CPV5U4Qslwp/XawDShk9v4j7oZPf9jbwZdjB w1n3t0t9VTanX16hpT27u7sdyO7Z5U3a1SovLGYmAK1nCk1ApfTNSLdtEErS+qQu BdVluHsL1AWUs8966UajBHBiHN1Nqq5KctNbYvOXM97WiqceVm/8gA== =JhgQ -END PGP SIGNATURE- deliver_returnpathFromFOption.patch.gz Description: Binary data
[Dovecot] Error starting dovecot 1.0.0 /var/run/dovecot/auth-master failed: No such file or directory
Hello: i'm trying a tutorial (http://workaround.org/articles/ispmail-etch/en.html) for setting up postfix / dovecot but am getting some errors when i try to start dovecot here's some details of the enviromnent. (Fedora Core 6) $ uname -a Linux foo.com 2.6.18-1.2798.fc6 #1 SMP Mon Oct 16 14:37:32 EDT 2006 i686 i686 i386 GNU/Linux $ ./dovecot --version 1.0.0 $ ./dovecot -n # /opt/dovecot-1.0.0/etc/dovecot.conf protocols: imap imaps pop3 pop3s ssl_disable: yes login_dir: /opt/dovecot-1.0.0/var/run/dovecot/login login_executable(default): /opt/dovecot-1.0.0/libexec/dovecot/imap-login login_executable(imap): /opt/dovecot-1.0.0/libexec/dovecot/imap-login login_executable(pop3): /opt/dovecot-1.0.0/libexec/dovecot/pop3-login mail_location: maildir:/var/spool/foomail/%d/%n mail_executable(default): /opt/dovecot-1.0.0/libexec/dovecot/imap mail_executable(imap): /opt/dovecot-1.0.0/libexec/dovecot/imap mail_executable(pop3): /opt/dovecot-1.0.0/libexec/dovecot/pop3 mail_plugin_dir(default): /opt/dovecot-1.0.0/lib/dovecot/imap mail_plugin_dir(imap): /opt/dovecot-1.0.0/lib/dovecot/imap mail_plugin_dir(pop3): /opt/dovecot-1.0.0/lib/dovecot/pop3 auth default: passdb: driver: pam passdb: driver: sql args: /opt/dovecot-1.0.0/etc/dovecot_sql.conf userdb: driver: passwd userdb: driver: static args: uid=721 gid=721 home=/var/spool/foomail/%d/%n allow_all_users=yes 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: foomail $ now when i try to start dovecot it dies giving the following error message in /var/log/maillog Jun 1 20:30:16 foo dovecot: Dovecot v1.0.0 starting up Jun 1 20:30:16 foo dovecot: auth(default): bind(/var/run/dovecot/auth-master) failed: No such file or directory Jun 1 20:30:16 foo dovecot: auth(default): net_listen_unix(/var/run/dovecot/auth-master) failed: No such file or directory Jun 1 20:30:16 foo dovecot: Auth process died too early - shutting down Jun 1 20:30:16 foo dovecot: child 9760 (auth) returned error 89 I've read the http://wiki.dovecot.org/CompilingSource but am stuck now with this issue. i also googled around a bit but could get any more information about this problem. any help is appreciated. thanks in advance. yashesh bhatia. Go Pre http://www2.localaccess.com/rlalonde/pre.htm
[Dovecot] CMU Sieve pluigin missing proper charset support
Hello, After testing the Sieve plugin for the LDA, I have noticed that it does not handle charset issues properly. IETF draft says: 4.3. Subject and From Parameters The :subject parameter specifies a subject line to attach to any vacation response that is generated. UTF-8 characters can be used in the string argument; implementations MUST convert the string to [RFC2047] encoded words if and only if non-ASCII characters are present. Implementations MUST generate an appropriate default subject line as specified below if no :subject parameter is specified. (see http://tools.ietf.org/html/draft-ietf-sieve-vacation-07) The problem is that the dovecot plugin does not convert the string to RFC2047 encoded words, it treats it literally and thus sends malformed (from RFC's point of view) message - with improper Subject field encoding. Any chances of getting that fixed? greetings, -- Jan Srzednicki [EMAIL PROTECTED]