LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 06-02-2005, 10:07 PM   #1
davidsrsb
Member
 
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 <david@remotedom.com>
Relaying denied. IP name lookup failed[192.168.0.74]

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

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

My mail server is 192.168.0.5.
 
Old 06-02-2005, 10:17 PM   #2
killerbob
Member
 
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....

Code:
root@alice:/etc/mail# cat access
192.168.x.1    OK
192.168.x      RELAY
root@alice:/etc/mail#
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.

192.168.0.1 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. 192.168.0.1 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, 10:39 PM   #3
davidsrsb
Member
 
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.
 
  


Reply


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 04:28 PM
Sendmail relay problem ttricktt Linux - Networking 7 02-08-2005 06:08 PM
mail relay problem with sendmail ilovebytes Linux - Networking 5 11-16-2003 07:56 AM
Sendmail relay mail problem Swift&Smart Linux - Software 15 10-30-2003 09:14 PM
sendmail relay problem slack66 Linux - General 4 08-14-2003 09:50 PM


All times are GMT -5. The time now is 03:41 AM.

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