On 7/7/2011 12:42 PM, IT Guy wrote:
Hi all,

I'm in the process of migrating our company from a certain proprietary mail 
system to a new OpenBSD mailserver (IMAP + Postfix).

I'd like to be able to migrate our users one at a time rather than do the whole 
company in one fell swoop.

Does anyone know of a good/easy way to conditionally route incoming mail based 
on the envelope recipient address?
(Basically I want migrated users to start getting their mail from the new box, 
while the other users continue to connect to the old server)

I looked in the ports tree and didn't see an smtp proxy per se. Also the relayd 
manpage seemed relevant but I've never used that daemon before and thus am not 
sure.

I'm a newbie in this area, so any suggestions/guidance would be greatly 
appreciated.

Thanks in advance.

:-)

Dre


I've (ab)used postfix' virtual and transport tables to do this successfully when running postfix as an MX in the past, depending on the complexity.

I used to rewrite all users from user@domain to [email protected], then individually forward messages to [email protected] or [email protected] and use transport and relay_domains and domain aliases as needed.

Now I just do it all in transport since you can specify full addresses in it and catch-all domains (if I remember correctly -- don't currently have any half-migrated clients).

see $relay_domains, postconf(5), transport(5), virtual(5)

-t

Reply via email to