[Dovecot] deliver and root user

Bradlee Landis bradleelandis at gmail.com
Mon Jul 12 22:03:08 EEST 2010


On Mon, Jul 12, 2010 at 1:56 PM, Bradlee Landis <bradleelandis at gmail.com> wrote:
> On RHEL5, dovecot 1.0.7, I have set up sendmail to use `deliver` for
> my local mda. It keeps giving me this error for the root user though:
>
> Jul 12 12:51:29 mail sendmail[4105]: o699225f001348:
> to=<root at localhost.localdomain>, ctladdr=<root at localhost.localdomain>
> (0/0), delay=3+08:49:26, xdelay=00:00:00, mailer=local, pri=7502879,
> dsn=4.0.0, stat=Deferred: local mailer (/usr/libexec/dovecot/deliver)
> exited with EX_TEMPFAIL
>
> I've tried to `chmod +s /usr/libexec/dovecot/deliver`, which I read
> might fix some of those issues, but it didn't.
>
> Anyways, here are the important changes I made in my config files for
> using `deliver`:
>
> == sendmail.mc ==
> ...
> dnl ## Should I modify this??
> define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
> ...
> dnl ## Should I have "localhost.localdomain" here? It currently is not.
> LOCAL_DOMAIN(`mydomain.com')
> ...
> FEATURE(`local_procmail',
> `/usr/libexec/dovecot/deliver',`/usr/libexec/dovecot/deliver -d $u')
> MODIFY_MAILER_FLAGS(`LOCAL', `-f')
> ...
> MAILER(smtp)
> MAILER(procmail)
> MAILER(local)
> == END ==
>
> == dovecot.conf ==
> ...
> protocol lda {
>   postmaster_address = postmaster at mydomain.com
>   hostname = mydomain.com
> }
> == END ==
>

Oh, I guess I should include this:

Jul 12 13:53:52 mail deliver(root): userdb(root) returned 0 as uid
Jul 12 13:53:52 mail deliver(root): userdb(root) returned 0 as gid
Jul 12 13:53:52 mail deliver(root): userdb(root) didn't return uid

And we have the logging turned up, so here is more information:

Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   0: fl=0x0,
mode=20666: CHR: dev=0/17, ino=1637, nlink=1, u/gid=0/0, size=0
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   1: fl=0x1,
mode=20666: CHR: dev=0/17, ino=1637, nlink=1, u/gid=0/0, size=0
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   2: fl=0x1,
mode=20666: CHR: dev=0/17, ino=1637, nlink=1, u/gid=0/0, size=0
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   3: fl=0x2,
mode=140777: SOCK localhost->[[UNIX: /dev/log]]
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   4: fl=0x2,
mode=100600: dev=8/1, ino=1633942, nlink=1, u/gid=0/51, size=1075
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   5: fl=0x0,
mode=100600: dev=8/1, ino=1634639, nlink=1, u/gid=0/51, size=720
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   6: fl=0x8000,
mode=100640: dev=8/1, ino=1569144, nlink=1, u/gid=0/0, size=12288
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   7: fl=0x8000,
mode=100640: dev=8/1, ino=1569144, nlink=1, u/gid=0/0, size=12288
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   8: fl=0x8000,
mode=100640: dev=8/1, ino=1569143, nlink=1, u/gid=0/51, size=12288
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:   9: fl=0x8000,
mode=100640: dev=8/1, ino=1569143, nlink=1, u/gid=0/51, size=12288
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:  11: fl=0x1,
mode=10600: FIFO: dev=0/6, ino=17279, nlink=1, u/gid=0/51, size=0
Jul 12 13:53:52 mail sendmail[4710]: o699mBRP001608:  12: fl=0x0,
mode=10600: FIFO: dev=0/6, ino=17280, nlink=1, u/gid=0/51, size=0

-- 
Thanks,
Brad Landis


More information about the dovecot mailing list