[Dovecot] Dovecot as LDA
FreeBSD 6.1-RELEASE-p8 postfix-current-2.4.20060903,3 dovecot-1.0.r7
I am experiencing a problem with dovecot as an LDA. It will not deliver mail unless the mail directory is chmod'd to 1777. Below is an example of the log file output.
The dovecot.log file had over a hundred entries similar to this:
deliver(gerard): Error: open(/var/mail/.temp.scorpio.seibercom.net.1123.cd38cd4d82e1368f) failed: Permission denied deliver(gerard): Error: file_lock_dotlock() failed with mbox file /var/mail/gerard: Permission denied
Obviously the /var/log/maillog had similar fail warnings.
By changing the permission to 1777 on the /var/mail directory and running postsuper -r ALL, I was able to get the mail delivered.
What I am trying to determine is if I really should have those settings on the directory, or if I have something configured wrong in either postfix or dovecot. Postfix will deliver mail without any problem so I think it has to do with dovecot although I am not sure what.
-- Gerard
Gerard Seibert wrote:
FreeBSD 6.1-RELEASE-p8 postfix-current-2.4.20060903,3 dovecot-1.0.r7
FYI: Make you either have the latest version of the dovecot port, dovecot 1.0.r7_2 or build without kqueue support as there was a bug which could be quite nasty:
http://www.freebsd.org/cgi/getmsg.cgi?fetch=97492+0+/usr/local/www/db/text/2...
I am experiencing a problem with dovecot as an LDA. It will not deliver mail unless the mail directory is chmod'd to 1777. Below is an example of the log file output.
The dovecot.log file had over a hundred entries similar to this:
deliver(gerard): Error: open(/var/mail/.temp.scorpio.seibercom.net.1123.cd38cd4d82e1368f) failed: Permission denied deliver(gerard): Error: file_lock_dotlock() failed with mbox file /var/mail/gerard: Permission denied
Is there a reason you are using dotlocking instead of another locking method? If not set the lock_method to something else and try that.
Obviously the /var/log/maillog had similar fail warnings.
By changing the permission to 1777 on the /var/mail directory and running postsuper -r ALL, I was able to get the mail delivered.
What I am trying to determine is if I really should have those settings on the directory, or if I have something configured wrong in either postfix or dovecot. Postfix will deliver mail without any problem so I think it has to do with dovecot although I am not sure what.
Dominic
Dominic Marks wrote:
FYI: Make you either have the latest version of the dovecot port, dovecot 1.0.r7_2 or build without kqueue support as there was a bug which could be quite nasty:
Highly unlikely that, that would have any bearing on this. Another poster has all ready confirmed that they have experienced the same phenomena.
-- Gerard
To many times we confuse motion with progress.
Cyclops
Gerard Seibert wrote:
Dominic Marks wrote:
FYI: Make you either have the latest version of the dovecot port, dovecot 1.0.r7_2 or build without kqueue support as there was a bug which could be quite nasty:
Highly unlikely that, that would have any bearing on this. Another poster has all ready confirmed that they have experienced the same phenomena.
Not sure what you mean. I wasn't suggesting that this was related to your locking problem. Did you try another lock_method?
Thanks, Dominic
* On 02/10/06 10:17 -0400, Gerard Seibert wrote: | FreeBSD 6.1-RELEASE-p8 | postfix-current-2.4.20060903,3 | dovecot-1.0.r7 | | I am experiencing a problem with dovecot as an LDA. It will not deliver | mail unless the mail directory is chmod'd to 1777. Below is an example | of the log file output. | | The dovecot.log file had over a hundred entries similar to this: | | deliver(gerard): Error: | open(/var/mail/.temp.scorpio.seibercom.net.1123.cd38cd4d82e1368f) failed: | Permission denied | deliver(gerard): Error: file_lock_dotlock() failed with mbox | file /var/mail/gerard: Permission denied | | Obviously the /var/log/maillog had similar fail warnings. | | By changing the permission to 1777 on the /var/mail directory and | running postsuper -r ALL, I was able to get the mail delivered. | | What I am trying to determine is if I really should have those settings | on the directory, or if I have something configured wrong in either | postfix or dovecot. Postfix will deliver mail without any problem so I | think it has to do with dovecot although I am not sure what. Not answering you about dovecot LDA, but about delivery to mboxes file in /var/mail/$user. Long time ago when I used mbox files (same OS (not version), same path), /var/mail always had to be mode 1777 to set the sticky bit. -Wash http://www.netmeister.org/news/learn2quote.html DISCLAIMER: See http://www.wananchi.com/bms/terms.php -- +======================================================================+ |\ _,,,---,,_ | Odhiambo Washington <wash@wananchi.com> Zzz /,`.-'`' -. ;-;;,_ | Wananchi Online Ltd. www.wananchi.com |,4- ) )-,_. ,\ ( `'-'| Tel: +254 20 313985-9 +254 20 313922 '---''(_/--' `-'\_) | GSM: +254 722 743223 +254 733 744121 +======================================================================+ Today's scientific question is: What in the world is electricity? And where does it go after it leaves the toaster? -- Dave Barry, "What is Electricity?"
participants (3)
-
Dominic Marks
-
Gerard Seibert
-
Odhiambo WASHINGTON