Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Jan 2001 18:12:41 -0000
From:      "Jason Halbert" <jason@jason-n3xt.org>
To:        "Daniel Ruthardt" <ruthardt@chello.at>, <freebsd-questions@FreeBSD.ORG>, "John" <papalia@udel.edu>
Subject:   Re: Configure SENDMAIL as SMTP server for NON local users
Message-ID:  <000801c07743$18ff42b0$17622104@next>
References:  <4.3.2.7.2.20010105124249.00ae5440@mail.udel.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000801c07743$18ff42b0$17622104>