From owner-freebsd-questions Fri Jan 5 9:56:10 2001 From owner-freebsd-questions@FreeBSD.ORG Fri Jan 5 09:56:04 2001 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from wondermutt.net (host75-157.student.udel.edu [128.175.75.157]) by hub.freebsd.org (Postfix) with ESMTP id 50F4237B404 for ; Fri, 5 Jan 2001 09:56:02 -0800 (PST) Received: from nyf-ny1-23.ix.netcom.com (nyf-ny1-23.ix.netcom.com [198.211.16.23]) by wondermutt.net (8.11.1/8.11.1) with SMTP id f05Hxx117882; Fri, 5 Jan 2001 13:00:00 -0500 (EST) (envelope-from papalia@udel.edu) X-Authentication-Warning: merlin.wondermutt.net: nyf-ny1-23.ix.netcom.com [198.211.16.23] didn't use HELO protocol Message-Id: <4.3.2.7.2.20010105124249.00ae5440@mail.udel.edu> X-Sender: papalia@mail.udel.edu X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Fri, 05 Jan 2001 12:48:29 -0500 To: "Daniel Ruthardt" , From: John Subject: Re: Configure SENDMAIL as SMTP server for NON local users In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message