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

Re: sendmail and virtual hosting: still a small annoying problem



On Mon, 11 Mar 2002, Stephane Bortzmeyer wrote:

> I'm clearly rusty in sendmail (I now use Postfix but a customer wants to keep
> sendmail) and I have a small but annoying problem with virtual hosting. I have
> implemented:
>
> http://www.sendmail.org/virtual-hosting.html

A very good starting point ;)
>
> with a M4 configuration file as instructed above. It works fine except that
> To: fields are rewritten with the main domain, not the virtual one.
>
> If I send a mail to bortzmeyer@foo.bar when the main domain is dot.bar and I
> have in the virtusertable:
>
> bortzmeyer@foo.bar bortzmeyer
>
> the mail is received with a header:
>
> To: bortzmeyer@dot.bar
>
> which is not what the customer wants.
>
> Any simple solution?

You have FEATURE(`allmasquerade') Correct?  if so, then its doing what
you told it...  All hosts in class {w} are masqueraded

Try FEATURE(`limited_masquerade') and add *ONLY* the hosts you to
masquerade (localhost, etc) to class {M} (Leave {w} as is)

	MASQUERADE_AS(masq.com)
	MASQUERADE_DOMAIN(foo.org)
	MASQUERADE_DOMAIN(bar.com)

-- 
Rick Nelson
<evilkalla> heh, I never took a coding class
<evilkalla> or a graphics class
<evilkalla> or a software design class
<vegan> and it shows :P



Reply to: