postfix-users October 2010 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: "virtual pipe" (i.e. in SQL database)?

"virtual pipe" (i.e. in SQL database)?

From: Tomasz Chmielewski <mangoo_at_nospam>
Date: Wed Oct 27 2010 - 17:58:40 GMT
To: Postfix users <postfix-users@postfix.org>

So far, I've been managing virtual users in a database. Works great, allows you lot of flexibility.

However, this is not the case with pipes for virtual users.

To add pipes for virtual users, I've been doing the below configuration:

master.cf:
mypipe unix - n n - - pipe flags=O user=someuser:someuser argv=/shared/scripts/mypipe.sh $recipient
otherpipe unix - n n - - pipe flags=O user=otheruser:otheruser argv=/shared/scripts/otherpipe.sh $recipient

main.cf:
transport_maps = hash:/etc/postfix/transport, hash:/shared/etc/postfix/pipes

/shared/etc/postfix/pipes:
test@example.com mypipe:
other@new.example.com otherpipe:

It works OK, but I'd rather keep it in MySQL only, or, have it somehow without having to edit master.cf each time.

Is it possible?

-- Tomasz Chmielewski http://wpkg.org