[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: few scripting questions

> > 1. when syncing mail from one machine to another, right now I shut down
> > sendmail copy the mail over then service sendmail start. Wondering if I
> > just couldn't shut down port 25? If so how to shut down and open ports
> > in a script?
> close: /sbin/iptables -I INPUT -p tcp -m tcp --dport 25 -j REJECT
> --reject-with icmp-port-unreachable
> open: /sbin/iptables -D INPUT -p tcp -m tcp --dport 25 -j REJECT
> --reject-with icmp-port-unreachable
kk thx Alexander!
> > 
> > > 2. Is there anyway to log out/logon users in a script?
> > 
> > Which users? You could kill the shells of logged in users.
> > 
> > Alexander

nah, ...just couple of my own names...rado on one and rado something on
the other...just for testing back and forth

> Killing X will log off the local X user.  Consequences to him may be
> extreme, however.
> Bob...

hi Bob,
now I'm also thinking about just logging rado in on both machines...only
do email on the one that's got the roaming ip or vice-versa...probably
leave the master alone and just do everything from the slave.

..reminds me Bob, when I clean up the code, I want to send you these
files and let you pick them apart for me if you will. ...looks like
spaghetti right now

> Alexander

Instead of closing port 25 completely it may be wiser to let Sendmail
keep running but to prevent it to accept incoming mail. One way to do so
could be to stop a milter service - i.e. if you have clamav-milter
running - and let Sendmail then report a temporary failure to the sender


ummmmm, I like that too! thx again Alexander  ...and yes, I do run

k thx u2 for the help

John Rose

...and I woke up 2 days later, in the back yard, talkin to Elvis!

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]