No such thing as a small change | |
PerlMonks |
Re^2: Avoiding mail loopsby varian (Chaplain) |
on Jun 16, 2007 at 08:03 UTC ( [id://621568]=note: print w/replies, xml ) | Need Help?? |
Using the Received field can lead to false positives when one uses multiple MTA's within the same domain.
The proper method is to add a custom header to the email and for incoming emails detect if that particular header is present (if so, then you have a loop condition). Custom header names should start with 'X-' so as not to conflict with predefined names, e.g.
In Section
Seekers of Perl Wisdom
|
|