From owner-freebsd-questions Wed May 1 4:30:21 2002 Delivered-To: freebsd-questions@freebsd.org Received: from router.darlow.co.uk (pc2-bigg2-0-cust101.ltn.cable.ntl.com [213.107.35.101]) by hub.freebsd.org (Postfix) with ESMTP id 530CC37B41E for ; Wed, 1 May 2002 04:30:17 -0700 (PDT) Received: from there (neil@ideal.darlow.co.uk [192.168.0.2]) by router.darlow.co.uk (8.11.6/8.11.6) with SMTP id g41BUFr54502 for ; Wed, 1 May 2002 12:30:16 +0100 (BST) (envelope-from neil@darlow.co.uk) Message-Id: <200205011130.g41BUFr54502@router.darlow.co.uk> Content-Type: text/plain; charset="iso-8859-1" From: Neil Darlow To: freebsd-questions@freebsd.org Subject: RE: /etc/mail/relay-domains vs /etc/hosts.allow Date: Wed, 1 May 2002 12:30:14 +0100 X-Mailer: KMail [version 1.3.2] MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 which are local to your server) in /etc/mail/local-host-names (previously called sendmail.cw). 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 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. Regards, Neil Darlow M.Sc. -- 1024D/531F9048 1999-09-11 Neil Darlow GPG Fingerprint = 359D B8FF 6273 6C32 BEAA 43F9 E579 E24A 531F 9048 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message