Monday, June 25, 2012

Test Email Server POB Recipe

Checking if the email server is working from a particular box is a useful test we need to do from time to time. It makes sense to include that test as part of deployment, monitoring, server configuration and more.

Here is a POB script that can be run locally (or remotely from Remoto-IT for example)

Here is how to call it:
./smtp-test.sh "mail.sample.com" 25 "nurquiza@sample.com" "nurquiza@sample.com" "test from bash" "This is just a test"
In case you need to use TLS check this out.

No comments:

Followers