[Dovecot] postfix, dovecot, sasl deliver error
Hi,
I am receiving an error when trying to send mail. I am using FreeBSD 6 and dovecot 1.0.alpha5 and postfix 2.3-20051223 which includes the dovecot sasl patch.
I am getting:
Dec 26 17:26:45 example postfix/pipe[612]: DC90D5C30: to=<tep@example.com>, relay=dovecot, delay=14, delays=14/0.05/0/0.08, dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
This is from dovecot.conf:
auth default_with_listener { mechanisms = plain passdb passwd-file { args = /usr/local/etc/dovecot/passwd } userdb passwd-file { args = /usr/local/etc/dovecot/users }
socket listen { master { path = /var/run/dovecot/auth-master # # WARNING: Giving untrusted users access to master socket may be a # # security risk, don't give too wide permissions to it! mode = 0666 # # Default user/group is the one who started dovecot-auth (root) user = virtual group = virtual } client { path = /var/spool/postfix/private/auth mode = 0666 } } }
and from dovecot-deliver.conf:
# UNIX socket path to master authentication server to find users. auth_socket_path = /var/run/dovecot/auth-master
From postfix master.cf:
# Dovecot LDA dovecot unix - n n - - pipe flags=DRhu user=virtual:virtual argv=/usr/local/libexec/dovecot/deliver -d ${recipient}
from postfix main.cf:
virtual_mailbox_domains = /usr/local/etc/postfix/vhosts.txt virtual_mailbox_base = /usr/local/var/spool/vmail virtual_mailbox_maps = hash:/usr/local/etc/postfix/vmaps.txt virtual_uid_maps = static:1003 virtual_gid_maps = static:1003 virtual_alias_maps = hash:/usr/local/etc/postfix/valias.txt dovecot_destination_recipient_limit = 1 virtual_transport = dovecot
smtpd_sasl_auth_enable = yes smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination smtpd_sasl_authenticated_header = yes broken_sasl_auth_clients = yes smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth
On 27.12.2005, at 01:43, Tracy Phillips wrote:
socket listen { master { path = /var/run/dovecot/auth-master
This defaults to /var/run/dovecot-auth-master nowadays
# UNIX socket path to master authentication server to find users. auth_socket_path = /var/run/dovecot/auth-master
Then this isn't needed, and also then it works. :) The problem is that only root has access to /var/run/dovecot directory.
Timo Sirainen wrote:
Then this isn't needed, and also then it works. :) The problem is that only root has access to /var/run/dovecot directory.
I just realized that I didn't reply to the mailing list...
Timo,
Thanks for the pointer... I have been configuring this this everywhich way but loose :)
I made the changes and now I have nothing in any of my configs that point to /var/run/dovecot/auth-master and I still get the same error, even after rebooting the server.
Dec 26 17:55:12 example postfix/pipe[585]: E2F855C32: to=<tep@example.com>, relay=dovecot, delay=13, delays=12/0.05/0/0.09, dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
I have read the wiki and searched the mail archives with no luck yet. Could it be something in the postfix build?
Thanks again,
Tracy
Tracy Phillips wrote:
Dec 26 17:55:12 example postfix/pipe[585]: E2F855C32: to=<tep@example.com>, relay=dovecot, delay=13, delays=12/0.05/0/0.09, dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
I have read the wiki and searched the mail archives with no luck yet. Could it be something in the postfix build?
Ok, I am convinced that this has to be something in the FreeBSD build of dovecot or postfix. I just reinstalled everything (including the OS) from scratch and I get the exact same error:
Dec 28 14:56:16 example postfix/pipe[840]: 5DF185C3E: to=<tep@example.com>, relay=dovecot, delay=24, delays=24/0.05/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
Just for good measure, I looked in my config files yet again for the path "/var/run/dovecot/auth-master" and it is nowhere to be found. The only thing I have that is even close is the default "/var/run/dovecot-auth-master".
Any ideas? Or am I just loosing it :)
Tracy
On 28.12.2005, at 23:28, Tracy Phillips wrote:
Dec 28 14:56:16 example postfix/pipe[840]: 5DF185C3E: to=<tep@example.com>, relay=dovecot, delay=24, delays=24/0.05/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
Just for good measure, I looked in my config files yet again for the path "/var/run/dovecot/auth-master" and it is nowhere to be found. The only thing I have that is even close is the default "/var/run/dovecot-auth-master".
If it's not in any config files, it's in dovecot-lda's sources as the default path. I've already changed the default to /var/run/dovecot-auth-master so maybe you have some older sources? How do you install it?
Timo Sirainen wrote:
If it's not in any config files, it's in dovecot-lda's sources as the default path. I've already changed the default to /var/run/dovecot-auth-master so maybe you have some older sources? How do you install it?
Ahhh... that could be my problem. I just compiled dovecot that comes with FreeBSD, I didn't know I had to d/l dovecot-lda in addition to dovecot.
Tracy
On 29.12.2005, at 01:48, Tracy Phillips wrote:
If it's not in any config files, it's in dovecot-lda's sources as
Timo Sirainen wrote: the
default path. I've already changed the default to /var/run/dovecot-auth-master so maybe you have some older sources? How do you install it?
Ahhh... that could be my problem. I just compiled dovecot that comes with FreeBSD, I didn't know I had to d/l dovecot-lda in addition to dovecot.
Oh. I keep forgetting there's also a deliver program included in Dovecot package. I should start merging it with dovecot-lda..
Timo Sirainen wrote:
Oh. I keep forgetting there's also a deliver program included in Dovecot package. I should start merging it with dovecot-lda..
Timo,
What is configure looking for, is that where I have dovecot installed or is that the dovecot sources (which is what it looks like to me).
./configure --with-dovecot=../dovecot
Thanks for your patience.
Tracy
Tracy Phillips wrote:
dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
RTFWiki:
http://wiki.dovecot.org/moin.cgi/LDA#head-80d10da5bfd6056044c7e1bcf67ba4bd53...
On 27.12.2005, at 01:55, Jakob Hirsch wrote:
Tracy Phillips wrote:
dsn=4.3.0, status=deferred (temporary failure. Command output: Error: net_connect(/var/run/dovecot/auth-master) failed: Permission denied )
RTFWiki:
http://wiki.dovecot.org/moin.cgi/LDA#head -80d10da5bfd6056044c7e1bcf67ba4bd5304c752
Hmm. I'll go and change that so it doesn't even mention the "wrong way"
anymore..
participants (3)
-
Jakob Hirsch
-
Timo Sirainen
-
Tracy Phillips