[Dovecot] deliver and root user
Arne K. Haaje
arne at drlinux.no
Mon Jul 12 22:37:03 EEST 2010
Mandag 12. juli 2010 20.56.52 skrev Bradlee Landis :
> 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 ==
>
> Any ideas, or do you need more information?
Hi,
Just a thought, but do you really want mail for root to be handled directly?
You can alias it in /etc/aliases or similar like this;
root: bradleelandis at gmail.com
Then run the command "newaliases" to update alias table. I've not used
sendmail for years, but that's how I'd do it for postfix.
Regards,
Arne
--
--------------------------------
Arne K. Haaje | www.drlinux.no
T: 69 51 15 52 | M: 92 88 44 66
--------------------------------
More information about the dovecot
mailing list