Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Sendmail - Relaying Denied, RH9 - Sendmail Configuration
jdickert
post Sep 21 2003, 05:29 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 21-September 03
Member No.: 1,483



Looking for some help,

I just upgraded my server hardware and decided to do the same with my RH Linux from 8.0 to 9. My mail server is the latest build of Sendmail and I also have Spamassasin installed. I configured the new server the same as my old server but now, when I try to send mail outside of my local network, all my users are getting the error

550 5.7.1 <any-user@yahoo.com>... Relaying denied. IP name lookup failed

I've tried everything I can think of from configuring my sendmail.cf file for relaying based on MX record to adding my class C range to the /etc/mail/allow file. My network is a mix of DHCP assigned private IPs and some static Internet IPs.

Any suggestions on where I should be looking next?

Thanks for any help.
Go to the top of the page
 
+Quote Post
Joey
post Sep 21 2003, 08:54 AM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



Hi,

Make sure you have the following in your /etc/hosts.allow:
sendmail: ALL

As well, Red Hat ships sendmail configured for local delivery only.

You'll want to change the following line in your sendmail.mc file:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

To this:

dnlDAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

And then restart sendmail.

As well, what do you have in your /etc/mail/access files? You should put in the hosts that are allowed to relay through your server. For example in mine I have:

10.1.1.1 RELAY
10.1.1.2 RELAY
Go to the top of the page
 
+Quote Post
hughesjr
post Sep 21 2003, 09:04 AM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



create a text file named /etc/mail/relay-domains and put the domain names that you will allow relaying FROM (ie, the name of all mail domains hosted on the server) in that file ... 1 domain name on each line.

Then in the /etc/mail/sendmail.cf file make sure the line:

FR-o /etc/mail/relay-domains

is not remarked out (that it doesn't have a # or ; in front of it).

If you had to create files or change the sendmail.cf file, you must restart sendmail to see the effects of the changes....

/etc/init.d/sendmail restart
Here is more info on relaying e-mail with sendmail...


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 09:39 PM