[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Forward mail from RAQ4 to Microsoft Exchange Server IP address.



Wayne Stevens wrote:

> I set the forwarding of all email of a domain to go to a certain IP address.
> The panels except everything.  When I send an email to user@xxxxxxxxxx, it
> is returned.  What do I need to do to accomplish this.  Below is the message
> with the www.  Same happens without the www.
> 
> The original message was received at Mon, 13 May 2002 15:32:15 -0500
> from firebird.bmc.com [198.207.223.228]
> 
>    ----- The following addresses had permanent fatal errors -----
> 207.200.54.42
>     (reason: 550 5.1.1 User unknown)
>     (expanded from: <steve@xxxxxxxxxxxxxxxxxxx>)

An IP# is NOT an email address.

You can't send all email to an IP# address that way.  If all email
addressed to username@xxxxxxxxxxxxxx goes to the same username at
domain-two.com, the way I'd do it would be to set up an MX record for
domian-one.com to point directly to the box at domain-two.com.  I'd then
set up individual user records, or one catchall user record at
domain-two.com in the virtusertable file (or equivalent if not running
sendmail).  This has the advantage of not impacting the RaQ hosting
domain-one.com at all for incoming mail.


If both domains are on the same box, or just to make life easier, you
can add the following line at the bottom of the RaQs virtusertable file:

@www.domain-one.com	<tab>	user@xxxxxxxxxxxxxx

which would have the effect of sending all email addressed to
domain-one.com to a single catchall email account, user@xxxxxxxxxxxxxxx

If you have individual users set up at domain-two.com, you can use this
line instead:

@www.domain-one.com	<tab>	%1@xxxxxxxxxxxxxx

Don't forget that's one or more tabs between the columns, not spaces,
and don't forget to rebuild the virtusertable database after you've made
changes to it:

# makemap hash virtusertable < virtusertable

I hope this helps.

Jeff
-- 
Jeff Lasman <jblists@xxxxxxxxxxxxx>
Linux and Cobalt/Sun/RaQ Consulting
nobaloney.net
P. O. Box 52672, Riverside, CA  92517
voice: (909) 778-9980  *  fax: (702) 548-9484