LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 01-26-2004, 06:06 PM   #1
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Rep: Reputation: 0
questions on sendmail and iptables


I am running Redhat 8 and have two questions.
1)Does sendmail have to be running in order to send out mail?
When i restart sendmail i see two things starting sendmail and sm-client
Can i start sm-client without starting the sendmail daemon

2)i set iptables and saved the rules. I see the rules in sysconfig/iptables
they look like this

INPUT ACCEPT [54135:9974089]
FORWARD ACCEPT [0:0]
OUTPUT ACCEPT [39495:9608190]

is this correct (the way it looks) if so how do i get iptables to load these rules. After i reboot i see iptables start but when i run the command iptables -L i see nothing in the rules.

Any help or advice would be greatly appreciated
 
Old 01-26-2004, 06:53 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
1. no. you can send mail even without the sendmail daemon.
2. use 'iptables-save > /etc/sysconfig/iptables' (assuming it doesn't have any rules in there.

man iptables-save for details.

hth.
 
Old 01-26-2004, 07:11 PM   #3
aetengoku
LQ Newbie
 
Registered: Mar 2003
Posts: 20

Original Poster
Rep: Reputation: 0
hi

thanks for the reply

1)when i do "chkconfig --level 2345 sendmail off" i cant seem to send any mail after i reboot the box
but when i do "chkconfig --level 2345 sendmail on" i can send mail. Is there just something wrong with my setup

2)i have already done iptables-save >/etc/sysconfig/iptables
but when i restart the box and i do a iptables -L it shows no rules. are the rules there and it jsut doesnt show or do i need to config something to get it to load the rules from /etc/sysconfig/iptables

again thanks for your help
 
Old 01-27-2004, 07:11 PM   #4
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
ok. ok. looks i missed something - you are sending out mail going out your domain/network? u do need sendmail with that. i was referring to the local mail sending (ie echo "test message" | mail -s test user1@localhost user2@localhost).

try running lokkit (or redhat-config-security?) and check if it will change /etc/sysconfig/iptables. also, make sure that iptables is run @ startup.
 
Old 01-27-2004, 09:14 PM   #5
spwbot
LQ Newbie
 
Registered: Jan 2004
Posts: 4

Rep: Reputation: 0
If your are sending an email to a remote smtp you donīt need the sendmail runing. If you are using the /usr/sbin/sendmail -t, like an example, you donīīt need the sendmail running. But if you want that your machine work like an smtp server an you want to send email using smtp server :localhost or something like that, well, you will need sendmail runing.

Best Regards.
 
  


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
sendmail+iptables eranb2 Linux - Networking 3 01-16-2005 04:14 AM
sendmail, iptables and security Tigger Linux - Security 3 11-25-2003 09:14 PM
Redhat 9, sendmail, iptables TomServo3k Linux - Networking 5 07-01-2003 03:09 PM
sendmail, iptables and security Tigger Linux - Newbie 2 05-27-2003 01:37 PM
sendmail, iptables and security Tigger Linux - General 2 05-27-2003 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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