LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2002, 03:17 AM   #1
Supp0rtLinux
Member
 
Registered: Dec 2001
Location: Carlsbad
Distribution: LFS 4.0 (www.linuxfromscratch.org)
Posts: 44

Rep: Reputation: 15
Question Sendmail Relaying Question


I'm confused about the different uses of the sendmail access.db file vs. relay-domains. They both seem to control relaying... so why do both exist? If I simply want to relay all traffic for my 4 office's IPs and deny it for everyone else, which file do I use?
 
Old 08-02-2002, 03:20 AM   #2
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
use the access(.db) file - for example,
192.168.1.10 RELAY

will allow a station on 192.168.1.10 to use your sendmail on the server as a mail relay.

naz
 
Old 08-02-2002, 03:36 AM   #3
Supp0rtLinux
Member
 
Registered: Dec 2001
Location: Carlsbad
Distribution: LFS 4.0 (www.linuxfromscratch.org)
Posts: 44

Original Poster
Rep: Reputation: 15
Thanks... the best I could get from the Sendmail site is that relay-domains is used to list domains I will relay mail for, but that access.db allows finer control... specifically of individual hosts, IP blocks, etc ??? Is this correct? Since you suggest using the access.db file, then what's the purpose of relay-domains?

Basically, here's what I need to do... let's say I have two offices and a co-lo. I want to relay for:
10.1.1. (office A)
192.168.1. (office B)
172.16.100. (local co-lo)

And just in case I want to put a valid DNS assigned host for my domain at my house, I want to relay for any valid hosts in my domain (confirmed by DNS)... so I als want to relay for:
mydomain.com

Then I want to explicitly deny relay for all other hosts, IPs, etc. Do I have to list mydomain.com in relay-domains and the IP ranges for the offices in access.db? Or can I do it all in access.db?

Lastly... are the access and relay-domains files read top to bottom like a firewall ruleset so that if I list five relayed domains, then my last entry is 0.0.0.0 REJECT, will my IP ranges/domains be allowed to relay while everything else will reject?
 
Old 08-02-2002, 03:47 AM   #4
naz
Member
 
Registered: Aug 2002
Location: Malaysia
Distribution: RedHat
Posts: 58

Rep: Reputation: 15
More info on the access.db feature can be found at:
http://www.sendmail.org/m4/anti-spam.html

By default, sendmail denies relaying. So you do not need to reject everything else explicitly (and if you do it like you're proposing, it won't work - read the above webpage thoroughly and you'll understand why).

I recommend reading the sendmail manual (on my system it's /usr/doc/sendmail/doc/op/op.ps) for the nitty gritty.

(more later, i got to run now)

naz
 
  


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 Relaying marvin00001 Linux - Networking 2 09-22-2005 06:38 AM
Sendmail Relaying R4z0r Linux - Networking 2 10-03-2004 02:15 PM
Sendmail relaying... kloppster Linux - Software 3 07-19-2004 12:49 PM
sendmail relaying atin Linux - Software 1 10-01-2002 10:21 AM
Sendmail Relaying Question Supp0rtLinux Linux - Networking 3 08-05-2002 05:16 PM


All times are GMT -5. The time now is 04:40 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration