Re: [Dovecot] rotate logs ?
> -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Frank Bonnet > Sent: 18 January 2011 09:41 > To: Dovecot Mailing List > Subject: [Dovecot] rotate logs ? > > Hello > > is there an internal mechanism in dovecot to rotate logs daily ? > > thanks How about putting the something similar to the following in /etc/logrotate.conf (on redhat/centos) /var/log/dovecot.log { weekly minsize 1M create 0664 root postfix rotate 4 } Cheers Nick . __ Information from ESET NOD32 Antivirus, version of virus signature database 5795 (20110117) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
[Dovecot] Sieve scripts
Hi I have a simple sieve script to discard email with a certain string in the subject. I now need to beef this up a bit with the following: if header :contains "subject" "A" and "B" and not "C" discard if header :contains "subject" "A" and "D" and not "C" discard else pass Maybe my google skills are failing but I can't find much info on creating sieve scripts. Can anyone point me in the right direction to achieve this please ? Cheers Nick . __ Information from ESET NOD32 Antivirus, version of virus signature database 4992 (20100401) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] Sieve scripts
Hi Jerry > -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Jerry > Sent: 01 April 2010 18:14 > To: dovecot@dovecot.org > Subject: Re: [Dovecot] Sieve scripts > > On Thu, 1 Apr 2010 16:17:23 +0100, Nick Lunt > articulated: > > > Hi > > > > I have a simple sieve script to discard email with a certain string > in > > the subject. > > I now need to beef this up a bit with the following: > > > > if header :contains "subject" "A" and "B" and not "C" > > discard > > if header :contains "subject" "A" and "D" and not "C" > > discard > > else > > pass > > > > > > Maybe my google skills are failing but I can't find much info on > > creating sieve scripts. > > Can anyone point me in the right direction to achieve this please ? > > ((untested)) > > require ["fileinto", "reject"]; > > if allof (header :contains "Subject" ["A", "B"], > not header :contains "Subject" "C") > {discard; stop;} > > elsif allof (header :contains "Subject" ["A", "D"], > not header :contains "Subject" "C") > {discard; stop;} > > else {keep;} Testing this now, I'll let you know how it goes. Thank you. Nick . __ Information from ESET NOD32 Antivirus, version of virus signature database 5002 (20100405) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] Sieve scripts
> -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Nick Lunt > Sent: 06 April 2010 08:49 > To: dovecot@dovecot.org > Subject: Re: [Dovecot] Sieve scripts > > Hi Jerry > > > -Original Message- > > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] > On > > Behalf Of Jerry > > Sent: 01 April 2010 18:14 > > To: dovecot@dovecot.org > > Subject: Re: [Dovecot] Sieve scripts > > > > On Thu, 1 Apr 2010 16:17:23 +0100, Nick Lunt > > articulated: > > > > > Hi > > > > > > I have a simple sieve script to discard email with a certain string > > in > > > the subject. > > > I now need to beef this up a bit with the following: > > > > > > if header :contains "subject" "A" and "B" and not "C" > > > discard > > > if header :contains "subject" "A" and "D" and not "C" > > > discard > > > else > > > pass > > > > > > > > > Maybe my google skills are failing but I can't find much info on > > > creating sieve scripts. > > > Can anyone point me in the right direction to achieve this please ? > > > > ((untested)) > > > > require ["fileinto", "reject"]; > > > > if allof (header :contains "Subject" ["A", "B"], > > not header :contains "Subject" "C") > > {discard; stop;} > > > > elsif allof (header :contains "Subject" ["A", "D"], > > not header :contains "Subject" "C") > > {discard; stop;} > > > > else {keep;} > > Testing this now, I'll let you know how it goes. > > Thank you. > > Nick . Hi Jerry all tested and working as expected, thanks for your help. Nick . __ Information from ESET NOD32 Antivirus, version of virus signature database 5012 (20100409) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
[Dovecot] Command output: Failed to write to log file
Hi dovecot -n at end of message. Jul 13 09:41:56 findb postfix/smtpd[15996]: connect from unknown[10.56.85.6] Jul 13 09:41:56 findb postfix/smtpd[15996]: 3B7EF56ABA: client=unknown[10.56.85.6] Jul 13 09:41:56 findb postfix/cleanup[15999]: 3B7EF56ABA: message-id=<26cdbd30f4fe1d4fb6fb5f6d16bca93e0e5b777...@rveb1srvmsgccr1.c ymru.nhs.uk> Jul 13 09:41:56 findb postfix/qmgr[15667]: 3B7EF56ABA: from=<>, size=1711, nrcpt=1 (queue active) Jul 13 09:41:56 findb postfix/smtpd[15996]: disconnect from unknown[10.56.85.6] Jul 13 09:41:56 findb postfix/local[16000]: 3B7EF56ABA: to=, relay=local, delay=0.05, delays=0.03/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary failure. Command output: Failed to write to log file) Our postfix server started logging the above messages so I was thinking I had a postfix issue, but it turned out that recreating the dovecot.log file fixed the issue. Does the /var/log/dovecot.log file require special permissions or can it only grow to a certain size ? [/var/log]# dovecot -n # 1.2.10: /etc/dovecot.conf # OS: Linux 2.6.18-92.el5 x86_64 Red Hat Enterprise Linux Server release 5.2 (Tikanga) log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.log ssl: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_access_groups: mail mail_privileged_group: mail mail_location: maildir:~/Maildir mail_debug: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 lda: postmaster_address: r...@localhost mail_plugins: sieve auth default: debug: yes passdb: driver: pam userdb: driver: passwd plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/ log_path: /var/log/dovecot.log Many thanks Nick . __ Information from ESET NOD32 Antivirus, version of virus signature database 5273 (20100712) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] Command output: Failed to write to log file
> -Original Message- > From: Timo Sirainen [mailto:t...@iki.fi] > Sent: 13 July 2010 12:45 > To: Nick Lunt > Cc: dovecot@dovecot.org > Subject: Re: [Dovecot] Command output: Failed to write to log file > > On 13.7.2010, at 9.53, Nick Lunt wrote: > > > Jul 13 09:41:56 findb postfix/local[16000]: 3B7EF56ABA: > > to=, relay=local, delay=0.05, > > delays=0.03/0.01/0/0.02, dsn=4.3.0, status=deferred (temporary > failure. > > Command output: Failed to write to log file) > > > > Our postfix server started logging the above messages so I was > thinking > > I had a postfix issue, but it turned out that recreating the > dovecot.log > > file fixed the issue. > > Does the /var/log/dovecot.log file require special permissions or can > it > > only grow to a certain size ? > > See http://wiki.dovecot.org/LDA#logging, especially the part about > Postfix's mailbox_size_limit. Aha that must be it, thanks for the pointer, much appreciated. Nick. __ Information from ESET NOD32 Antivirus, version of virus signature database 5273 (20100712) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
[Dovecot] Cannot get dovecot-sieve to work
Hi all # dovecot --version 1.2.10 # dovecot -n # 1.2.10: /etc/dovecot.conf # OS: Linux 2.6.18-128.el5 x86_64 Red Hat Enterprise Linux Server release 5.3 (Tikanga) log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.log ssl: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_location: mbox:~/mail:INBOX=/var/mail/%u mail_debug: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 lda: mail_plugins: sieve auth default: debug: yes passdb: driver: pam userdb: driver: passwd plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/ log_path: /var/log/dovecot.log Here is my ~/.dovecot.sieve $ cat .dovecot.sieve require "fileinto"; if not header :contains "subject" "GRE:99" { discard; stop; } else { keep; } I only want to accept emails with GRE:99 as the subject, I'm not interested in any other mails. However when I send myself an email via the mail command all emails go into my INBOX whatever the subject is. I don't really get any info in the logs either: Jan 27 17:34:20 dovecot: Info: Dovecot v1.2.10 starting up (core dumps disabled) Jan 27 17:34:21 auth(default): Info: new auth connection: pid=495 Jan 27 17:34:21 auth(default): Info: new auth connection: pid=496 Jan 27 17:34:21 auth(default): Info: new auth connection: pid=497 Jan 27 17:34:21 auth(default): Info: new auth connection: pid=498 Jan 27 17:34:21 auth(default): Info: new auth connection: pid=499 Jan 27 17:34:21 auth(default): Info: new auth connection: pid=500 Jan 27 17:34:32 auth(default): Info: client in: AUTH1 PLAIN service=imaplip=192.168.10.208 rip=192.168.10.207 lport=143 rport=22688 resp= Jan 27 17:34:32 auth-worker(default): Info: pam(nickl,192.168.10.207): lookup service=dovecot Jan 27 17:34:32 auth-worker(default): Info: pam(nickl,192.168.10.207): #1/1 style=1 msg=Password: Jan 27 17:34:32 auth(default): Info: client out: OK 1 user=nickl Jan 27 17:34:32 auth(default): Info: master in: REQUEST 1 500 1 Jan 27 17:34:32 auth(default): Info: passwd(nickl,192.168.10.207): lookup Jan 27 17:34:32 auth(default): Info: master out: USER 1 nickl system_groups_user=nickluid=503 gid=503 home=/home/nickl Jan 27 17:34:32 imap-login: Info: Login: user=, method=PLAIN, rip=192.168.10.207, lip=192.168.10.208 Jan 27 17:34:32 IMAP(nickl): Info: Effective uid=503, gid=503, home=/home/nickl Jan 27 17:34:32 IMAP(nickl): Info: mbox: data=~/mail:INBOX=/var/mail/nickl Jan 27 17:34:32 IMAP(nickl): Info: fs: root=/home/nickl/mail, index=, control=, inbox=/var/mail/nickl Jan 27 17:34:32 auth(default): Info: new auth connection: pid=513 Im sure my .dovecot.sieve is not getting processed but I cannot prove it. Any help would be appreciated. Many thanks Nick .
Re: [Dovecot] Cannot get dovecot-sieve to work
> On Wed, 27 Jan 2010, Nick Lunt wrote: > > > Im sure my .dovecot.sieve is not getting processed but I cannot prove > > it. > > Do you have a .dovecot.sievec (Note the 'c' at the end) file? > > Did you configured your MTA to use Dovecot deliver as LDA? > http://wiki.dovecot.org/LDA We have dovecot already setup and it receives mail as desired. The organisation now only wants mail with the correct subject header to appear in the inbox. I am not aware that I have to change the config within sendmail for this. No I do not have a .dovecot.sievec file I'm afraid. When I run sievec on the .dovecot.sieve it creates a .dovecot.svbin Many thanks, Nick. __ Information from ESET NOD32 Antivirus, version of virus signature database 4810 (20100127) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] Cannot get dovecot-sieve to work
> -Original Message- > From: Tom Hendrikx [mailto:t...@whyscream.net] > Sent: 27 January 2010 15:53 > To: Nick Lunt; dovecot@dovecot.org > Subject: Re: [Dovecot] Cannot get dovecot-sieve to work > Your sieve file will be processed at delivery time, when the MTA (f.i. > postfix) will hand off mail to the dovecot LDA, deliver. Your log file > shows only activity about an IMAP login. This has no use in debugging > your problem. > > 1. Check your MTA config and see if it calls deliver > 2. Send yourself a mail > 3. Check MTA logs and see if handing the mail to deliver works as > intended > 4. Check dovecot logs for activity from deliver. Were using sendmail as the MTA. I have edited sendmail.cf as documented at http://wiki.dovecot.org/LDA/Sendmail. However this documentation states the following: "The following describes how to configure Sendmail to use deliver where root permission is not granted and Dovecot runs under a single user ID. It may need some adjustment for more typical setups. Other assumptions are that Sendmail is configured for virtual hosting and that local-system mail delivery is not handled by deliver." Our sendmail setup is not configured for virtual hosting. Here is what I have put in sendmail.cf Mdovecot, P=/usr/libexec/dovecot/deliver, F=DFMPhnu9, S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, T=DNS/RFC822/X-Unix, A=deliver -d $u I restarted both sendmail and dovecot but still my test emails do not get processed by dovecot/dovecot-sieve. There is nothing in the dovecot or sendmail logs pointing to dovecot-sieve. All I want to do is discard mail depending on the subject. Any help appreciated, Many thanks Nick. __ Information from ESET NOD32 Antivirus, version of virus signature database 4812 (20100128) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] Cannot get dovecot-sieve to work
> -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Nick Lunt > Sent: 28 January 2010 08:50 > To: dovecot@dovecot.org > Subject: Re: [Dovecot] Cannot get dovecot-sieve to work > > > -Original Message- > > From: Tom Hendrikx [mailto:t...@whyscream.net] > > Sent: 27 January 2010 15:53 > > To: Nick Lunt; dovecot@dovecot.org > > Subject: Re: [Dovecot] Cannot get dovecot-sieve to work > > > > Your sieve file will be processed at delivery time, when the MTA > (f.i. > > postfix) will hand off mail to the dovecot LDA, deliver. Your log > file > > shows only activity about an IMAP login. This has no use in debugging > > your problem. > > > > 1. Check your MTA config and see if it calls deliver > > 2. Send yourself a mail > > 3. Check MTA logs and see if handing the mail to deliver works as > > intended > > 4. Check dovecot logs for activity from deliver. > > Were using sendmail as the MTA. > I have edited sendmail.cf as documented at > http://wiki.dovecot.org/LDA/Sendmail. However this documentation states > the following: > > "The following describes how to configure Sendmail to use deliver where > root permission is not granted and Dovecot runs under a single user ID. > It may need some adjustment for more typical setups. Other assumptions > are that Sendmail is configured for virtual hosting and that > local-system mail delivery is not handled by deliver." > > Our sendmail setup is not configured for virtual hosting. > > Here is what I have put in sendmail.cf > > Mdovecot, P=/usr/libexec/dovecot/deliver, F=DFMPhnu9, > S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, > T=DNS/RFC822/X-Unix, > A=deliver -d $u > > I restarted both sendmail and dovecot but still my test emails do not > get processed by dovecot/dovecot-sieve. There is nothing in the dovecot > or sendmail logs pointing to dovecot-sieve. > > All I want to do is discard mail depending on the subject. Right, I've ditched sendmail and were now running postfix. Here's my .dovecot.sieve require "fileinto"; if not header :contains "subject" "ORG:11" { fileinto "discard"; stop; } When I send a mail without "ORG:11" in the header, the mail goes into the discard folder, great. However when I send a mail with "ORG:11" in the header I get the following error: ==> /var/log/maillog <== Jan 28 12:36:26 psl-dev sendmail[16599]: o0SCaQAX016599: from=nickl, size=31, class=0, nrcpts=1, msgid=<201001281236.o0scaqax016...@psl-dev.patech-solutions.com>, relay=ni...@localhost Jan 28 12:36:26 psl-dev postfix/smtpd[16600]: connect from localhost.localdomain[127.0.0.1] Jan 28 12:36:26 psl-dev postfix/smtpd[16600]: B1BC9194D63: client=localhost.localdomain[127.0.0.1] Jan 28 12:36:26 psl-dev postfix/cleanup[16603]: B1BC9194D63: message-id=<201001281236.o0scaqax016...@psl-dev.patech-solutions.com> Jan 28 12:36:26 psl-dev postfix/qmgr[16096]: B1BC9194D63: from=, size=600, nrcpt=1 (queue active) Jan 28 12:36:26 psl-dev sendmail[16599]: o0SCaQAX016599: to=nickl, ctladdr=nickl (503/503), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30031, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as B1BC9194D63) Jan 28 12:36:26 psl-dev postfix/smtpd[16600]: disconnect from localhost.localdomain[127.0.0.1] Jan 28 12:36:26 psl-dev postfix/local[16604]: B1BC9194D63: to=, relay=local, delay=0.06, delays=0.05/0/0/0.01, dsn=4.3.0, status=deferred (temporary failure) ==> /var/log/dovecot.log <== Jan 28 12:36:26 deliver(nickl): Info: Loading modules from directory: /usr/lib/dovecot/lda Jan 28 12:36:26 deliver(nickl): Info: Module loaded: /usr/lib/dovecot/lda/lib90_sieve_plugin.so Jan 28 12:36:26 deliver(nickl): Info: mbox: data=/home/nickl/mail:INBOX=/var/mail/nickl Jan 28 12:36:26 deliver(nickl): Info: fs: root=/home/nickl/mail, index=, control=, inbox=/var/mail/nickl Jan 28 12:36:26 deliver(nickl): Info: sieve: using sieve path for user's script: /home/nickl/.dovecot.sieve Jan 28 12:36:26 deliver(nickl): Info: sieve: opening script /home/nickl/.dovecot.sieve Jan 28 12:36:26 deliver(nickl): Info: sieve: executing compiled script /home/nickl/.dovecot.sieve Jan 28 12:36:26 deliver(nickl): Error: file_dotlock_create(/var/mail/nickl) failed: Permission denied (euid=503(nickl) egid=503(nickl) missing +w perm: /var/mail) (set mail_privileged_group=mail) Jan 28 12:36:26 deliver(nickl): Error: sieve: msgid=<201001281236.o0scaqax016...@psl-dev.patech-solutions.com>: failed to store into mailbox 'INBOX': Internal error occurred. Refer to server log for
[Dovecot] failed to stat user's sieve script
Hi # dovecot --version 1.2.10 ==> /var/log/dovecot.log <== Jan 28 13:26:15 deliver(root): Info: Loading modules from directory: /usr/lib/dovecot/lda Jan 28 13:26:15 deliver(root): Info: Module loaded: /usr/lib/dovecot/lda/lib90_sieve_plugin.so Jan 28 13:26:15 deliver(root): Error: chdir(/root) failed: Permission denied Jan 28 13:26:15 deliver(root): Info: maildir: data=/root/Maildir Jan 28 13:26:15 deliver(root): Info: maildir++: root=/root/Maildir, index=, control=, inbox=/root/Maildir Jan 28 13:26:15 deliver(root): Error: sieve: failed to stat user's sieve script: stat(/root/.dovecot.sieve) failed: Permission denied (euid=99(nobody) egid=99(nobody) missing +x perm: /root) (using global script path in stead) Jan 28 13:26:15 deliver(root): Info: sieve: user has no valid personal script Jan 28 13:26:15 deliver(root): Info: sieve: no scripts to execute: reverting to default delivery. Jan 28 13:26:15 deliver(root): Error: stat(/root/Maildir) failed: Permission denied Jan 28 13:26:15 deliver(root): Info: Namespace : Using permissions from /root/Maildir: mode=0700 gid=-1 Jan 28 13:26:15 deliver(root): Error: stat(/root/Maildir/tmp) failed: Permission denied (euid=99(nobody) egid=99(nobody) missing +x perm: /root) Jan 28 13:26:15 deliver(root): Info: msgid=<201001281326.o0sdqfmo018...@psl-dev.patech-solutions.com>: save failed to INBOX: Internal error occurred. Refer to server log for more information. [2010-01-28 13:26:15] I cannot send email to the root user on the box. I can send email to other users on the box. Root user does not have a .dovecot.sieve. Dovecot created ~user/Maildir fine, but will not create /root/Maildir. Permissions on ~user directory: drwx-- 6 nickl nickl 4096 Jan 28 13:07 /home/nickl/ Permissions on /root directory: drwxr-x--- 20 root root 4096 Jan 28 13:24 /root/ Running dovecot with postfix, mailbox_command = /usr/libexec/dovecot/deliver . This is all running fine for the user but not for root. I don't want dovecot-sieve to work on root's emails anyway, just the users. Dovecot settings: # dovecot -n # 1.2.10: /etc/dovecot.conf # OS: Linux 2.6.18-128.el5 x86_64 Red Hat Enterprise Linux Server release 5.3 (Tikanga) log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot.log ssl: no login_dir: /var/run/dovecot/login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login mail_access_groups: mail mail_privileged_group: mail mail_location: maildir:~/Maildir mail_debug: yes mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib/dovecot/imap mail_plugin_dir(imap): /usr/lib/dovecot/imap mail_plugin_dir(pop3): /usr/lib/dovecot/pop3 lda: postmaster_address: r...@localhost mail_plugins: sieve auth default: debug: yes passdb: driver: pam userdb: driver: passwd plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/ log_path: /var/log/dovecot.log Any help appreciated, I only started using dovecot yesterday and it's a learning curve trying to get dovecot-sieve to work. Thanks Nick. __ Information from ESET NOD32 Antivirus, version of virus signature database 4813 (20100128) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] Cannot get dovecot-sieve to work
> -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Steffen Kaiser > Sent: 28 January 2010 11:47 > To: dovecot@dovecot.org > Cc: dovecot@dovecot.org > Subject: Re: [Dovecot] Cannot get dovecot-sieve to work > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Thu, 28 Jan 2010, Nick Lunt wrote: > > >> Here is what I have put in sendmail.cf > >> > >> Mdovecot, P=/usr/libexec/dovecot/deliver, F=DFMPhnu9, > >> S=EnvFromSMTP/HdrFromSMTP, R=EnvToSMTP/HdrFromSMTP, > >> T=DNS/RFC822/X-Unix, > >> A=deliver -d $u > > Did you configured mailertable to deliver the messages through the > "dovecot" mailer? > > I prefer: > dnl -f $g -- sender > dnl -d $u -- destination user account name > dnl -m $h -- mailbox to deliver to (+detail part of address) > dnl -n-- don't create new mailbox > FEATURE(`local_procmail', `/etc/mail/smrsh/dovecot-deliver', > `/etc/mail/smrsh/dovecot-deliver -e -f $g -d $u -m $h')dnl > MAILER_DEFINITIONS > MAILER(`local')dnl > MAILER(`smtp')dnl > > > Jan 28 12:36:26 deliver(nickl): Error: > > file_dotlock_create(/var/mail/nickl) failed: Permission denied > > (euid=503(nickl) egid=503(nickl) missing +w perm: /var/mail) (set > ^ > > mail_privileged_group=mail) > > > > Here are the permissions on /var/mail/ > > # ls -ld /var/spool/mail > > drwxrwxr-x 2 root mail 4096 Jan 28 11:02 /var/spool/mail > > > > > mail_access_groups: mail > > mail_privileged_group: mail > > Won't work with deliver, maybe only if it is SUID. > > = > > If Dovecot is the only process accessing /var/mail/file, you could: > > a) use another location for INBOX, > b) use flock. Hi Steffan thank you for the pointers, however I have decided to move over to postfix. I have sent a message with a new error to the list. Thanks Nick __ Information from ESET NOD32 Antivirus, version of virus signature database 4813 (20100128) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] failed to stat user's sieve script
> -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Steffen Kaiser > Sent: 28 January 2010 12:40 > To: dovecot@dovecot.org > Cc: dovecot@dovecot.org > Subject: Re: [Dovecot] failed to stat user's sieve script > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Thu, 28 Jan 2010, Nick Lunt wrote: > > > Jan 28 13:26:15 deliver(root): Error: stat(/root/Maildir/tmp) failed: > > Permission denied (euid=99(nobody) egid=99(nobody) missing +x perm: > > /root) > > > I cannot send email to the root user on the box. > > IMHO, neither deliver nor Dovecot chown to root (well, do not chown). > > Regards, > > - -- > Steffen Kaiser Hi Steffan any idea how I fix this problem then ? My setup is very basic but thing's are not working. Obviously I'm doing something wrong, but what ? Thanks Nick. __ Information from ESET NOD32 Antivirus, version of virus signature database 4813 (20100128) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com
Re: [Dovecot] failed to stat user's sieve script
> -Original Message- > From: dovecot-bounces+nick.lunt=patech-solutions@dovecot.org > [mailto:dovecot-bounces+nick.lunt=patech-solutions@dovecot.org] On > Behalf Of Anton Dollmaier > Sent: 28 January 2010 13:13 > To: dovecot@dovecot.org > Subject: Re: [Dovecot] failed to stat user's sieve script > > Hi, > > > Jan 28 13:26:15 deliver(root): Error: chdir(/root) failed: Permission > > denied > > dovecot cannot store mails to /root, use an alias in your MTA to > redirect mails to another user. Hi Anton that's done the trick, thanks very much. Nick. __ Information from ESET NOD32 Antivirus, version of virus signature database 4813 (20100128) __ The message was checked by ESET NOD32 Antivirus. http://www.eset.com