I found my system would boot up and Amavisd was unable to bind to 127.0.0.1:10024, it would sometimes bind to ::1 and always created unix socket. Not having 127.0.0.1:10024 listening broke email filtering. I was able to duplicate consistently, and restart of the service would properly bind 127.0.0.1 Conclusion was amavisd starting before network was up. I added net.lo to default runlevel and that didn't help. Changing init script depend section adding "need net" fixed my issue: depend() { use net logger antivirus snmpd need net before mta }
If anything, this should "need loopback" IMO as that is what creates 127.0.0.1 and marks it "up". This may also be a local configuration issue which could go in conf.d/amavisd-new as rc_need=
Amavis can be configured to listen using file system based Unix domain sockets only, so it does not "need net". If your local configuration relies on TCP sockets, you can of course modify the depend() function, but that is not something needed by everybody.
works for me.. I just noticed this and thought it best to report. There was also an unresolved post on gentoo forums from 2018 with similar symptom, not much action on that so it must not happen to many folks. Perhaps a side effect of config, vSphere..server load...
Brenden, I forgot to ask: Do you perhaps use rc_parallel=YES in your rc.conf?
rc_parallel was the first thing I checked, set it to =no just in case, that didn't seem to help.
As a possible further item of interest, I now cannot duplicate the problem, at least reliably. I have reverted all of my 'hacks' and added an amavisd.start file in local.d with '/etc/init.d/amavisd restart' My primary concern if having working system at boot, this works around it. Thanks for the help, unless someone thinks there are changes that could improve this in a sensible way.. I believe this bug can be closed.
(In reply to Brenden Walker from comment #6) > As a possible further item of interest, I now cannot duplicate the problem, > at least reliably. I have reverted all of my 'hacks' and added an > amavisd.start file in local.d with '/etc/init.d/amavisd restart' > > My primary concern if having working system at boot, this works around it. > > Thanks for the help, unless someone thinks there are changes that could > improve this in a sensible way.. I believe this bug can be closed. This is most likely overkill and all you need to do is create/edit /etc/conf.d/amavisd and add rc_need="loopback"
I suggest to try the method Brian recommended. Alternatively, "after net" works as well and does not generate the same dependencies as "need net". In any case, I'll close this issue now.