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

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: > > virtualdoma

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| > @vi

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| > @virtualdomain

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-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 loca

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 consideri

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 configurati

Re: forwarding mail to another MX on same domain

2008-11-21 Thread 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 system at [EMAIL PROTECTED] I ge

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Ville Walveranta
On Fri, Nov 21, 2008 at 11:41 PM, Victor Duchovni <[EMAIL PROTECTED]> wrote: > Your observations were in error.. You're correct. I hadn't refreshed the system after I made the change. Ville

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).

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Ville Walveranta
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). Ville

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 d

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.co

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 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 de

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Khosrow Ebrahimpour
First, thanks for the response everyone. > > 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 to explain the situatio

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 > > Should do the job. Interesting. I think this may answer the question I posted last night about "Preventing local forwarding for

Re: forwarding mail to another MX on same domain

2008-11-21 Thread Victor Duchovni
On Fri, Nov 21, 2008 at 02:31:38PM -0500, Wietse Venema wrote: > > Since the migration, this feature doesn't work anymore. ms-exch is a > > virtual > > host that maps to one of three actual servers. And the so simply putting a > > rule that would forward mail to [EMAIL PROTECTED] doesn't work.

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 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 : >

forwarding mail to another MX on same domain

2008-11-21 Thread 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 : === @ms-exch.example.com:[EMAIL PROTECT