[Novalug] Postfix Question
Mike Shade
mshade at mshade.org
Wed Apr 2 15:56:24 EDT 2008
Matthew,
You'll probably want to go with option 2, but use a MySQL backend to hold
your info. Check out this for the bare essentials, and do some googling
around how to manipulate what you need to change frequently.
http://www.smartcgi.com/docs/postfix/howto/postfix-mysql.html
Also maybe check out Postfix.Admin, a web front end, to see how they do it.
I realize you'll want to do this programmatically, but their admin panel
might give you some good ideas of how to structure your implementation.
-- Mike
On Wed, Apr 2, 2008 at 3:43 PM, matthew wollenweber <mwollenweber at gmail.com>
wrote:
> Hello,
>
> I'm writing a custom email service that needs to forward emails. The
> forwarding rules change quite often. At present I have two strategies that
> I'm considering:
>
> 1. Connect to the mail server, grab the messages, and forward them.
> 2. Update the postfix virtual table and let postfix do the work
>
>
> With 1. I'm afraid I'll improperly parse a message and get all screwed up.
> With 2, I have to do a lot of updates to the virtual table -- say once every
> 5 to 15 minutes. In that case, do I need to worry about postfix not being
> able to read the file and missing/dropping emails?
>
> Thanks for any help. Any thoughts would be appreciated.
>
> --
> Matthew Wollenweber
> mwollenweber at gmail.com | mjw at cyberwart.com
> www.cyberwart.com
> _______________________________________________
> Novalug mailing list
> Novalug at calypso.tux.org
> http://calypso.tux.org/cgi-bin/mailman/listinfo/novalug
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://calypso.tux.org/pipermail/novalug/attachments/20080402/ba64a074/attachment.htm
More information about the Novalug
mailing list