LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 03-15-2001, 02:27 AM   #1
marvin
LQ Newbie
 
Registered: Mar 2001
Location: The Great White North
Distribution: slack, suse, gentoo? lfs?
Posts: 7

Rep: Reputation: 0

I've tried grepping the docs on sendmail.org, tried grepping the howtos, and if I simply leave my system without a Mail Transfer Agent then I don't get the summary-of-integrity-tests e-mailed at root, so that seems daft.

If someone knows where I can find a doc/howto/faq that covers exactly this subject, I thank you in advance for giving that info, eh?

Cheers,
\m
 
Old 05-08-2001, 01:54 AM   #2
Nova
LQ Newbie
 
Registered: May 2001
Posts: 2

Rep: Reputation: 0
Exclamation Try this

Check /etc/sendmail.cf for the following entry

O DaemonPortOptions=Port=smtp,Addr=0.0.0.0, Name=MTA

And change to

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

Changing the config to 127.0.0.1 will cause sendmail to only "listen" to port 25 on localhost loopback(127.0.0.1).

Cheers
 
Old 05-08-2001, 08:11 PM   #3
ak47fred
LQ Newbie
 
Registered: May 2001
Posts: 9

Rep: Reputation: 0
On a similar subject, how does one tell sendmail to reject email from a particular domain?
 
Old 05-09-2001, 07:26 AM   #4
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,600

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
You would want to use the access.db feature of sendmail for this.

Quote:
FEATURE(`access_db')
The FEATURE macro can accept a second parameter giving the key file definition for the database; for example

FEATURE(`access_db', `hash /etc/mail/access')
Remember, since /etc/mail/access is a database, after creating the text file as described below, you must use makemap to create the database map. For example:

makemap hash /etc/mail/access < /etc/mail/access
The table itself uses e-mail addresses, domain names, and network numbers as keys. For example,

spammer@aol.com REJECT
cyberspammer.com REJECT
192.168.212 REJECT

would refuse mail from spammer@aol.com, any user from cyberspammer.com (or any host within the cyberspammer.com domain), and any host on the 192.168.212.* network.
 
Old 05-09-2001, 07:26 PM   #5
ak47fred
LQ Newbie
 
Registered: May 2001
Posts: 9

Rep: Reputation: 0
Thanks
 
  


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
Telnet & FTP localhost connects then hangs Derekeigentek Linux - Newbie 3 12-30-2005 10:46 AM
Sendmail config to accept nothing but forward everything rumpole6 Linux - Networking 0 06-02-2005 05:26 PM
Sendmail to accept non-existant domains benjithegreat98 Linux - Networking 2 03-09-2005 09:43 AM
Samba connects @ localhost but not @ netbios name biglaz Linux - Networking 5 10-19-2004 01:22 PM
sendmail stopped allowing connects from outside world danedwards11 Linux - Networking 4 11-07-2003 04:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

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