[Dovecot] DOVECOT v2.0.11 using SIEVE not working
Hi,
I'm trying to get sieve working with dovecot. I seem to have everything enabled but my scripts done seem to work. both sieve-filter (2000) and sieve (4190) are running along with pop3 and imap. I have a simple script which checks the email address and moves it to a folder. I'm at a loss as to what to check next.
Thanks in advance,
Matt
On 5/7/2011 12:54 AM, Matt Mc Namara wrote:
Hi,
I'm trying to get sieve working with dovecot. I seem to have everything enabled but my scripts done seem to work.
both sieve-filter (2000) and sieve (4190) are running
Uh, what do you mean with sieve-filter in this case?
Regarding your problem:
- Make sure you are using the Dovecot LDA
(http://wiki2.dovecot.org/LDA) and/or LMTP (http://wiki2.dovecot.org/LMTP).
- Make sure the LDA Sieve plugin is enabled
(http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration)
- Make sure that the sieve scripts are found. You can obtain more
information by enabling mail_debug.
If the above does not solve your problem, it is important to post your dovecot -n output here.
Regards,
Stephan.
Thanks for your response.
Regarding the ports, I was referring to the services. Which I verified they are running. What would cause the scripts to run but do nothing?
service managesieve-login { inet_listener sieve { port = 4190 }
inet_listener sieve_deprecated { port = 2000 }
the LDA is enabled and the changes have been made to sendmail. I created a new sendmail.cf file and the added lines are in there. When I receive an email the .dovecot.sieve is executed but does nothing. I've attached the output of dovecot -n.
# 2.0.12: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.35.12-88.fc14.i686 i686 Fedora release 14 (Laughlin) auth_mechanisms = plain login disable_plaintext_auth = no listen = * mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail maildir_very_dirty_syncs = yes mbox_write_locks = fcntl passdb { driver = pam } service imap-login { inet_listener imap { port = 143 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { ssl = no } } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd }
----- Original Message ----- From: "Stephan Bosch" <stephan@rename-it.nl> To: <dovecot@dovecot.org> Sent: Saturday, May 07, 2011 3:31 AM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working
On 5/7/2011 12:54 AM, Matt Mc Namara wrote:
Hi,
I'm trying to get sieve working with dovecot. I seem to have everything enabled but my scripts done seem to work.
both sieve-filter (2000) and sieve (4190) are running
Uh, what do you mean with sieve-filter in this case?
Regarding your problem: - Make sure you are using the Dovecot LDA (http://wiki2.dovecot.org/LDA) and/or LMTP (http://wiki2.dovecot.org/LMTP). - Make sure the LDA Sieve plugin is enabled (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) - Make sure that the sieve scripts are found. You can obtain more information by enabling mail_debug.
If the above does not solve your problem, it is important to post your dovecot -n output here.
Regards,
Stephan.
Does anyone have any ideas? I've checked my sendmail.cf file which has the entry for dovecot-lda, I've even run it manually and it still does not move the email to the designated file. The logfile for debugging "says" it is running the dovecot-sieve script file. I'm trying to determine where to check next.
Thanks for your response.
Regarding the ports, I was referring to the services. Which I verified they are running. What would cause the scripts to run but do nothing?
service managesieve-login { inet_listener sieve { port = 4190 }
inet_listener sieve_deprecated { port = 2000 }
the LDA is enabled and the changes have been made to sendmail. I created a new sendmail.cf file and the added lines are in there. When I receive an email the .dovecot.sieve is executed but does nothing. I've attached the output of dovecot -n.
# 2.0.12: /usr/local/etc/dovecot/dovecot.conf # OS: Linux 2.6.35.12-88.fc14.i686 i686 Fedora release 14 (Laughlin) auth_mechanisms = plain login disable_plaintext_auth = no listen = * mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_privileged_group = mail maildir_very_dirty_syncs = yes mbox_write_locks = fcntl passdb { driver = pam } service imap-login { inet_listener imap { port = 143 } } service pop3-login { inet_listener pop3 { port = 110 } inet_listener pop3s { ssl = no } } ssl_cert = </etc/pki/dovecot/certs/dovecot.pem ssl_key = </etc/pki/dovecot/private/dovecot.pem userdb { driver = passwd }
----- Original Message ----- From: "Stephan Bosch" <stephan@rename-it.nl> To: <dovecot@dovecot.org> Sent: Saturday, May 07, 2011 3:31 AM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working
On 5/7/2011 12:54 AM, Matt Mc Namara wrote:
Hi,
I'm trying to get sieve working with dovecot. I seem to have everything enabled but my scripts done seem to work.
both sieve-filter (2000) and sieve (4190) are running
Uh, what do you mean with sieve-filter in this case?
Regarding your problem: - Make sure you are using the Dovecot LDA (http://wiki2.dovecot.org/LDA) and/or LMTP (http://wiki2.dovecot.org/LMTP). - Make sure the LDA Sieve plugin is enabled (http://wiki2.dovecot.org/Pigeonhole/Sieve/Configuration) - Make sure that the sieve scripts are found. You can obtain more information by enabling mail_debug.
If the above does not solve your problem, it is important to post your dovecot -n output here.
Regards,
Stephan.
On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote:
Does anyone have any ideas? I've checked my sendmail.cf file which has the entry for dovecot-lda, I've even run it manually and it still does not move the email to the designated file. The logfile for debugging "says" it is running the dovecot-sieve script file. I'm trying to determine where to check next.
So you've set mail_debug=yes? Show the full log file contents of the delivery, and show the script contents that it says it's running.
This is what I see via the debug.log file.
May 09 08:27:48 managesieve(mmcnamar): Debug: Effective uid=500, gid=500, home=/home/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: fs: root=/home/mmcnamar/mail, index=, control=, inbox=/var/mail/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using active sieve script path: /home/mmcnamar/.dovecot.sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using sieve script storage directory: /home/mmcnamar/sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using permissions from /home/mmcnamar/sieve: mode=0755 gid=-1 May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: relative path to sieve storage in active link: sieve/ May 09 13:04:58 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:16 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:30 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so
----- Original Message ----- From: "Timo Sirainen" <tss@iki.fi> To: "Matt Mc Namara" <matt@gr-lakes.com> Cc: <dovecot@dovecot.org> Sent: Monday, May 09, 2011 1:41 PM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working
On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote:
Does anyone have any ideas? I've checked my sendmail.cf file which has the entry for dovecot-lda, I've even run it manually and it still does not move the email to the designated file. The logfile for debugging "says" it is running the dovecot-sieve script file. I'm trying to determine where to check next.
So you've set mail_debug=yes? Show the full log file contents of the delivery, and show the script contents that it says it's running.
Those are logs from ManageSieve. ManageSieve has nothing to do with actual mail delivery, only with getting Sieve scripts uploaded to the server. The mail delivery must be done via Dovecot LDA: http://wiki2.dovecot.org/LDA
On Mon, 2011-05-09 at 13:51 -0400, Matt Mc Namara wrote:
This is what I see via the debug.log file.
May 09 08:27:48 managesieve(mmcnamar): Debug: Effective uid=500, gid=500, home=/home/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: fs: root=/home/mmcnamar/mail, index=, control=, inbox=/var/mail/mmcnamar May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using active sieve script path: /home/mmcnamar/.dovecot.sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using sieve script storage directory: /home/mmcnamar/sieve May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: using permissions from /home/mmcnamar/sieve: mode=0755 gid=-1 May 09 08:27:48 managesieve(mmcnamar): Debug: sieve-storage: relative path to sieve storage in active link: sieve/ May 09 13:04:58 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:16 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so May 09 13:05:30 lda: Debug: Module loaded: /usr/lib/dovecot/lib90_sieve_plugin.so
----- Original Message ----- From: "Timo Sirainen" <tss@iki.fi> To: "Matt Mc Namara" <matt@gr-lakes.com> Cc: <dovecot@dovecot.org> Sent: Monday, May 09, 2011 1:41 PM Subject: Re: [Dovecot] DOVECOT v2.0.11 using SIEVE not working
On Mon, 2011-05-09 at 13:28 -0400, Matt Mc Namara wrote:
Does anyone have any ideas? I've checked my sendmail.cf file which has the entry for dovecot-lda, I've even run it manually and it still does not move the email to the designated file. The logfile for debugging "says" it is running the dovecot-sieve script file. I'm trying to determine where to check next.
So you've set mail_debug=yes? Show the full log file contents of the delivery, and show the script contents that it says it's running.
Hi All,
I seem to be getting nowhere on this problem.
- Does anyone have a working configuration using sendmail, dovecot and sieve for filters?
- Dovecot 2.0.11 currently is running and working both with imap and pop3.
- Sendmail version 8.14.4 is being used and the .mc file has been modifed to use dovecot as the LDA. A new .cf file has been created and is currently running.
- A simple rule has been created and called .dovecot-sieve and has been tested. However, it never seems to be involked.
I have checked the wiki2.dovecot.org site long before posting on here. I have searched to make sure configurations are correct. I have already looked at and verified my entries regarding the wiki2.dovecot.org/LDA reference. I'm still not seeing my scripts being executed.
Where is the next logical place to look?
Thanks in advance
On Tue, 2011-05-10 at 12:46 -0400, Matt Mc Namara wrote:
- Sendmail version 8.14.4 is being used and the .mc file has been modifed to use dovecot as the LDA. A new .cf file has been created and is currently running.
This is very likely where the problem is. My guess is that Sendmail isn't calling Dovecot LDA at all. If it is, there should be lines in Dovecot logs about "lda(..): .." If you don't see such lines, Sendmail isn't calling LDA. In that case show Sendmail logs about a new mail delivery, maybe someone can figure out what's wrong.
Hi I do not see your lda configuration in dovecot, I should look like:
protocol lda {
mail_plugins = sieve postmaster_address =postmaster@example.com }
Thanks
2011/5/10 Matt Mc Namara <matt@gr-lakes.com>:
Hi All,
I seem to be getting nowhere on this problem.
- Does anyone have a working configuration using sendmail, dovecot and sieve for filters?
- Dovecot 2.0.11 currently is running and working both with imap and pop3.
- Sendmail version 8.14.4 is being used and the .mc file has been modifed to use dovecot as the LDA. A new .cf file has been created and is currently running.
- A simple rule has been created and called .dovecot-sieve and has been tested. However, it never seems to be involked.
I have checked the wiki2.dovecot.org site long before posting on here. I have searched to make sure configurations are correct. I have already looked at and verified my entries regarding the wiki2.dovecot.org/LDA reference. I'm still not seeing my scripts being executed.
Where is the next logical place to look?
Thanks in advance
Hi Matt, At 09:46 10-05-2011, Matt Mc Namara wrote:
- Does anyone have a working configuration using sendmail, dovecot and sieve for filters?
sendmail.mc:
FEATURE(local_procmail',
/usr/local/libexec/dovecot/deliver',/usr/local/libexec/dovecot/deliver -d $u') MODIFY_MAILER_FLAGS(
LOCAL', `-f')
MAILER(procmail)
dovecot.conf:
plugin { # The path to the user's main active script. sieve = ~/.dovecot.sieve
...
}
protocol lda { mail_plugins = sieve }
protocol lmtp { mail_plugins = sieve }
service managesieve-login { inet_listener sieve { port = 4190 }
...
}
protocol sieve {
...
}
Regards, -sm
participants (5)
-
Matt Mc Namara
-
Osvaldo Alvarez Pozo
-
SM
-
Stephan Bosch
-
Timo Sirainen