Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 Feb 2002 02:42:56 +0100
From:      Florian Nigsch <flo@nigsch.com>
To:        Ben Stuyts <ben@stuyts.nl>, freebsd-questions@freebsd.org
Subject:   Re: sendmail config problem with virtual domain
Message-ID:  <20020226024256.B38543@nigsch.com>
In-Reply-To: <4.3.2.7.2.20020225231649.03926ca0@terminus>; from ben@stuyts.nl on Mon, Feb 25, 2002 at 11:33:58PM %2B0100
References:  <4.3.2.7.2.20020225231649.03926ca0@terminus>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 25, 2002 at 11:33:58PM +0100, Ben Stuyts wrote:
> I have a login on this server as ben@domain.com. Let's say the virtual 
> domain is called virtualdomain.com.
> 
> In the virtusertable is an entry:
> ben@virtualdomain.com	ben@stuyts.nl
> 
> I send mail from here (at stuyts.nl) as ben@virtualdomain.com to 
> ben@virtualdomain.com. However, when I receive this mail back at stuyts.nl, 
> the
> From: ben@virtualdomain.com is changed into ben@domain.com. The To: line is 
> still intact.
> 
> Any idea what I'm doing wrong?
> 
> The sendmail.mc is basically a stock freebsd.mc with the addition of:
> 
> FEATURE(`accept_unqualified_senders')
> define(`confDOMAIN_NAME', `host.provider.nl')dnl
> FEATURE(genericstable)
> GENERICS_DOMAIN(`host.domain.com')
> VIRTUSER_DOMAIN(`virtualdomain.com')
> 
> The genericstable is empty.
---end quoted text---

As far as I know you have to use the genericstable feature to rewrite
the From headers. Try adding

ben		ben@virtualdomain.com

to your /etc/mail/genericstables.

It also took me some time to get the @nigsch.com working with my
email address (I also use my domain at another site which 
primarily gets mail for another domain...). I also use some
other "features" like "masquerade_envelope" and "limit_masquerade".

flo


-- 


---
Florian Nigsch <flo@nigsch.com>
http://flo.nigsch.com/
PGP key: http://flo.nigsch.com/fnigsch.asc

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020226024256.B38543>