On Mon, Mar 06, 2023 at 11:59:03AM +0000, Marc wrote: > > > I recently had an issue where mail was temporarily rejected because > clamav-milter/spamass-milter could not connect to clamd/spamd. Clamd/Spamd > are a tasks that can automatically change hosts and thus their ips. A simple > restart of the milter fixes this (resolves the new ip). > > However, it would be nice if something could be added to the milter code > that, if it can't contact spamd, it tries to re-resolve the ip address > automatically. > > ps. as you can deduct from the text I am not a 100% sure which milter caused > this actually.
It's clamav-milter doing dumb things. Looking at the source code it just resolves the address at startup and keeps using the IP indefinitely. That's not how a software is supposed to work. File a bug report to ClamAV, and good luck since the milter code seems practically unchanged since 2009. :-)