Error: Postfix/amavisd - connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

You use a Postfix setup with amavisd-new and get the following errors in your mail log:

Aug 17 14:58:33 server1 postfix/smtp[5993]: F0C57124E77: to=<[email protected]>, relay=none, delay=2524, delays=2524/0.27/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Or:

Aug 17 09:42:24 server1 postfix/error[7809]: 15D54124E53: to=<[email protected]>, relay=none, delay=269, delays=0.49/269/0/0.04, dsn=4.4.2, status=deferred (delivery temporarily suspended: conversation with 127.0.0.1[127.0.0.1] timed out while receiving the initial server greeting)

 

Solution

Please restart both amavisd-new and Postfix and then check with

netstat -tap

that both are running on the ports

25 and 10025 (postfix)

and

10024 (amavisd-new).

Falko Timme

About Falko Timme

Falko Timme is an experienced Linux administrator and founder of Timme Hosting, a leading nginx business hosting company in Germany. He is one of the most active authors on HowtoForge since 2005 and one of the core developers of ISPConfig since 2000. He has also contributed to the O'Reilly book "Linux System Administration".

Share this page:

Suggested articles

10 Comment(s)

Add comment

Comments

By: Anonymous

Thank you very much for this. I was getting this issue because amavis wasn't actually running. 

By: Anonymous

yes, starting the amavis was the solution...

 

thanks

By: Jeroen

What if the problem is repeating itself after about 5 days?
What causes these services to stop? Logging gives no clue (because there isn't any) 
I have to restart the mail server every now and then. It's a production system with lots of users. Very inconvenient.
System: Debian Wheezy 

 

 

By: admin

If you like to get help with your problem, then please post in our porum. (See yellow box above the comment section on this page "Please do not use the comment function to ask for help! If you need help, please use our Forum.".

By: AndreasK

Did you get a solution for the postfix/amavis hangs? I got exactly the same Problem. Every few days i have to restart postfix and amavis...

By:

Starting amavisd: hostname: Name or service not known
  The value of variable $myhostname is "", but should have been
  a fully qualified domain name; perhaps uname(3) did not provide such.
  You must explicitly assign a FQDN of this host to variable $myhostname
  in /etc/amavis/conf.d/05-node_id, or fix what uname(3) provides as a host's
  network name!
(failed).

 When you receive this error make sure you edit your /etc/hosts file for your server like this (with your details):

[..]
192.168.0.100   server1.example.com     server1
[..]

and /etc/hostname:

[..]
server1.example.com
[..]

By: Altair Mentzingen

Thank you thank you!

 I just needed search for part of error to find this amazing and simple solution.

I forgot about the Amavis and you  helped me!

Best regards 

By: tg95

how i can start amavisd-new? thanks for help

By: borekon

sudo service amavisd-new restart

By: #KMA_DK

Error Mail Queue log:205944A50DB 22889 Mon Mar 19 15:58:07 [email protected] domain.org(connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)[email protected]

The problem is with amavisd-new Edit /etc/amavis/conf.d/05-node_id Uncomment and fill in FQDN $myhostname = "name.of.server";

service amavisd-new restart

Tadaaa!!