Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 May 2002 13:47:36 -0400 (EDT)
From:      Peter Leftwich <Hostmaster@Video2Video.Com>
To:        Neil Darlow <neil@darlow.co.uk>
Cc:        FreeBSD LIST <FreeBSD-Questions@FreeBSD.Org>
Subject:   RE: /etc/mail/relay-domains vs /etc/hosts.allow
Message-ID:  <20020505134234.U81507-100000@earl-grey.cloud9.net>
In-Reply-To: <200205011130.g41BUFr54502@router.darlow.co.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 1 May 2002, Neil Darlow wrote:
> On 05/01/2002 at 03:30:33, Peter Leftwich said:
> > If I want my (dynamic) IP to be able to accept incoming email for, say, root@my-ip-here do I enable the SMTP IP address in relay-domains as "RELAY" or do I add a listing to hosts.allow for the same SMTP IP address as an "allow?"  Or do I do both?  Help!
> A properly configured sendmail would use neither of those files for this
> purpose. Instead you would put the domain name(s) you wish to relay for (and

I put both the domains (in the form ".mailserver.domain.com" with the
leading dot) *and* lines with their IPs in /etc/hosts.allow - is this OK?

> which are local to your server) in /etc/mail/local-host-names (previously called sendmail.cw).

It's just me, myself, and localhost here ... but this begs the question:
When I do the command `host my_ip_here` there aren't any lines that say

hostname.domain.com mail is handled (pri=10) by ...

So is it possible to even *get* mail delivered to my dynamic IP, for
example, addressed to root@my.ip.here?

> If you have a local network e.g. 192.168.0/24 and the access.db feature of sendmail is enabled you might add the following to /etc/mail/access:
> 192.168.0	RELAY

Does the above (scary, technical stuff) override any other files?

> To answer your original question, relay-domains usually specifies domains you wish to relay for but aren't necessarily local to your server. You generally don't want to be an open relay so this file may be of little use in your case. /etc/hosts.allow controls who may or may not *connect* to your SMTP service. It may be useful for any IPs you specifically want to deny access to your service but it's not a good way to control mail routing.

Hehe, "*generally* don't want to be an open relay?!"  Your info helped
greatly in my quest -- thanks (so far)!

> Regards, Neil Darlow M.Sc.
> 1024D/531F9048 1999-09-11 Neil Darlow <neil@darlow.co.uk>
> GPG Fingerprint = 359D B8FF 6273 6C32 BEAA  43F9 E579 E24A 531F 9048

--
Peter Leftwich
President & Founder
Video2Video Services
Box 13692, La Jolla, CA, 92039 USA
+1-413-403-9555


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?20020505134234.U81507-100000>