We implemented this in our postfix/dbmail-setup this way
You can do this also with config-files but i never setup
any server without mysql-backends

transport_maps = mysql:/etc/postfix/mysql-transport.cf

cat /etc/postfix/mysql-transport.cf
user          = dbmailro
password      = ****
dbname        = dbmail
hosts         = unix:/var/lib/mysql/mysql.sock
query         = select transport from dbma_transports where mydestination='%s' 
or mydestination='%d' order by
transport desc limit 1;

on the left side "mydestination" is the address/domain
and on the right sude "transport" smtp:hostname.domain.tld

Am 24.02.2011 10:26, schrieb Jonathan Tripathy:
> Hi Everyone,
> 
> I have a postfix box which handles some smtp accounts for example.com. Not 
> all example.com accounts are located on
> this postfix box, but are located elsewhere on another server.
> 
> At the minute, for the accounts which aren’t on this server, postfix is 
> saying "user unknown in virtual mailbox
> table" (which is to be expected). However, how do I make postfix go to 
> another server, if at first the account
> isn't on this server?
> 
> Thanks

-- 

Mit besten Grüßen, Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / software-development / cms-solutions
p: +43 (1) 595 3999 33, m: +43 (676) 40 221 40
icq: 154546673, http://www.thelounge.net/

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to