LinuxQuestions.org
Help answer threads with 0 replies.
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 08-05-2003, 05:51 AM   #1
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Rep: Reputation: 30
Question Ok not linux but AIX and secure sendmail setup


The scenario:

Background:

Secure server running AIX in a DMZ. Has scripted cron jobs which monitor processes and notify admins if things go wrong via sendmail. Currently listening on default interface for port 25.


Issue:

Do not want sendmail to listen on port 25, or any for that matter. Only to be configured to send and flush queue.


Suggested solutions:

1) Run send mail from loopback interface only. Add line DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA in /etc/sendmail.cf. This is currently done on secure Red Hat and FreeBSD servers without issue.

2) Configure sendmail for inetd process. Create sendmail script and place in inetd.d directory to force sendmail to run outbound only. Add cron "10 * * * * /usr/sbin/sendmail -q" to run and flush queue every 10 minutes. With this option sendmail will respond to port 25 when a request is made however will not always be listening.

3) Implement both above solutions.


Request for comments:

Looking for suggestions as to best practice for the above scenario. I have and currently use option one on all of my servers without issue but thought I would get some feedback from the grey matter here on this board.

Thanks!
 
Old 08-05-2003, 08:49 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
I suggest that you not run sendmail as a daemon at all, if it is not accepting incoming mail delivery. If your cron jobs are doing thier job at keeping the mail queue moving, then it is not nessasary to run sendmail as a daemon. Knowing nothing about AIX, I can't illude as how to take it out of the init process. If it is SYSV based, there will be a script under /etc/init.d that you can simply remove the executable permission and it will be disabled (but no deleted) from startup. From the language of your message, you are already familiar with all of this and I'm now asking myself, "why am I explaining this?". I hope this helps, good luck.
 
Old 08-05-2003, 10:44 AM   #3
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Original Poster
Rep: Reputation: 30
yeah dude I actually thought the same thing on the way to work. I think we will go this route of cron helping out.
 
Old 08-06-2003, 06:26 AM   #4
cyph3r7
Member
 
Registered: Apr 2003
Location: Silicon Valley East, Northern Virginia
Distribution: FreeBSD,Debian, RH, ok well most of em...
Posts: 238

Original Poster
Rep: Reputation: 30
Just a follow up:

First bentz, thanks you pointed me to the K.I.S.S. principle. (For those who don't know, Keep It Simple Stupid, not the rock band.)

Anyway, we tried the approach of disabling from inet on boot and running the daemon like so "sendmail -q 60m"

works like a champ, thanks bro....
 
Old 08-06-2003, 08:12 AM   #5
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
No problem! I'm glad it's working for you.
 
  


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
Is this setup reasonably secure? The_JinJ Linux - Newbie 3 10-04-2005 08:34 PM
setup a secure proxy darkleaf Linux - Security 2 07-13-2005 07:58 PM
HOw to setup a moden in AIX synthol6 AIX 2 02-22-2005 04:38 PM
Sendmail On Aix 4.3.3 zepplin611 AIX 3 01-18-2004 09:36 PM
Trying to setup a secure webserver pyrombca Linux - Software 0 09-02-2003 05:04 PM

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

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