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

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)

14 Comment(s)

Add comment

Please register in our forum first to 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 sender@some 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!!

By: 30uke

Thank you! That solved it for me! ::cheers::

By: brody

you forgot to tell us what comands to use to  restart both amavisd-new and Postfix

By: Johan

Hi Till,

I have the same here with fresh installation and following the instruction on Perfect server setup Ubuntu 20.04I did the install on Ubuntu 20.04 LTS and Debian 10, but ended with the same result. After ten or more times reinstalling I don't know where to search anymore. Maybe you know the answer, restarting Postfix and Amavis was not the solution for me.

 

Jun 12 09:46:57 svr04 postfix/qmgr[481087]: 436937E11FE: from=<******>, size=5069, nrcpt=1 (queue active)

Jun 12 09:46:57 svr04 postfix/lmtp[575084]: connect to 127.0.0.1[127.0.0.1]:10024: Connection refused

Jun 12 09:46:57 svr04 postfix/lmtp[575084]: 436937E11FE: to=<****>, relay=none, delay=0.13, delays=0.12/0.01/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10024: Connection refused)

Kind regards,

Johan

By: till

Please post in the ISPConfig support forum if you need help with your ISPConfig installation: https://www.howtoforge.com/community/#ispconfig-3.23

A common mistake is that a wrong hostname is set on your server so that 'hostname -f' command on Linux fails to display the full (fqdn) hostname. In such a case, amavis will fail to start. Fix the hostname and start amavis then.