hi,

is it posible to forward unknown recipient mails to another server that has those mailboxes,
me having a non empty local_recipient_maps?

i've been using postfix for a few years now, but i still can't get something done.
i know is a long mail but please bear with me.
what i'm trying to do is this:

at this moment i have a postfix server for city.company.domain
named box1.city.company.domain.
the box is at it's full, i can't upgrade it anymore and i won't get a better one.
so, i decided to split the load between 2 servers,
sales dept on box2, the rest remain on box1.
the entire process has to be transparent for the sales users,
meaning they don't have to modify the settings on their mail clients.

i added a secondary server box2.city.company.domain,
created a view in dns for them so when they ask for box1 the dns server replies with the ip of box2

box1 acts somehow as a gateway, sale_person@city.company.domain is an alias
for sale_per...@box2.city.company.domain

on box2 i enabled masquerade domains:

relayhost = [box1.city.company.domain]
masquerade_classes = envelope_recipient, header_recipient, envelope_sender, header_sender
masquerade_domains = city.company.domain
this doesn't work without adding
local_recipient_maps = hash:/etc/postfix/local_rec_maps.cf

--------- /etc/postfix/local_rec_maps.cf ------
@box2.city.company.domain       X
--------------------------------------------------------

my problem arrives when someone on box2 want's to send an email to an account on box1 postfix naturally checks and sees it doesn't have the box1 account and the mail bounces

fallback_transport won't work with a non empty local_recipient_maps
and masquerade_domains demands one, so i'm stuck.

on both boxes i use virtual domain and mailbox with mysql backend.
any ideea would be greatly appreciated.





Reply via email to