2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Mailloop ?
FromSent OnAttachments
Bart DuchesneAug 6, 2003 1:50 am 
Alain NAKACHEAug 6, 2003 2:15 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:Re: [maildropl] Mailloop ?Actions...
From:Alain NAKACHE (ala@cal.fr)
Date:Aug 6, 2003 2:15:43 am
List:net.sourceforge.lists.courier-maildrop

At 10:50 06/08/03 +0200, Bart Duchesne wrote:

Hi,

I have a mailloop problem and I think someone out there can point me in a direction to solve it.

We have sendmail configured to use maildrop as its local delivery agent. For every user I have a .mailfilter file that looks like this

SHELL=/bin/bash SENDMAIL="/ub/bin/sendmail -i -f this@thisdomain.be" cc "!us@otherdomain.be" to ./Maildir

this@thisdomain.be is the actual user for which this script is generated (thisdomain.be is a real accessible domain)

Now when a mail arrives for this@thisdomain.be, the above script is executed; the forward is tried and the mail is delivered; so far so good. Now us@otherdomain.be doesn't exist (or the mailbox is full) , anyway an error is generated by the mailserver (for otherdomain.be) and the message returns to this@thisdomain.be; again the filter is executed and there we go again.

Bounced mail have a MAIL FROM: empty (take a look at the RFC2821 : SMTP protocol RFC). So you have to test it and do not forward if it is empty.

Is there any provision is maildrop to prevent such loops or do I have to do it myself (adding extra headers and debugging alot). It doesn't seem like a problem that I have alone. Have I wrong configured something ?

thanks for any advice/tips/hints.

regards