Am 24.02.2011 10:54, schrieb Jonathan Tripathy:
> 
> 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....

Hm - i guess "local_recipient_maps" must also contain the address for verify
It is not easy for me to explain parts because i spent in 2009 some weeks
for the whole setup and unified backend until it all did what i wanted and
i guess what we have is not really a common setup

mydestination                                       = 
mysql:/etc/postfix/mysql-mydestination.cf
local_recipient_maps                                = 
mysql:/etc/postfix/mysql-recipients.cf
recipient_canonical_maps                            = 
mysql:/etc/postfix/mysql-rewritedomains.cf
sender_canonical_maps                               = 
mysql:/etc/postfix/mysql-rewritesenders.cf
transport_maps                                      = 
mysql:/etc/postfix/mysql-transport.cf
sender_dependent_relayhost_maps                     = 
mysql:/etc/postfix/mysql-sender_relay_hosts.cf
smtp_sasl_password_maps                             = 
mysql:/etc/postfix/mysql-sender_relay_hosts_auth.cf
alias_maps                                          = 
mysql:/etc/postfix/mysql-aliases.cf
smtpd_sender_login_maps                             = 
mysql:/etc/postfix/mysql-senderaccess.cf

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to