atodd
atodd

Reputation: 331

Perl mail message error handling

I'm trying to quickly process inbound messages through a postfix mail server. I need a way to log and classify bounced mails. I want to determine the error code from the message to tell if it was a mailbox full or host unknown. Is there a perl module that can parse the message and give me the error code?

Upvotes: 1

Views: 368

Answers (1)

draegtun
draegtun

Reputation: 22570

Have a look at Mail::DeliveryStatus::BounceParser

I haven't used it so can't vouch for it and there may other modules on CPAN which fit the bill.

However anything from Ricardo Signes especially when e-mail related often hits the spot.

/I3az/

PS. This was something that I was going to look up soon for $work. So good to get the early leg up!

Upvotes: 1

Related Questions