[Dovecot] auth-master: Permission denied [sigh]

James Butler jbutler at thebestdefense.com
Wed Apr 15 02:09:00 EEST 2009


Well bust my buttons! Thanks, Timo! FUNCTIONING! Let Postfix figure out
the proper user. BTW, my 'deliver' is set to 755. Nothing special.

> I'm not all that good with Postfix configuration, but:

Clearly quite good enough.

> On Tue, 2009-04-14 at 13:05 -0700, James Butler wrote:
>> ## POSTFIX CONFIG ##
>>
>> /etc/postfix/main.cf:
>>
>> mailbox_transport = spamassassin
>
> Remove this.

Right ... don't bother sending to the custom Postfix transport, below.

>> /etc/postfix/master.cf:
>>
>> spamassassin unix - n n - - pipe
>>   user=spam:dovecot argv=/usr/bin/spamc -f -e
>>   /usr/libexec/dovecot/deliver  -f ${sender} -d ${user} -m ${extension}
>
> Remove this (JB: CUSTOM TRANSPORT) and add to main.cf:
>
> mailbox_command = /usr/bin/spamc -f -e /usr/libexec/dovecot/deliver

Et voila. Once the SELinux policies were adjusted to allow Postfix to run
spamc, we're off and running!

Here is my current setup that's WORKING:

Mail => Postfix => spamc | deliver => INBOX

/etc/postfix/main.cf:
mailbox_command = /usr/bin/spamc -f -e /usr/libexec/dovecot/deliver

/etc/postfix/master.cf:
[no changes to default]

/usr/local/etc/dovecot.conf:

socket listen {
 master {
  path = /var/run/dovecot/auth-master
  # Fairly permissive mode ... might be unnecessary
  mode = 0666
  # Default user (root)
# user =
  # Group with access to /var/run/dovecot ... might be unnecessary
  group = dovecot
 }
 client {
  path = /var/run/dovecot/auth-client
  # Permissive mode ... might be unnecessary
  mode = 0666
  # Default user (root)
# user =
  # Group with access to /var/run/dovecot ... might be unnecessary
  group = dovecot
 }
}

If anyone wants a copy of my SELinux local_postfix.te and instructions for
using it, I'll happily post them.

The "might be unnecessary" items above I just left as they were because
the setup is working and I really don't want to futz with it any further,
today. I'll probably test different settings in dovecot.conf over the next
couple of days, and if something changes, I'll post back under this
thread.

Thank you all so much for your time and effort in helping me solve this
problem.

James

(Merry Christmas, Noel!)



More information about the dovecot mailing list