develooper Front page | perl.qpsmtpd | Postings from April 2012

Queue Routing?

Thread Next
From:
Michael Papet
Date:
April 7, 2012 09:43
Subject:
Queue Routing?
Message ID:
1333817012.93196.YahooMailClassic@web125405.mail.ne1.yahoo.com
Hi,

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,

mpapet


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About