[twsocket] detecting circular mail

2008-04-20 Thread Wilfried Mestdagh
Hello, Can someone advice on how the best way to detect a circular mail? I have smtp server and the mailboxes are all GSM. Sms are sent to another smtp server who deliver it for email reader (pop3 or imap). When users send email the other smtp server delivers it to mine who send it then to the

Re: [twsocket] detecting circular mail

2008-04-20 Thread Francois PIETTE
Can someone advice on how the best way to detect a circular mail? Each SMTP server add a Received: header line in front of the mail. You can scan the list of such header lines to see if your server is already in the list. -- [EMAIL PROTECTED] The author of the freeware multi-tier middleware

Re: [twsocket] detecting circular mail

2008-04-20 Thread Wilfried Mestdagh
Hello Francois, Yes looks simple and very reliable. However what if I'm running on the same machine as the other one? I'm examing some mail headers and it looks some servers list also the HELO string, but not all. If they did it all then I could make an exclusive HELO string. --- Rgds, Wilfried

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
On Apr 20, 2008, at 04:31, Wilfried Mestdagh wrote: Can someone advice on how the best way to detect a circular mail? I have smtp server and the mailboxes are all GSM. Sms are sent to another smtp server who deliver it for email reader (pop3 or imap). When users send email the other smtp

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
On Apr 20, 2008, at 12:05, Wilfried Mestdagh wrote: Hello DZ-Jay, Plus, the RFC requires transport servers in transit to include all X headers untouched. So this also means if I add a X-Loop header that another server leave it untouched and add also his own X-Loop header (so there could

Re: [twsocket] detecting circular mail

2008-04-20 Thread DZ-Jay
On Apr 20, 2008, at 14:11, DZ-Jay wrote: I guess you can always check for multiple instances of the header and avoid delivering to any addresses in any of them (after all, any server who adds an X-Loop header is trying to make sure not to have the message re-delivered to that address). Or,