On Qua, 15 Abr 2009, "Kurian Thayil" wrote:
Hi All,

I need to write a BASH script which does a set of operations. But this
set of operations must be done only after checking if I am able to use a
relay server for sending mails. So, consider my client server where bash
script would be run as 192.168.0.10. Now, I need to execute a script
only after making sure that I am able to send mail using the relay
server 192.168.0.20 (Postfix enabled). Is it possible for me to write a
bash script which check this? I tried using the script but giving Failed
as the response even though I am able to connect to the mail server.

swaks is a program for testing SMTP servers. I'm not sure if it informs the state via return codes, but it is worth a look.

--
Eduardo M KALINOWSKI
edua...@kalinowski.com.br


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to