Resolved – connect to[]: Connection refused (port 10024)

On my ispconfig server I had this occur.  Amavisd was down that is why postfix wouldn’t deliver email.  When I tried to start amavisd:

/etc/init.d/amavisd start

It gave me an error that my hostname wasn’t valid.

I edited this file : /etc/amavisd/amavisd.conf

Uncommented the following line and inserted in a proper hostname:

$myhostname = ‘’

Save the try to start:

/etc/init.d/amavisd start

Send a test email , postfix shoud not delivery mail just fine.