Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Aug 2001 13:49:29 +0100
From:      Paul Branston <apbran@rannoch.demon.co.uk>
To:        "Patrick O'Reilly" <patrick@mip.co.za>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Sendmail Help - anyone?
Message-ID:  <20010815134929.B5360@rannoch.demon.co.uk>
In-Reply-To: <000001c12581$b0b81ef0$b50d030a@patrick>; from patrick@mip.co.za on Wed, Aug 15, 2001 at 01:59:07PM +0200
References:  <000001c12581$b0b81ef0$b50d030a@patrick>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Wed, Aug 15, 2001 at 01:59:07PM +0200, Patrick O'Reilly wrote:
> If someone can help I'd really appreciate it.  I am battling to make head or
> tail of the documentation on the sendmail website!
> 
> I have a server on FreeBSD 4.2 running sendmail - and all is well.
> 
> Now, a bunch of users are moving onto the same LAN.  I want to add them on
> the same sendmail server, but they belong to a different company, and hence
> have a different internet domain.
> 
> I can set all the MX records incoming OK, and set local-host-names so that
> the server will accept the incoming emails.
> 
> BUT: How do I ensure that outbound emails correctly show a source address
> for the respective different domains?
> 
> In other words, some emails will be:
> From: joe-bloggs@origdomain.com
you need a genericstable to re-write the outgoing email addresses
so that local user joe becomes joe@domain.com
e.g.
joe joe@domain.com
(if you include a left-hand-side address with a domain part you
need that domain in a genericsdomain file)

and for incoming mail use a virtusertable to map joe@domain.com
onto the local box where the mail is to be delivered.

create a sendmail.cf file with support for these features, 
masquerade_envelope
virtusertable
genericstable

> 
> While other emails will be:
> From: an-other@newdomain.com
> 
> and yet both the user accounts (joe-bloggs and an-other) are physically
> resident on the same mail server.  As I understand things, sendmail will
> show all source addresses from one common domain, the domain of the mail
> host.
> 
> Thanks in advance,
> Patrick.
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message

-- 
/*
 *  Paul Branston
 *  Unix Consultant 
 *  Leeds office: 0113 2635584
 *  Mobile:       07860 447931
 */

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: <http://docs.FreeBSD.org/cgi/mid.cgi?20010815134929.B5360>