Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-02-2005, 11:07 PM   #1
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Rep: Reputation: 33
sendmail relay problem

I have got sendmail started with uucp transport.
Now when I try to send from a local machine to a remote account I get

5.7.1 <>
Relaying denied. IP name lookup failed[]

In /var/log/maillog I get entries with: mailhost sm-mta ... from<david@localdom>,.....relay[]

mailhost sm-mta arg1=<david@remotedom>, relay=[], reject 550 5.7.1 <david@remotedom> Relaying denied, IP name lookup failed, []

My mail server is
Old 06-02-2005, 11:17 PM   #2
Registered: Oct 2004
Location: Ottawa, ON
Distribution: Slackware
Posts: 662

Rep: Reputation: 30
You need to enable relaying for the internal network by editing a couple files in your /etc/mail directory....

root@alice:/etc/mail# cat access
192.168.x.1    OK
192.168.x      RELAY
And since it's come up once before, that "x" in there is me hiding my subnet. It is not actually an "x", and in your case, it would be a zero. is the firewall. That line is there to allow connections, but to reject relaying. This is because I have a rule on the firewall that relays port 25 to my SMTP server to allow incoming mail to be sent to me directly. So. is the firewall, the rule says to allow connections but no relay.

192.168.0 (no trailing period) specifies the subnet, when not already defined. The rule "RELAY" means that for all hosts defined by this set, allow relays. That's the internal network.

Once you've set up the "access" file, run "make". (there's a Makefile in the directory). That'll compile the access.db file that Sendmail actually uses. Once that's done, restart Sendmail, and it should work.
Old 06-02-2005, 11:39 PM   #3
Registered: Oct 2003
Location: Kuala Lumpur, Malaysia
Distribution: Slackware 13.37 current
Posts: 770

Original Poster
Rep: Reputation: 33
Thanks, that does works.
Now I can send mail to a remote server via my uucp connection.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail possible relay problem wylie1001 Linux - Security 2 09-03-2005 05:28 PM
Sendmail relay problem ttricktt Linux - Networking 7 02-08-2005 07:08 PM
mail relay problem with sendmail ilovebytes Linux - Networking 5 11-16-2003 08:56 AM
Sendmail relay mail problem Swift&Smart Linux - Software 15 10-30-2003 10:14 PM
sendmail relay problem slack66 Linux - General 4 08-14-2003 10:50 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:34 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration