From owner-freebsd-questions Fri Jan 5 10:12:54 2001 From owner-freebsd-questions@FreeBSD.ORG Fri Jan 5 10:12:51 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from jason-n3xt.org (crtntx1-ar3-096-206.dsl.gtei.net [4.33.96.206]) by hub.freebsd.org (Postfix) with ESMTP id BEE8337B400 for ; Fri, 5 Jan 2001 10:12:50 -0800 (PST) Received: from next (crtntx1-ar3-098-023.dsl.gtei.net [4.33.98.23]) by jason-n3xt.org (8.11.1/8.11.1) with SMTP id f05ICeA25259; Fri, 5 Jan 2001 18:12:41 GMT (envelope-from jason@jason-n3xt.org) Message-ID: <000801c07743$18ff42b0$17622104@next> From: "Jason Halbert" To: "Daniel Ruthardt" , , "John" References: <4.3.2.7.2.20010105124249.00ae5440@mail.udel.edu> Subject: Re: Configure SENDMAIL as SMTP server for NON local users Date: Fri, 5 Jan 2001 18:12:41 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the continuing saga of FreeBSD questions "John" wrote: > >Is it possible to configure sendmail to act as SMTP server for non local > >users? > >I want to allow incoming mails to be relayed to every server they want to go > >to, if the domain part of the from adress of the incoming email equals the > >hostname of my FreeBSD server. > >I have webmin installed and tried a lot, but it didn't work, my Outlook > >always reports: "Server answer 550 5.7.1 Relaying denied". > > > >Is what I want to do possible with sendmail at all or do I have to use > >another SMPT server? > > > You should be able to do it with sendmail without any trouble. Depending > on what version of FreeBSD you're using and what version of sendmail you're > using this may differ, but these things work fine in a stable build of less > than a month ago: > > In your sendmail.cf, there should be a line like this: > # Hosts for which relaying is permitted ($=R) > FR-o /etc/mail/relay-domains > > Define that to be the file you want to list out who can relay. > > Then, the file /etc/mail/relay-domains need be created. That file is a > simple list containing the domains which can relay. Example: > foo.bar.com > foo2.net > otherdomain.org > > That should get you going. I believe you can also specify by IP addresses, > thereby allowing you to specify single IPs or ranges. > > hope that helps, > John I believe that procedure is for specifying what domains can be relayed to. To get relaying working from specific domains to any domain you need to edit the file /etc/mail/access EXAMPLE: foo.bar.com RELAY foo2.net RELAY otherdomain.org RELAY Then type "make" in /etc/mail to rebuild your databases. That's the only file i modified in Sendmail 8.11.1 to get relaying from my home puter and my lappy. --- ----------------------------------------------------------- | Jason P. Halbert | jason@jason-n3xt.org | | Transmitter Maintenance Engineer | DALnet: Push^Pop | | KC5WEG | ICQ#: 86637300 | | KDAF-TV WB 33 | (214) 252-3300 | | KDTX-TV 58 | (972) 399-0058 | ----------------------------------------------------------- | Fortune favors the well prepared. | | http://jason-n3xt.org | ----------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message