Re: forwarding mail to another MX on same domain

2008-11-25 Thread Ville Walveranta
On Sun, Nov 23, 2008 at 3:35 AM, mouss [EMAIL PROTECTED] wrote: As Henrik says, you can break them with /x. Got it to work after realizing a blank space is needed in front of the continuation lines... Note that in this example, pcre is too much. a hash (or cdb) will do fine:

Re: forwarding mail to another MX on same domain

2008-11-25 Thread mouss
Ville Walveranta a écrit : On Sun, Nov 23, 2008 at 3:35 AM, mouss [EMAIL PROTECTED] wrote: As Henrik says, you can break them with /x. Got it to work after realizing a blank space is needed in front of the continuation lines... Note that in this example, pcre is too much. a hash (or cdb)

Re: forwarding mail to another MX on same domain

2008-11-23 Thread Henrik K
On Sun, Nov 23, 2008 at 12:15:43AM -0600, Ville Walveranta wrote: Couple of messages earlier in this thread I posted the following pcre smtpd_recipient_access table: # reject domains that are served by Katharion # on the generic smtpd interface /(@virtualdomain1\.com|

Re: forwarding mail to another MX on same domain

2008-11-23 Thread mouss
Ville Walveranta a écrit : Couple of messages earlier in this thread I posted the following pcre smtpd_recipient_access table: # reject domains that are served by Katharion # on the generic smtpd interface /(@virtualdomain1\.com| @virtualdomain2\.com| @virtualdomain3\.com|

Re: forwarding mail to another MX on same domain

2008-11-22 Thread Ville Walveranta
I just realized that this would not resolve the issue because the remote MX would just redeliver it to the local server which is the final destination of the domain. I'm probably better off with a simple alias domain forward. So while it's not worth considering how to tweak my specific

Re: forwarding mail to another MX on same domain

2008-11-22 Thread mouss
Ville Walveranta a écrit : I just realized that this would not resolve the issue because the remote MX would just redeliver it to the local server which is the final destination of the domain. I'm probably better off with a simple alias domain forward. So while it's not worth considering

Re: forwarding mail to another MX on same domain

2008-11-22 Thread Wietse Venema
Ville Walveranta: I'll continue here since Krosrow's issue has been resolved (so I'm not really hijacking the thread). I now have the following defined in mailbox_transport_maps: [EMAIL PROTECTED]smtp:mx.myexternaldomain.com Yet when I attempt to send mail to the local

Re: forwarding mail to another MX on same domain

2008-11-22 Thread Ville Walveranta
Couple of messages earlier in this thread I posted the following pcre smtpd_recipient_access table: # reject domains that are served by Katharion # on the generic smtpd interface /(@virtualdomain1\.com| @virtualdomain2\.com| @virtualdomain3\.com| @virtualdomain4\.com| @virtualdomain5\.com)$/

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Brian Evans - Postfix List
Khosrow Ebrahimpour wrote: Hi postfix-users, We recently migrated from a Sendmail/Cyrus environment to a Postfix/Courier setup. Some of the users had .forward files that would forward their mail to an exchange server in our network, and this was done with a file like this one : ===

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Wietse Venema
Khosrow Ebrahimpour: Hi postfix-users, We recently migrated from a Sendmail/Cyrus environment to a Postfix/Courier setup. Some of the users had .forward files that would forward their mail to an exchange server in our network, and this was done with a file like this one : ===

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Victor Duchovni
On Fri, Nov 21, 2008 at 08:34:35PM +, Khosrow Ebrahimpour wrote: A transport maps entry like this: [EMAIL PROTECTED] smtp:ms-exch.example.com Should do the job. But may cause a loop if the mail ultimately returns to the same server for final delivery. The OP has

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Khosrow Ebrahimpour
Just a correction. The solution that Wietse had suggested does work. I had forgotten one crucial step: re-building the lookup table. After I ran postmap /etc/postfix/transport the forwarding now works correctly.

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Ville Walveranta
On Fri, Nov 21, 2008 at 1:31 PM, Wietse Venema [EMAIL PROTECTED] wrote: A transport maps entry like this: [EMAIL PROTECTED]smtp:ms-exch.example.com It also seems to be possible to redirect an entire domain to another smtp server.. @example.comsmtp:ms-exch.example.com

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Victor Duchovni
On Fri, Nov 21, 2008 at 11:13:51PM -0600, Ville Walveranta wrote: On Fri, Nov 21, 2008 at 1:31 PM, Wietse Venema [EMAIL PROTECTED] wrote: A transport maps entry like this: [EMAIL PROTECTED]smtp:ms-exch.example.com It also seems to be possible to redirect an entire domain to

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Victor Duchovni
On Fri, Nov 21, 2008 at 11:29:55PM -0600, Ville Walveranta wrote: On Fri, Nov 21, 2008 at 11:18 PM, Victor Duchovni [EMAIL PROTECTED] wrote: Wrong syntax. In the transport table, domains don't start with an @. Ok, I corrected it (although it seemed to work with an @, too). Your