Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jan 2001 12:48:29 -0500
From:      John <papalia@udel.edu>
To:        "Daniel Ruthardt" <ruthardt@chello.at>, <freebsd-questions@FreeBSD.ORG>
Subject:   Re: Configure SENDMAIL as SMTP server for NON local users
Message-ID:  <4.3.2.7.2.20010105124249.00ae5440@mail.udel.edu>
In-Reply-To: <BAEFIBPPPCEFBAOMJNPNOEGJCAAA.ruthardt@chello.at>

next in thread | previous in thread | raw e-mail | index | archive | help

>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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20010105124249.00ae5440>