Date: Fri, 05 Jan 2001 14:48:43 -0500 From: John <papalia@udel.edu> To: "Jason Halbert" <jason@jason-n3xt.org>, "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.20010105144501.00adf1f0@mail.udel.edu> In-Reply-To: <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
> > >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. Perhaps these are two different ways of accomplishing the same thing? The reason I say this is that by following the method stated above: - If the relay file is defined in sendmail.cf, and the file is empty, NO mail can be sent. - If the relay file is defined in sendmail.cf, and I have only my LAN defined in /etc/mail/relay-domains, then anything in my LAN can send email to anywhere in the outside world. However, my dial up account (different provider) using the LAN's SMTP server can't, with relaying being forbidden. Add its domain to /etc/mail/relay-domains and it works wonderfully - again able to email anyplace. So, I guess I disagree that it defines where you can "relay to", but perhaps our solutions are the same thing. Unfortunately, my sendmail book is in another state right now, so I can't refer to it for an answer. Perhaps someone can clarify? --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.20010105144501.00adf1f0>