Re: [Dovecot] Using Dovecot deliver with Postfix
Am 29.12.2009 um 22:34 schrieb Timo Sirainen: > On Fri, 2009-12-25 at 13:30 +0100, Tobias Lang wrote: > >> while installing Dovecot sieve, I am not able to deliver email for root. > > That's because you should be redirecting root's mails to some other > user. root shouldn't have mail. Well, I do redirect mail to admin accounts. However, I use SuSE 11 as a base system. And there it is a default to also deliver root mail to the root account, default aliases looks like this: root: tobi, \root I was not aware, that root should not be allowed to recieve mail at all and by removing the '\root' from /etc/aliases, deliver is working as expected. Tobi P.S.: Sorry for private double-post
Re: [Dovecot] Pigeonhole Sieve IMAP flag question
Am 29.12.2009 um 12:58 schrieb Julian Cowley: > Hello, > > Here is a small script that I've been running to test a problem I've been > seeing. Shouldn't this result in the mail being delivered to the inbox as a > new message (ie. without the \Seen flag)? > > require "imap4flags"; > > addflag "\\Seen"; > removeflag "\\Seen"; > > Every message gets delivered to the inbox as though it's already been read. Hello Julian, by removing the "Seen" flag, you mark the message as read. New mails arrives with the "Seen" flag set - thus your command <> is useless. Check out RFC 3501 for the meaning of the different flags. Tobi
Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Am 28.12.2009 um 11:55 schrieb Steve Wagner: > if header :contains "Organization" "web.de" { discard; stop; } > > This often works, but sometimes it fails. Procmail reports then that > deliver reported an error (but not which) and delivers them to my inbox. > There are also no message in dovecots or dovecot delivers log file. This rule will fail, when there is no HeaderEntry called "Organization". You should try "From" instead, this HeaderEntry should always be there to test against. Tobi
[Dovecot] Using Dovecot deliver with Postfix
Hello, while installing Dovecot sieve, I am not able to deliver email for root. The strange thing is, that mails to ordinary users get delivered. And no, I do not use virtual mail, just ordinary unix accounts with an entry to passwd / shadow. Also before switching from Postfix deliver to Dovecot deliver, everything worked fine. Current versions for dovecot and postfix are: dovecot-1.2.8 postfix-2.6.5 Anybody an idea, where I misconfigured something? Thanks in advance Tobi dovecot.log (Dovecot daemon) - Dec 25 13:15:01 deliver(root): Error: chdir(/root) failed: Permission denied Dec 25 13:15:01 deliver(root): Error: stat(/root/Maildir) failed: Permission denied Dec 25 13:15:01 deliver(root): Error: stat(/root/Maildir/tmp) failed: Permission denied (euid=65534(nobody) egid=65533(nobody) missing +x perm: /root) - mail.log (Postfix daemon) - Dec 25 13:15:01 h636004 postfix/pickup[9007]: ABD64208163: uid=0 from= Dec 25 13:15:01 h636004 postfix/cleanup[9073]: ABD64208163: message-id=<20091225121501.abd64208...@domain.net> Dec 25 13:15:01 h636004 postfix/qmgr[9006]: ABD64208163: from=, size=629, nrcpt=1 (queue active) Dec 25 13:15:01 h636004 postfix/local[9075]: ABD64208163: to=, orig_to=, relay=local, delay=0.26, delays=0.14/0.01/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/local/libexec/dovecot/deliver) Dec 25 13:15:01 h636004 postfix/local[9075]: ABD64208163: to=, orig_to=, relay=local, delay=0.36, delays=0.14/0.01/0/0.21, dsn=4.3.0, status=deferred (temporary failure) - Here is an excerpt from my dovecot.conf: dovecot.conf: - protocol lda { postmaster_address = postmas...@domain #mail_plugins = sieve # Disabled to fix deliver issue } mail_location = maildir:%h/Maildir auth default { mechanisms = plain login passdb pam { args = * } userdb passwd { } socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } -
Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Am 28.12.2009 um 21:51 schrieb Steve Wagner: > Sorry it took some time to get in to this failing situation. > > Procmail log--> > > procmail: [29952] Mon Dec 28 21:36:33 2009 > procmail: Match on "< 256000" > procmail: Locking "spamassassin.lock" > procmail: Executing "/usr/bin/spamc,-U,/var/run/spamd.sock" > procmail: [29952] Mon Dec 28 21:36:35 2009 > procmail: Unlocking "spamassassin.lock" > procmail: No match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*" > procmail: No match on "^X-Spam-Status: YES" > procmail: No match on "^List-Id: .*debian-arm.lists.debian.org" > procmail: No match on "^^rom[ ]" > procmail: Executing "/opt/dovecot/libexec/dovecot/deliver" > procmail: Error while writing to "/opt/dovecot/libexec/dovecot/deliver" > procmail: Assigning "LASTFOLDER=/opt/dovecot/libexec/dovecot/deliver" > procmail: Assigning > "LASTFOLDER=/home/lanwin/Maildir/new/1262032593.29952_2.vs5923" > procmail: Notified comsat: > "lan...@0:/home/lanwin/Maildir/new/1262032593.29952_2.vs5923" > From keineantwortadre...@web.de Mon Dec 28 21:36:33 2009 > Subject: discoTEL > =?ISO-8859-1?Q?Tarif=3A_F=FCr_7=2C5_Cent=2FMin=2E_telefonier > Folder: /home/lanwin/Maildir/new/1262032593.29952_2.vs5923 > 41096 > procmail: Unlocking "/home/lanwin/Maildir/.lockmail" > > Dovecot Deliver Log--> > > 2009-12-28 21:36:35 deliver(lanwin): Info: sieve: > msgid=: marked message to be discarded > if not explicitly delivered (discard action) Does it always fail, if you try to do a discard, just sometimes? I am using Dovecot 1.2.9 "dovecot-1.2-sieve-0.1.14" and discarding email seems to work fine. The things I can think of are: 1) Wrong privileges for deleting. What user does procmail / deliver run as? 2) Old Bug in Sieve (http://www.dovecot.org/list/dovecot/2007-July/024290.html) 3) If it fails just sometimes, what is the difference between discarded and nondiscarded mails. If this does not turn up something, I do not have an idea what is going wrong. Only bugfix I then can you provide with, is not to discard but to move those files to a folder 'SPAM' and delete them by hand. Tobi
[Dovecot] Fwd: Dovecot-deliver sometimes fails when message set to discard via sieve
Anfang der weitergeleiteten E-Mail: > Von: Steve Wagner > Datum: 28. Dezember 2009 21:51:39 MEZ > An: Tobias Lang > Betreff: Re: [Dovecot] Dovecot-deliver sometimes fails when message set to > discard via sieve > > Sorry it took some time to get in to this failing situation. > > Procmail log--> > > procmail: [29952] Mon Dec 28 21:36:33 2009 > procmail: Match on "< 256000" > procmail: Locking "spamassassin.lock" > procmail: Executing "/usr/bin/spamc,-U,/var/run/spamd.sock" > procmail: [29952] Mon Dec 28 21:36:35 2009 > procmail: Unlocking "spamassassin.lock" > procmail: No match on "^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*" > procmail: No match on "^X-Spam-Status: YES" > procmail: No match on "^List-Id: .*debian-arm.lists.debian.org" > procmail: No match on "^^rom[ ]" > procmail: Executing "/opt/dovecot/libexec/dovecot/deliver" > procmail: Error while writing to "/opt/dovecot/libexec/dovecot/deliver" > procmail: Assigning "LASTFOLDER=/opt/dovecot/libexec/dovecot/deliver" > procmail: Assigning > "LASTFOLDER=/home/lanwin/Maildir/new/1262032593.29952_2.vs5923" > procmail: Notified comsat: > "lan...@0:/home/lanwin/Maildir/new/1262032593.29952_2.vs5923" > From keineantwortadre...@web.de Mon Dec 28 21:36:33 2009 > Subject: discoTEL > =?ISO-8859-1?Q?Tarif=3A_F=FCr_7=2C5_Cent=2FMin=2E_telefonier > Folder: /home/lanwin/Maildir/new/1262032593.29952_2.vs5923 > 41096 > procmail: Unlocking "/home/lanwin/Maildir/.lockmail" > > Dovecot Deliver Log--> > > 2009-12-28 21:36:35 deliver(lanwin): Info: sieve: > msgid=: marked message to be discarded > if not explicitly delivered (discard action) > > Dose not look better to me. > > Steve > > Am 28.12.2009 18:06, schrieb Tobias Lang: >> >> Am 28.12.2009 um 15:09 schrieb Steve Wagner: >> >>> [snip] >>> >>> :0 w >>> | /opt/dovecot/libexec/dovecot/deliver >> >> Looks uncritical to me. Although there is no default rule at the end of >> .procmailrc, Dovecot deliver and Sieve should reroute everything not >> catched by a rule to INBOX. >> >> Did Procmails "VERBOSE=on" reveal something? >> >> Tobi >>
Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Am 28.12.2009 um 15:09 schrieb Steve Wagner: > [snip] > > :0 w > | /opt/dovecot/libexec/dovecot/deliver Looks uncritical to me. Although there is no default rule at the end of .procmailrc, Dovecot deliver and Sieve should reroute everything not catched by a rule to INBOX. Did Procmails "VERBOSE=on" reveal something? Tobi
Re: [Dovecot] checking all folders for new mail (IMAP STATUS command)
Am 28.12.2009 um 16:14 schrieb Florian Effenberger: > Hi Tobias, > >> This might be help you... >> **quote** >> If Thunderbird doesn't recognize that a folder contains unread messages try >> setting mail.imap.use_status_for_biff true. It causes Thunderbird to >> explicitly select each folder to update the message summaries, rather than >> using the STATUS command. It has more overhead, but some IMAP servers don't >> return STATUS correctly. >> **quote** > > thanks, that's exactly what I am refering to. ;-) This paragraph talks > about "some IMAP servers don't return STATUS correctly", and I'm > interested to hear if this is true for recent Dovecot versions and > whether a patch or a configuration directive is available to fix it... > :) > > Florian Locking at http://www.dovecot.org/ : Overview ... * "Dovecot is standards compliant. Dovecot v1.1 passes all IMAP server standard compliancy tests while most other servers fail many of them." ... Hope, this answers your question. Maybe you should use a recent version of Dovecot (stable is 1.2.9) and not v1.0 Tobi (another one)
Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Am 28.12.2009 um 14:34 schrieb Steve Wagner: > Ok ive tested it. The sieve script works as expected. > > The only error message i have, come from procmail.log: > > 24918-Folder: /opt/dovecot/libexec/dovecot/deliver > 3720 > 24919-procmail: Error while writing to > "/opt/dovecot/libexec/dovecot/deliver" > 24920:From keineantwortadre...@web.de Tue Dec 8 07:19:55 2009 > > The procmail-deliver error logfile is empty and the normal log file dose > not contains that error. > > Do you have an idea how else i can get the error message? > > Steve Try using 'VERBOSE=on' in .procmailrc . Moreover I find it curious that, procmail tries to write to dovecot/deliver. This should be a binary file and no writing should occur to it. What does your .procmailrc look like? Tobi
Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Am 28.12.2009 um 13:02 schrieb Steve Wagner: > Hi Tobi, yes but it is correct. It should only discard messages that > have this header. The sieve filter is larger, this are only the parts > witch use discard. > > Steve > > Am 28.12.2009 12:25, schrieb Tobias Lang: >> Am 28.12.2009 um 11:55 schrieb Steve Wagner: >> >>> if header :contains "Organization" "web.de" { discard; stop; } >>> >>> This often works, but sometimes it fails. Procmail reports then that >>> deliver reported an error (but not which) and delivers them to my inbox. >>> There are also no message in dovecots or dovecot delivers log file. >> >> This rule will fail, when there is no HeaderEntry called "Organization". >> You should try "From" instead, this HeaderEntry should always be there >> to test against. >> >> Tobi Hey Steve, as you can not provide some error messages, it is quite hard to help you with your problem. However, I would guess that there is something wrong with your sieve rules - based on the information, that most mails get filtered correctly. Try analyzing the mails causing errors separately with e.g.: http://www.fastmail.fm/docs/sieve/sievetest.php Maybe you can isolate the error there. Tobi
Re: [Dovecot] Dovecot-deliver sometimes fails when message set to discard via sieve
Am 28.12.2009 um 11:55 schrieb Steve Wagner: > if header :contains "Organization" "web.de" { discard; stop; } > > This often works, but sometimes it fails. Procmail reports then that > deliver reported an error (but not which) and delivers them to my inbox. > There are also no message in dovecots or dovecot delivers log file. This rule will fail, when there is no HeaderEntry called "Organization". You should try "From" instead, this HeaderEntry should always be there to test against. Tobi