I have a development machine on my home network which I've tried to make as a mirror image of my production server which is at a colocation site. My ISP for home internet access and outgoing email is separate from the colocation network. I run Slackware 14.7 at both sites.
When I run ssmtp on my dev box with the command:
/usr/sbin/ssmtp
jane@foo.com < /home/bud/ssmtpTestEmail.txt
it executes rather quickly and sends the email.
When I issue the same command at my production site it takes nearly 3 minutes to execute.
ssmtp.conf is the same at both loacations (except for the hostname). Here it is
root=joe@myISP.net
mailhub=smtp.myISP.net:587
rewriteDomain=
hostname=UnixBox
FromLineOverride=YES
UseSTARTTLS=YES
AuthUser=uname
AuthPass=pword
What could be stalling it in production. I have sendmail running at production but shutting it off does not seem to help.
Does it execute faster at home because I'm connecting to my ISP's mail server while in a sense I'm on their network?
Any way to speed up responce in production?