Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Timo Sirainen
On Jan 2, 2009, at 9:38 AM, Guillaume Hilt wrote: Jan 2 14:48:52 mail deliver(postmas...@adomain.fr): chdir(/root) failed: Permission denied .. Why does it look inside the /root folder for sieve configuration ? Your userdb returns /root as home directory. Show your dovecot- sql.conf and

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Guillaume Hilt
Timo Sirainen a écrit : On Jan 2, 2009, at 9:38 AM, Guillaume Hilt wrote: Jan 2 14:48:52 mail deliver(postmas...@adomain.fr): chdir(/root) failed: Permission denied .. Why does it look inside the /root folder for sieve configuration ? Your userdb returns /root as home directory. Show your

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Timo Sirainen
On Jan 3, 2009, at 10:21 AM, Guillaume Hilt wrote: Timo Sirainen a écrit : On Jan 2, 2009, at 9:38 AM, Guillaume Hilt wrote: Jan 2 14:48:52 mail deliver(postmas...@adomain.fr): chdir(/root) failed: Permission denied .. Why does it look inside the /root folder for sieve configuration ?

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Guillaume Hilt
Anyway, I correct the sql request by adding a concat with .home/vmail/ and now I have the good home directory but the error still occurs. Setting sieve_global_dir didn't change anything. Guillaume Hilt Timo Sirainen a écrit : On Jan 3, 2009, at 10:21 AM, Guillaume Hilt wrote: Timo

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Timo Sirainen
Where did you add that? You'll need to return a home field from user_query poiting to the sieve script directory. On Jan 3, 2009, at 10:35 AM, Guillaume Hilt wrote: Anyway, I correct the sql request by adding a concat with .home/ vmail/ and now I have the good home directory but the error

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Guillaume Hilt
In dovecot-sql.conf user_query = SELECT CONCAT('/home/vmail/',maildir) AS maildir, 207 AS uid, 207 AS gid FROM mailbox WHERE username = '%u' So I'll have a complete path like /home/vmail/mydomain/myuser/. Guillaume Hilt Timo Sirainen a écrit : Where did you add that? You'll need to

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Timo Sirainen
maildir field isn't used for anything. Perhaps there is some completely undocumented and unreliable code that makes use of it for pop3/imap, but it is used in no way by Sieve. Try something like: user_query = SELECT CONCAT('/home/vmail', maildir) AS home, 207 AS uid, 207 AS gid FROM

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Guillaume Hilt
I'll try that. For the mail location, it's already the case : ~/.maildir Guillaume Hilt Timo Sirainen a écrit : maildir field isn't used for anything. Perhaps there is some completely undocumented and unreliable code that makes use of it for pop3/imap, but it is used in no way by Sieve.

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-03 Thread Guillaume Hilt
Looks like using As home in the sql request corrected the problem :) Thanks Timo ;) Guillaume Hilt Guillaume Hilt a écrit : I'll try that. For the mail location, it's already the case : ~/.maildir Guillaume Hilt Timo Sirainen a écrit : maildir field isn't used for anything. Perhaps

[Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Guillaume Hilt
Hi, I'm using dovecot (+sieve), dspam, clamav and postfix with wirtual users and domains. When the server receive an email, I get this error : Jan 2 14:48:52 mail postfix/qmgr[13573]: 89DE1276C42B: from=postmas...@shadowprojects.org, size=926, nrcpt=1 (queue active) Jan 2 14:48:52 mail

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Charles Marcus
On 1/2/2009, Guillaume Hilt (postmas...@shadowprojects.org) wrote: I uploaded the following config files in http://hiltg.pastebin.com/ : - main.cf - master.cf - dovecot.conf - dspam.conf Posting to a service like this is really a bother - just paste into the email body... Also, you should

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Guillaume Hilt
# postconf -n broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix content_filter = lmtp:unix:/var/run/dspam/dspam.sock daemon_directory = /usr/lib64/postfix data_directory = /var/lib/postfix debug_peer_level = 2 home_mailbox = .maildir/ html_directory =

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Charles Marcus
On 1/2/2009 10:10 AM, Guillaume Hilt wrote: # OS: Linux 2.6.24.5-grsec--grs-ipv4-64 Hmmm... maybe it is a grsec problem? I can't help you there... ssl_key_password: Y0ullN3v3rF1ndTh1sPassphras3 If thats really your passphrase, you'd best change it asap... smtpd_client_restrictions =

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Guillaume Hilt
It's okay, you're trying to help me, so I won't complain :) So, postfix isn't running in a chroot. I've done the modifications you suggested. My problem is that sieve is looking into the root folder for a sieve configuration file when the server receive a new email (mail for a virtual user).

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Charles Marcus
On 1/2/2009 11:54 AM, Guillaume Hilt wrote: It's okay, you're trying to help me, so I won't complain :) So, postfix isn't running in a chroot. Are you sure? master .cf? My problem is that sieve is looking into the root folder for a sieve configuration file when the server receive a new

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Guillaume Hilt
Charles Marcus a écrit : On 1/2/2009 11:54 AM, Guillaume Hilt wrote: It's okay, you're trying to help me, so I won't complain :) So, postfix isn't running in a chroot. Are you sure? master .cf? smtp inet n - n - - smtpd pickupfifo n

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread Charles Marcus
On 1/2/2009 12:18 PM, Guillaume Hilt wrote: Did you read and install/configure according to this page? http://wiki.dovecot.org/LDA/Sieve sieve is declared and called in the lda section :) (i followed the tutorial yeah) Well... I don't use dspam, but the sieve tutorial explicitly says you

Re: [Dovecot] deliver looking into root directory for sieve configuration ?

2009-01-02 Thread sami
Hello, Try setting the sieve dir under the LDA procotol: sieve_global_dir = /path/with/the/globel/sieve/scripts if you dont have any global sieve scripts, i guess any directory readable to all will do, if you have user sieve scripts you should use sieve under the plugin section. //sami On