=> Bounce messages rules by subject

Questions about phpList features (the answer is probably 'Yes!')
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

=> Bounce messages rules by subject

Postby gavias » 10:10pm, Mon 03 Dec, 2012

How its possible to create a rule for bounce messages, to control it by the subject line. For instance:

subject: undeliverable

and apply a rule, for this messages.
gavias
phpList newbie
 
Posts: 2
Joined: 9:55pm, Mon 03 Dec, 2012

Re: => Bounce messages rules by subject

Postby duncanc » 8:47pm, Wed 05 Dec, 2012

It is not possible without modifying the phplist code. But I'm surprised that the subject provides diferent information to the body of the message.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: => Bounce messages rules by subject

Postby gavias » 10:55am, Thu 06 Dec, 2012

duncanc wrote:It is not possible without modifying the phplist code. But I'm surprised that the subject provides diferent information to the body of the message.



I saw that we can get the desired result through the regular expressions. We have detected this expressions in our bounce messages:

554 Sorry, no mailbox here by that name
550 5.1.1 Recipient address rejected: User unknown in relay recipient table
550 A conta do destinatario nao existe
Sorry, I couldn't find any host named sacavol.com.pt
550-The account has been suspended for inactivity
550 A conta do destinatario encontra-se suspensa por inactividade (#5.2.1)
550 5.1.1 <jrdapena1@telefonica.net> recipient rejected
Sorry, I couldn't find any host named academiamontemuro.pt. (#5.1.2)
554 Sorry, no mailbox here by that name. (#5.1.1)
550 5.1.1 <carceluz@iol.pt>: Recipient address rejected: User unknown in relay recipient table
554 Sorry, no mailbox here by that name. (#5.1.1)
No Such User Here
550-The account does not exist
Sorry, I couldn't find any host named fitnessfactory.pt. (#5.1.2)
554 Sorry, no mailbox here by that name. (#5.1.1)
554 Sorry, no mailbox here by that name. (#5.1.1)
550 A conta do destinatario encontra-se suspensa (#5.1.1)
Sorry, I couldn't find any host named espacolocal.com. (#5.1.2)
550-The account has been suspended
Delivery to the following recipients failed.
550-The account has been suspended for inactivity
550-5.1.1 The email account that you tried to reach does not exist
does not like recipient
-------------------------------------------------

In the regular expressions if I write only the code 550, 554, etc. or (#5.1.2), (#5.1.1), will be enough or will be necessary to write for instance: 554 Sorry, no mailbox here by that name. (#5.1.1) ?

Thank you
gavias
phpList newbie
 
Posts: 2
Joined: 9:55pm, Mon 03 Dec, 2012

Re: => Bounce messages rules by subject

Postby duncanc » 8:49pm, Fri 07 Dec, 2012

The code might be sufficient, but if that value happened to occur in the body of your message then the bounce might be miscategorised. If you are confident that will not happen then use only the codes 550, 554 etc.

Also bear in mind that a code such as 550 can indicate an unknown email address but also a condition such as 'maibox full', so you might want to handle combinations of code + text differently:
- delete the user
- unconfirm the user
- blacklist the user
- ignore the bounce by deleting it
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London


Return to Does phpList do this?

Who is online

Users browsing this forum: No registered users and 2 guests