How to forward all email except...

Mihai Badici mihai at badici.ro
Fri Oct 16 21:14:15 CEST 2015


On Friday 16 October 2015 13:58:29 Gerald Brandt wrote:
> Hi,
> 
> I have kolab configured for domain example.com.  So a user will get
> email for user at example.com.
> 
> I'd like to change is so any user at example.com gets sent to an
> external host, and any user at mail.example.com is delivered locally.
> 
> I'm doing this for migration purposes.  I have an Exchange server that
> has been running for years.  As users are added to Kolab, I tell the
> exchange server to forward emails to user at mail.example.com. This 
works
> like a charm as long as each user has a secondary email that matches.
> 
> If a user on Kolab sends email to a user on Exchnage, I start getting
> issues.  The email bounces because the Kolab user doesn't exist on the
> domain.  So, I want to send ALL email to exchange, and then for 
migrated
> users, it can forward back to mail.example.com
> 
> Once all users are migrated, I need to chnage it back to except for the
> domain.
> 
> Is this possible?
> 
> Thanks,
> Gerald


I think you can use 
transport_maps = hash:/etc/postfix/transport
And in the transport file:


example.com     smtp:[exchange_server]


This will forward all mails to exchange.


> _______________________________________________
> users mailing list
> users at lists.kolab.org
> https://lists.kolab.org/mailman/listinfo/users-- 
Mihai Badici[1] 

--------
[1] http://mihai.badici.ro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20151016/8ca3d2a2/attachment.html>


More information about the users mailing list