On 24/02/11 09:42, Reindl Harald wrote:
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
I am using mysql for the virtual mailbox stuff as well. Except for the
transport maps which I'm just using a regular config file.
I tried adding:
example.com smtp:mx.example.com
However it still complains that the user is unknown in the virtual
mailbox table...
I guess I could do this another way, as a temp solution. I could remove
example.com from the local postfix and create another domain such as
example.local. I could then remove reject_sender_login_mismatch which
would allow all authenticated users to send emails as anybody....