2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Re: Maildrop exit with te...
FromSent OnAttachments
Matthew ReimerMar 28, 2005 10:35 am 
Jean DeramMar 29, 2005 4:17 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:[maildropl] Re: Maildrop exit with tempfail?Actions...
From:Matthew Reimer (mrei@vpop.net)
Date:Mar 28, 2005 10:35:30 am
List:net.sourceforge.lists.courier-maildrop

Hi all,

I use postfix and maildrop 1.8.0 with courier-authlib-0.54 with authmysql.

Would it be possible to make maildrop return a tempfail (exit 75) when mysql server is down? Actually if mysql not reponding postfix will return a MAILER DAEMON. It would be better that postfix deferred the mail and retry later.

Thank"s for helping.

Jean Deram

I needed this too, so I made the following patch to maildrop/main.C.

This is a crucial patch to make maildrop robust in the face of authdaemond failures. Can someone commit this?

Matt

--- main.C Tue Mar 22 17:42:19 2005 +++ main.C.new Tue Mar 22 17:40:02 2005 @@ -322,7 +322,14 @@ int rc=auth_getuserinfo("login", user, callback_authlib, maildrop);

- return rc == 0 ? 1:0; + if (rc == 0) + return 1; + else if (rc < 0) + return 0; + else if (rc > 0) { + errexit=EX_TEMPFAIL; + throw "Temporary authlib failure."; + } } #else int find_in_authlib(Maildrop *maildrop, const char* user)