[Mimedefang] Detect mail loops in mimedefang ?
David F. Skoll
dfs at roaringpenguin.com
Thu Jul 28 08:47:43 EDT 2005
Florian Meister wrote:
> I had a mail-looping problem last week and now I want to implement
> something to detect such loops and drop the looping mail if it's looping
> more than x times.
Sendmail has that capability built-in; why do you need MIMEDefang to do it?
> First I wanted to check the Received: lines and count every line where
> one of our mailrelays is in. If the count reaches a specific value drop
> the mail. The Problem is, that the Received-lines are written new if the
> message is bounced.
You can count the number of Received: lines in the ./HEADERS file.
Or you can have MIMEDefang add a magic header to all mail, and reject
mail if one comes in with the magic header already present.
More information about the MIMEDefang