From owner-freebsd-questions Fri Nov 12 17:25: 7 1999 Delivered-To: freebsd-questions@freebsd.org Received: from unix.megared.net.mx (megamail.megared.com.mx [207.249.162.252]) by hub.freebsd.org (Postfix) with ESMTP id 8977E14C95 for ; Fri, 12 Nov 1999 17:25:02 -0800 (PST) (envelope-from ales@megared.net.mx) Received: from ales (solaris.puebla.megared.net.mx [207.249.163.251]) by unix.megared.net.mx (8.9.3/8.9.3) with SMTP id TAA08166; Fri, 12 Nov 1999 19:25:17 -0600 (CST) (envelope-from ales@megared.net.mx) Message-ID: <003501bf2d75$b4034540$fba3f9cf@megared.net.mx> Reply-To: "Alejandro Ramirez" From: "Alejandro Ramirez" To: "Michael Kennett" , References: <199911121656.AAA07835@laurasia.com.au> Subject: RE: Sendmail relaying problem Date: Fri, 12 Nov 1999 19:23:33 -0600 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2014.211 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, > ...if the access.txt/.db files are a good way to do relaying, then I'm > willing to learn more about it! > > I've just checked the FreeBSD sendmail.cf, and it has the line (along with > a bunch of rewriting rules): > > Kaccess hash -o /etc/mail/access > > The OpenBSD sendmail.cf doesn't have this directive. > (They both have the FR-o /etc/mail/relay-domains directive). > > What are the differences between these methods of relaying? The /etc/mail/relay-domains, its the right place to allow relay in sendmail, you can use hostnames, domain names, and IP Addresses, in sendmail 8.9.3, its enabled by default. The /etc/mail/acces file its used specially to control acces instead of relaying, you can relay with this file, but thats what is /etc/mail/relay-domains its made for. you can enable the acces feature with the following line in your m4 config file: FEATURE(access_db) and you create the file access.txt and add things like this: xxxhotel.com REJECT abc@xxxdomain.com REJECT host5.domain.com RELAY host.domain.com DISCARD to reject mail, to relay mail, or to discard mail silently (accept it and discard it). but you have to: makemap hash acces < access.txt in order to work. Have Fun... Ales To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message