Front page | perl.qpsmtpd |
Postings from April 2012
From: Michael Papet
April 7, 2012 09:43
Message ID: 1333817012.93196.YahooMailClassic@web125405.mail.ne1.yahoo.com
I want to write a queue plugin that routes mail depending on the user-side of the address. The decision to deliver locally or forward is no problem. It's just a look up in a table. If the look up returns the forward result, then I'd like to put the email into the smtp-forwarding queue. If the lookup returns local delivery, then it goes into the MailDir queue.
Is there an elegant way to chain queue plugins together this way?
My first guess is to modify the needed queue plugins and turn them into subroutines or maybe even functions. If anyone has any more elegant ideas where I don't have to edit the existing queue plugins, please let me know.
I'm an amateur Perl hacker, so messing around with code written by a very likely better programmer seems suboptimal to me.
Thanks in advance,
by Michael Papet