LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-17-2009, 11:47 PM   #1
andrewb55555
LQ Newbie
 
Registered: Jun 2009
Distribution: Fedora 10
Posts: 1

Rep: Reputation: 0
Question Order of Precedence in Sendmail's Access DB???


My /etc/mail/access is as follows:

To:somedomain.com OK
From:john@somedomain.com REJECT
Connect:localhost.localdomain RELAY
Connect:localhost RELAY
Connect:127.0.0.1 RELAY


Now when an email is sent from john@somedomain.com to jane@somedomain.com, it should hit the first rule and be accepted?? right?? That doesn't happen it gets rejected?

I am trying to allow some users to email internally but not externally!

Is it possible to use sendmail to block and accept email using both source and destination addresses (like iptables)??

thanks Andrew

Last edited by andrewb55555; 06-17-2009 at 11:48 PM.
 
Old 06-17-2009, 11:53 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,374

Rep: Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383Reputation: 2383
Depends what you mean by internally.
By default on many distros, sendmail.mc / sendmail.cf defaults to only listening on 127.0.0.1 anyway, so it'll only send/recv on that box.
See DAEMON_OPTIONS line
 
  


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
configuring the sequence order of access of web connections billcarson Linux - Networking 6 06-17-2008 03:41 PM
Does Linux require WINS in order to access Windows PCs? ExCIA Linux - Networking 7 05-28-2005 06:02 PM
Simple Operator Precedence C++ Problem rovitotv Programming 9 03-21-2005 10:02 PM
Sendmail's Gone Mad da_tibmeister Linux - Networking 5 09-28-2004 11:04 AM
operator precedence in C Majjj Programming 2 07-07-2004 11:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:57 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