Re: [Dovecot] deliver segv on sieve redirect

2008-11-26 Thread Guillaume Hilt

If you redirect the mail, how can it be stored into a folder after that ?

Andy Howell a écrit :

Hello,

I've been trying out the bleeding edge, 1.2.alpha4. I'm having a 
problem with deliver and dovecot-1.2-sieve-0.1.1.


I get a segv on this sieve script:

require [fileinto, reject, vacation, envelope, regex];
if header :contains subject [urgent] {
 redirect [EMAIL PROTECTED];
 fileinto test;
}

Seems its happening on the redirect. If I put the fileinto before 
the redirect, the fileinto works.


I tried putting extra debug statements in 
plugins/lda-sieve/lda-sieve-plugin.c right after the sieve_execute in 
lda_sieve_run, but it never prints anything. I'm guessing thats the 
right place. Its quite possible there is something amiss in my setup.


My logs show:

Nov 26 02:51:12 marvin dovecot: deliver([EMAIL PROTECTED]): sieve: using 
sieve path: /var/mail/vhosts/x.y.org/andy/.dovecot.sieve
Nov 26 02:51:12 marvin dovecot: deliver([EMAIL PROTECTED]): sieve: opening 
script /var/mail/vhosts/x.y.org/andy/.dovecot.sieve
Nov 26 02:51:12 marvin dovecot: deliver([EMAIL PROTECTED]): sieve: 
executing compiled script /var/mail/vhosts/x.y.org/andy/.dovecot.sieve
Nov 26 02:51:12 marvin postfix/pipe[17027]: 0CA895CB3A: 
to=[EMAIL PROTECTED], relay=dovecot, delay=0.41, delays=0.33/0.01/0/0.07, 
dsn=5.3.0, status=bounced (Command died with signal 11: 
/usr/libexec/dovecot/deliver)


Thanks,

Andy



Re: [Dovecot] deliver segv on sieve redirect

2008-11-26 Thread Stephan Bosch

Andy Howell wrote:

Hello,

I've been trying out the bleeding edge, 1.2.alpha4. I'm having a 
problem with deliver and dovecot-1.2-sieve-0.1.1.


I get a segv on this sieve script:

require [fileinto, reject, vacation, envelope, regex];
if header :contains subject [urgent] {
 redirect [EMAIL PROTECTED];
 fileinto test;
}

Seems its happening on the redirect. If I put the fileinto before the 
redirect, the fileinto works.

Fixed:

http://hg.rename-it.nl/dovecot-libsieve/rev/28e3144b79d1

This bug probably affects other actions that only send messages. Not 
sure why it worked before. This a bit of a show-stopper bug and warrants 
a new release. I'll look into that shortly. In the mean time, you can 
apply those changes and continue testing (i.e. click 'raw' on that page 
to obtain the patch)


Regards,

Stephan


Re: [Dovecot] deliver segv on sieve redirect

2008-11-26 Thread Stephan Bosch

Andy Howell wrote:

Guillaume Hilt wrote:

If you redirect the mail, how can it be stored into a folder after that ?



I thought that should work; I must admit I'm not well versed on sieve 
scripts. Even without the fileinto, it dies.


Your script is correct. You can even file messages into multiple folders 
at the same time and redirect to multiple recipients (currently max 4 
recipients, as hard-coded in src/lib-sieve/sieve-limits.h).


Regards,

Stephan.


[Dovecot] expire tool question

2008-11-26 Thread Jakob Curdes

Hi, I try to get expire working, with the BDB backend and mbox mailboxes.

If I try to invoke the expire-tool like

/usr/local/sbin/dovecot --exec-mail ext 
/usr/local/libexec/dovecot/expire-tool --test


I get

[EMAIL PROTECTED] ~]# /usr/local/sbin/dovecot --exec-mail ext 
/usr/local/libexec/dovecot/expire-tool --test

Error: read(/var/run/dovecot/dict-server) failed: Remote disconnected

Hmm. I searched for hints but could not find a related discussion or 
problem.

Here are the relavant config parts:

dict {
 expire = db:/var/lib/dovecot/expire.db
}

plugin {
# expire plugin
expire_dict = proxy::expire
expire = backup 7 spam 30
# If you have a non-default path to auth-master, set also:
auth_socket_path = /var/run/dovecot/auth-master
}


Any ideas? Has anybody got this working ? The file 
/var/lib/dovecot/expire.db doas not exit even though I restarted DC 
quite a while ago.


Regards,
Jakob


Re: [Dovecot] [OT] My appreciation for Dovecot

2008-11-26 Thread Allan Cassaro
On Wed, Nov 26, 2008 at 1:00 PM, Christoph Petersen [EMAIL PROTECTED] wrote:
 Hi guys!

 I recently switched to Dovecot from Courier with qmail+vpopmail backend. I'm
 really happy with the switch as all use-cases are more stable and much much
 faster than before.

 And the build process is much better as with Courier :)

 Just wanted to express my appreciation!


Yes!
Thanks to the dovecot team!!!

You will discover that dovet is really great. Dovecot can make many
things that no other can do...


[Dovecot] Dovecot Proxy with MySQL auth

2008-11-26 Thread Justin Krejci
We are looking at deploying several pop/imap servers to house the mail for
15,000 or more mailbox accounts. We are contemplating on the design and are
looking at using MySQL auth (we already have a MySQL environment in place
for our user auth to live) and proxy_maybe so each server can proxy for all
the others and we just have a network load balancer distribute the incoming
connections to all of the Dovecot servers. Each server would have its own
local maildir storage for the users local to that server and all of the
authentication and target backend pop/imap server data would be stored in
the same MySQL database. The problem we are running into is the
documentation is not very clear on this type of scenario. 

 

http://wiki.dovecot.org/PasswordDatabase/ExtraFields/Proxy

 

At the bottom of this page it gives a query example of SELECT NULL AS
password, . but that does not seem to allow for us to use the proxy_maybe
if the destination server is localhost (and therefore do not proxy) it does
not seem that the above query will actually send the real password for
authentication. Is this a misunderstanding on our part or is the use of
mysql auth + proxy_maybe not feasible? Assuming the latter we surmised using
a separate instance of Dovecot on each machine to act solely as a proxy
front end (use proxy instead of proxy_maybe) then on the second instance
there is no proxy config and it listens on a separate TCP port like 80143 or
whatever.

 

Any input or suggestions would be appreciated.

 

Justin Krejci



Re: [Dovecot] expire tool question

2008-11-26 Thread Jakob Curdes

I myself wrote:

Hi, I try to get expire working, with the BDB backend and mbox mailboxes.
(...)
[EMAIL PROTECTED] ~]# /usr/local/sbin/dovecot --exec-mail ext 
/usr/local/libexec/dovecot/expire-tool --test

Error: read(/var/run/dovecot/dict-server) failed: Remote disconnected

Hmm. I searched for hints but could not find a related discussion or 
problem.

Here are the relavant config parts:
My first finding is that I need to enable db when doing ./configure. Now 
I see a berkeley database tree in the /var/run/dovecot/ directory.
However this has the timestamp of the last restart and does not change 
even when I access one of my expire-configured folders (backu and spam).
Should the DB not be updated every time I access one of these folders? I 
have no namespaces and the folders are directly in the user's home dirs.


But at least the expire-tool now runs silently. Totally silently. No 
output at all


Comments welcome.

JC



[Dovecot] Released Sieve v0.1.2 (important bug fixed)

2008-11-26 Thread Stephan Bosch

Hello Dovecot users,

Today, Andy Howell tripped an important bug in the Sieve interpreter 
that makes it crash when redirect is executed. That is why I quickly 
release yet another new version to provide a fix for this bug.


I really should prevent this from happening again in the future by 
extending the test suite to test the execution of actions.


Changelog v0.1.2:

  - Fixed important bug in the redirect action (and probably other
actions like reject and vacation that only send messages). This was
a bug in the handling of context information during the execution of
actions. It caused the sieve interpreter to crash with a segfault
when redirect was executed.

The release is available here:

http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.2.tar.gz
http://www.rename-it.nl/dovecot/1.2/dovecot-1.2-sieve-0.1.2.tar.gz.sig

Refer to the initial release mail for more information:

http://www.dovecot.org/list/dovecot-news/2008-October/87.html

Regards,

--
Stephan Bosch
[EMAIL PROTECTED]
IRC: Freenode, #dovecot, S[r]us


[Dovecot] v1.2Autocreate

2008-11-26 Thread Robert Schetterer
Hi Timo,
a setup like
http://wiki.dovecot.org/Plugins/Autocreate
seems not to work
the module is loaded but no subfolder creation at login
happens, sorry no log about failures with it
simply
Module loaded: /usr/lib/dovecot/modules/imap/lib20_autocreate_plugin.so

should i try
i.e
autocreate = .Trash/

or is there more info around

-- 
Best Regards

MfG Robert Schetterer

Germany/Munich/Bavaria


Re: [Dovecot] anti spam measures

2008-11-26 Thread Jakob Curdes



Interesting. Somebody else was reporting the same errors, but I'm not
seeing them. But I'm still using 1.1.2. I'll review the changes, I
guess, but if I don't find anything quickly I won't get around to poking
at it before Christmas.

johannes
  
  
I found out what the problem is. In your git tree you have the signature 
option set for both dspam and crm114 with both uncommented.

I was the other one having this problem. Where exactly is that line? I 
was just looking at the whole thing again and re-testing, without any 
success.

Cheers, Jakob



[Dovecot] Dovecot auth-worker permission denied.

2008-11-26 Thread Romer Ventura
Hello,

I am trying to get dovecot to use virtual users and authenticate using
PAM+kerberos against Active Directory and I am running into some problems.

I followed the tutorials from the wiki page from:
http://www.linuxmail.info/active-directory-dovecot-pam-authentication/

And here is what I get from the /var/log/mail log:
Nov 26 15:12:27 housigma20 dovecot: auth(default): client in: AUTH  1
PLAIN   service=pop3secured lip=127.0.0.1   rip=127.0.0.1   lport=110
rport=36327 resp=AGxpbnV4dABob3VzdG9u
Nov 26 15:12:27 housigma20 dovecot: auth-worker(default):
pam(linuxt,127.0.0.1): lookup service=dovecot
Nov 26 15:12:27 housigma20 dovecot: auth-worker(default):
pam(linuxt,127.0.0.1): pam_authenticate() failed: Permission denied
Nov 26 15:12:29 housigma20 dovecot: auth(default): client out: FAIL 1
user=linuxt
Nov 26 15:12:31 housigma20 dovecot: pop3-login: Aborted login (auth failed,
1 attempts): user=linuxt, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1,
secured

Any ideas..? Other than this:
http://www.dovecot.org/list/dovecot/2008-July/032455.html

Thanks...!

/etc/pam.d/dovecot:
auth sufficient pam_krb5.so no_user_check validate
account  sufficient pam_permit.so


Here is my dovecot ­n and version:
# 1.1.6: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.16.60-0.21-xenpae i686 SUSE Linux Enterprise Server 10
(i586) 
protocols: pop3 pop3s imap imaps
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
mail_privileged_group: mail
mail_location: maildir:~/Maildir/
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh
imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh
imap_client_workarounds(pop3):
pop3_client_workarounds(default):
pop3_client_workarounds(imap):
pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh
auth default:
  mechanisms: plain login
  debug: yes
  debug_passwords: yes
  passdb:
driver: pam
  userdb:
driver: static
args: uid=1004 gid=1002 home=/home/vmail/%d/%Lu
  socket:
type: listen
client:
  path: /var/spool/postfix/private/auth
  mode: 432
  user: postfix
  group: postfix




Re: [Dovecot] expire tool question

2008-11-26 Thread Thorsten Vollmer
On Wed, 2008-11-26 at 20:57 +0100, Jakob Curdes wrote:
 My first finding is that I need to enable db when doing ./configure. Now 
 I see a berkeley database tree in the /var/run/dovecot/ directory.
 However this has the timestamp of the last restart and does not change 
 even when I access one of my expire-configured folders (backu and spam).
 Should the DB not be updated every time I access one of these folders?

The database contains the time for each mailbox when the oldest message
needs to be expunged. That timestamp will be set when
  a) the oldest message is expunged,
  b) a new message is saved and the database does not yet contain any
 record for the corresponding mailbox.

Regards,
Thorsten



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] anti spam measures

2008-11-26 Thread Trever L. Adams

Jakob Curdes wrote:


I was the other one having this problem. Where exactly is that line? I 
was just looking at the whole thing again and re-testing, without any 
success.

Cheers, Jakob

In dovecot.conf, look near the very bottom, in the crm 114 section of 
your antispam configuration. You will find that crm114's spam signature 
is likely uncommented. Comment it. Problem solved, at least here.


Trever




signature.asc
Description: OpenPGP digital signature


Re: [Dovecot] expire tool question

2008-11-26 Thread LÉVAI Dániel
On Wednesday 26 November 2008 20.57.10 Jakob Curdes wrote:
 I myself wrote:
  Hi, I try to get expire working, with the BDB backend and mbox
  mailboxes. (...)
  [EMAIL PROTECTED] ~]# /usr/local/sbin/dovecot --exec-mail ext
  /usr/local/libexec/dovecot/expire-tool --test
  Error: read(/var/run/dovecot/dict-server) failed: Remote
  disconnected
 
  Hmm. I searched for hints but could not find a related discussion
  or problem.
  Here are the relavant config parts:

 My first finding is that I need to enable db when doing ./configure.
 Now I see a berkeley database tree in the /var/run/dovecot/
 directory. However this has the timestamp of the last restart and
 does not change even when I access one of my expire-configured
 folders (backu and spam). Should the DB not be updated every time I
 access one of these folders? I have no namespaces and the folders are
 directly in the user's home dirs.

 But at least the expire-tool now runs silently. Totally silently. No
 output at all

Maybe you'll find this thread useful:

http://dovecot.org/list/dovecot/2008-October/034747.html

-- 
LEVAI Daniel
PGP key ID = 0x4AC0A4B1
Key fingerprint = D037 03B9 C12D D338 4412  2D83 1373 917A 4AC0 A4B1


Re: [Dovecot] deliver segv on sieve redirect

2008-11-26 Thread Steffen Kaiser

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, 26 Nov 2008, Andy Howell wrote:

I thought that should work; I must admit I'm not well versed on sieve 
scripts. Even without the fileinto, it dies.


Nov 26 02:51:12 marvin postfix/pipe[17027]: 0CA895CB3A: to=[EMAIL PROTECTED], 
relay=dovecot, delay=0.41, delays=0.33/0.01/0/0.07, dsn=5.3.0, 
status=bounced (Command died with signal 11: 
/usr/libexec/dovecot/deliver)


Regardless of should it work or not, the SEGV is bad.

Could you try running deliver from command line with the appropriate 
command line switches and su'ed to the user, to get a core file you might 
raise the core limit, e.g. ulimit -c unlimited in bash?


BTW: For me it looks like that the user deliver runs under cannot spawn 
sendmail to drop the mail to the queue.


Bye,

- -- 
Steffen Kaiser

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFJLkxRVJMDrex4hCIRAmJ5AKDZaIerhTIvDx43BwqfeBiykuPJ5QCgjPEv
FMHgdLl6elkanXsYNp8xwjw=
=laZw
-END PGP SIGNATURE-