-----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.

Regards,

- -- Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iQEVAwUBS2F5LL+Vh58GPL/cAQKIewf/Ug9lYjHST2XRKN/tsdZGE9YUnKsM4HJb
5N9cYcYRCvfZ2jGmDRn8ED6LPPp2fzATLOe5nV9wo63s9p+x8+d3gV8Y3UTJVQys
lWDqOsBJgl7+AIdUKiPAF/Dt1Y05b8avC9kGmq54JFZcSzRK/PZhXTyuXp38o+HT
/FReiaWcjrynmswnw30OriLGLBlZL7ZnIQDEqvXhaJJD1uts4OuMVrkics7jkGbk
Lmcsf1jyFTpO9t9bPflduO9pK6mtgIsCGpfXE7k6/13uWtG3eiJsEk8picyteT1O
16JCpiyPXdcZBV+BYUgyOWjA7ifhnmSDj/wGLRWnXOm6CwSkwxrcXA==
=XxwE
-----END PGP SIGNATURE-----

Reply via email to