Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Nov 2000 16:13:23 +0200
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        "Leonard W. Gold" <lengold@play.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: Outgoing mail security
Message-ID:  <20001111161323.A6799@hades.hell.gr>
In-Reply-To: <NDBBLEKOOLGIBFPGLFEKAEJICHAA.matt@researcher.com>; from matt@researcher.com on Fri, Nov 10, 2000 at 10:05:45PM -0400
References:  <01C04B15.C5929BD0.lengold@play.com> <NDBBLEKOOLGIBFPGLFEKAEJICHAA.matt@researcher.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Nov 10, 2000 at 10:05:45PM -0400, Matt Rudderham wrote:
> >Hi,
> >Thanks for getting back to me.  I looked for the access file and couldn't
> >find it there.  I am using FreeBSD 3.1.  At that location it has
> >sendmail.cf.additions & relay-domains.  Hope your familiar with this one.
> >Thanks again.
> >LG
> 
> Hi Leonard,
> Unfortunately my experience doesn't go back to 3.1.

The main difference in 3.1 (if I reall this correctly) is that sendmail.cf and
aliases are in /etc and not /etc/mail.  But this also depends on which version
of sendmail you're running, because it changed in 8.10.x I think.  In my
8.11.1 installation, I can see this:

	hades-root:/root# strings `which sendmail` | grep sendmail.cf
	sendmail.cf
	/etc/mail/sendmail.cf
	hades-root:/root#

About relaying now.  Sendmail after 8.9.3 is set up to deny relaying by
default, and you have to explicitly allow which IP's or domains will be
relayed in /etc/mail/access.  For more information on the syntax of access try
reading /usr/src/contrib/sendmail/cf/README, but a small example looks like:

	% cat /etc/mail/access
	bug.gr		RELAY
	labs.gr		RELAY
	hotmail.com	REJECT

You get the idea, I think :-) After you edit /etc/mail/access properly do not
forget to makemap it:

	# cd /etc/mail
	# makemap hash access < access

Ciao.

- giorgos


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?20001111161323.A6799>