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@localhost.localdomain, ctladdr=root@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@mydomain.com hostname = mydomain.com } == END ==
Any ideas, or do you need more information?
-- Thanks, Brad Landis
On Mon, Jul 12, 2010 at 1:56 PM, Bradlee Landis bradleelandis@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@localhost.localdomain, ctladdr=root@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@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
Timo Sirainen tss@iki.fi wrote:
On Mon, 2010-07-12 at 13:56 -0500, Bradlee Landis 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:Don't deliver mails to root. Forward them to some other user.
Standard recommendation (for sendmail and other MTA) is to create alias for root.
Sendmail procedure: In /etc/mail/asises files add:
root: some-non-privileged-user
and run newaliases command to recompile aliases file.
-- [pl>en: Andrew] Andrzej Adam Filip : anfi@onet.eu "I'm not afraid of dying, I just don't want to be there when it happens." -- Woody Allen
On Mon, Jul 12, 2010 at 2:39 PM, Andrzej Adam Filip anfi@onet.eu wrote:
Timo Sirainen tss@iki.fi wrote:
On Mon, 2010-07-12 at 13:56 -0500, Bradlee Landis 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:Don't deliver mails to root. Forward them to some other user.
Standard recommendation (for sendmail and other MTA) is to create alias for root.
Sendmail procedure: In /etc/mail/asises files add:
root: some-non-privileged-user
and run newaliases command to recompile aliases file.
Hm, ok, but it worked with procmail. Since we never used to check it anyways, I might just send it to /dev/null :)
(P.S. Sorry arnaj for sending you the email to you directly before... they should fix the mailing list to do this automatically IMO.)
-- Thanks, Brad Landis
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@localhost.localdomain, ctladdr=root@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@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@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
participants (4)
-
Andrzej Adam Filip
-
Arne K. Haaje
-
Bradlee Landis
-
Timo Sirainen