LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   questions on sendmail and iptables (https://www.linuxquestions.org/questions/linux-software-2/questions-on-sendmail-and-iptables-138987/)

aetengoku 01-26-2004 06:06 PM

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

born4linux 01-26-2004 06:53 PM

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.

aetengoku 01-26-2004 07:11 PM

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

born4linux 01-27-2004 07:11 PM

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.

spwbot 01-27-2004 09:14 PM

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.


All times are GMT -5. The time now is 01:33 AM.