Problems with systemd-networkd

Mark Martinec Mark.Martinec+amavis at ijs.si
Fri Jun 20 20:48:43 CEST 2014


Stefan,

> today I updated my server to use some new systemd services, such as
> systemd-networkd [1] and systemd-resolved [2]. Using systemd-resolved I
> have to symlink /etc/resolve.conf to /run/systemd/network/resolv.conf.
> Amavis-new seems to have a problem with this configuration because 
> these
> messages show up in the journal:
> 
> Jun 04 15:47:26: (available_nameservers: No DNS servers available!)
> Jun 04 15:47:26: rules: failed to run NO_DNS_FOR_FROM RBL test,
> skipping:
> Jun 04 15:47:26: plugin: eval failed: available_nameservers: No DNS
> servers available!
> Jun 04 15:47:26: Argument "0.76_1" isn't numeric in numeric ge (>=)
> at /usr/share/perl5/vendor_perl/Mail/DKIM/PublicKey.pm line 113.
> 
> Just as a wild guess, I think amavis-new does not follow the symlink.

It is the SpamAssassin that is calling Net::DNS which expects
file resolve.conf to reside in /etc by default.

Moreover, if your version of Net::DNS is 0.76 or later, there is
a compatibility issue with SpamAssassin. You need to upgrade the
Mail::SpamAssassin to the latest SVN trunk version, or apply
the patch, or downgrade Net::DNS to 0.75 or earlier.

See: https://issues.apache.org/SpamAssassin/show_bug.cgi?id=7057

   Mark


More information about the amavis-users mailing list