oldbloke: (Default)
Add MemoryShare This Entry
posted by [personal profile] oldbloke at 12:44pm on 26/09/2006
I have a script that runs every 6 minutes, pop3's to a mail server, grabs all the waiting mail for a certain user, does various checks on the headers and body and sends one of a variety of replies depending on what it found.

Now, most spam gets a reply mentioning that the Subject didn't include the required phrase, and that's the end of it.

But at about 23:00 last night, postmaster@namdeletedtoprotectthenumpty sent an Undeliverable response to one of those.

Of course, the script sent a Bad Subject response to that, and guess what?

postmaster@ is Undeliverable too.

So they've been pingponging mails every 6 minutes since. I suppose I ought to break the cycle at some point. Next week maybe.

It irks me somewhat that I can get mail from postmaster@ but not reply to postmaster@, though.
I may do a lookup and find out somebody I can moan at.
There are 4 comments on this entry. (Reply.)
 
posted by [identity profile] geekette8.livejournal.com at 12:20pm on 26/09/2006
I think it's in the RFCs that postmaster@ and a few others should be supported, isn't it? So you would be quite within your rights to moan.
 
posted by [identity profile] caramel-betty.livejournal.com at 12:54pm on 26/09/2006
Since you're effectively bouncing the mails as undeliverable yourself, shouldn't you really be using a null return path to prevent stupidities from vacation messages, other bouncers, and such?
 
posted by [identity profile] oldbloke.livejournal.com at 12:57pm on 26/09/2006
Good idea. It was a quick&dirty lash-up that got into production somehow...

 
posted by [identity profile] oldbloke.livejournal.com at 06:24am on 28/09/2006
With limited time to look at what can and can't be done with Perl's Mail::SMTP module, I settled for adding a line of code that just deletes anything from postmaster@anywhere. All actual replies the script sends have a Reply-To that points away from the address serviced by the script anyway.

May

SunMonTueWedThuFriSat
        1
 
2
 
3
 
4
 
5
 
6
 
7
 
8
 
9
 
10
 
11
 
12
 
13
 
14
 
15
 
16
 
17
 
18
 
19
 
20
 
21
 
22
 
23
 
24
 
25
 
26
 
27
 
28
 
29 30
 
31