LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2004, 11:28 AM   #1
R4z0r
Member
 
Registered: Jan 2002
Distribution: CentOS 3.1
Posts: 119

Rep: Reputation: 15
Sendmail Relaying


Hi All,

I am setting up a Sendmail box to relay for my local network. The machine does not hadle incomming mail of any kind - it purely relays out.

I would like it to relay purely based on IP's so that anything in the 192.168.1.0/24 network can relay out with no other checks done.

To achieve this I have edited /etc/mail/sendmail.mc and commented out "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl" I have also added "FEATURE(`accept_unresolvable_domains')dnl" in an attempt to stop Sendmail from doing an rDNS lookup on my IP (They are all local IP's so have no rDNS).

I then edited /etc/mail/access and added:

192.168.1.0 RELAY

Finally I ran "make -c /etc/mail" and restarted Sendmail. Relaying on the localhost works fine, I onyl egt an issue when trying to relay from a seperate machine (Within the 192.168.1.0/24 subnet).

Here's a log extract showing the problem:

Code:
Oct  3 16:54:30 anima sendmail[6570]: i93FsUqq006570: ruleset=check_rcpt, arg1=<nick@blah.com>, relay=[192.168.1.5], reject=550 5.7.1 <nick@blah.com>... Relaying denied. IP name lookup failed [192.168.1.5]
It sounds like an rDNS error but I have added the feature to stop it doing this.

Everything else is a vanilla install on CentOS (Red Hat enterprise Rebuild).

Any ideas?

Thanks, Nick
 
Old 10-03-2004, 01:52 PM   #2
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
The access table database does not support the standard network/netmask specification or even CIDR specification.

Try the following access table format for your network:
192.168.1 RELAY
 
Old 10-03-2004, 02:15 PM   #3
manvirr
Member
 
Registered: Jul 2004
Location: Chandigarh
Distribution: RedHat 9.0
Posts: 34

Rep: Reputation: 15
Also try adding all your 192.168.1.x ips to /etc/hosts

Cheers
http://www.linuxbrts.com

Last edited by manvirr; 10-03-2004 at 02:17 PM.
 
  


Reply



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
relaying in sendmail spikes57 Linux - Networking 6 02-27-2004 10:44 AM
Sendmail and Relaying Hessian Rider Linux - Networking 2 03-04-2003 07:53 AM
Sendmail relaying SchoolITguy Linux - Networking 0 10-18-2002 06:17 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM
Sendmail 8.11 relaying?? magyartoth Linux - General 3 04-29-2002 03:24 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:47 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration