* Gary V <[EMAIL PROTECTED]> [2007-12-01 08:48:34 -0700]: > > After disabling SPF verification in init.pre, I restarted amavisd-new. The > > logs show that SPF modules are still being loaded: > > > > Nov 30 22:52:57 bulwark amavis[73066]: Module Mail::SPF v2.004 > > Nov 30 22:52:57 bulwark amavis[73066]: Module Mail::SPF::Query 1.999001 > > > > How can I disable amavis/SA SPF checks? > > There may an additional file elsewhere that is loading the module. For > example, I would recursively grep the files in the directory where SA > places the sa-update files (/var/lib/spamassassin/<version>/ for > example). > > msa:~# grep -r loadplugin /var/lib/spamassassin/3.002003/ | grep SPF
On this machine, sa-update downloads to /var/db/spamassassin/3.002003: bulwark# grep -r loadplugin /var/db/spamassassin/3.002003/ bulwark# The SPF loadplugin line is only un-commented in a .sample which is not interpreted by SA: bulwark# grep -r SPF /usr/local/etc/mail/spamassassin/ | grep -v # /usr/local/etc/mail/spamassassin/init.pre.sample:loadplugin Mail::SpamAssassin::Plugin::SPF So it appears amavisd loads SA modules independently, not based on the contents of .pre files: bulwark# grep Mail::SPF /usr/local/sbin/amavisd Mail::SPF Mail::SPF::Query NetAddr::IP URI Razor2::Client::Version Mail::SPF Mail::SPF::Server Mail::SPF::Request Mail::SPF::Mech Mail::SPF::Mech::A Mail::SPF::Mech::PTR Mail::SPF::Mech::All Mail::SPF::Mech::Exists Mail::SPF::Mech::IP4 Mail::SPF::Mech::IP6 Mail::SPF::Mech::Include Mail::SPF::Mech::MX Mail::SPF::Mod Mail::SPF::Mod::Exp Mail::SPF::Mod::Redirect Mail::SPF::SenderIPAddrMech Mail::SPF::v1::Record Mail::SPF::v2::Record # the 3.2.0 could support the old Mail::SPF::Query too push(@modules, qw(Mail::SPF::Query)); # if $sa_version_num < 3.002000; bulwark# Based on the FAQ and actual SA headers, I understand that local.cf is interpreted by SA running through amavisd (even though some scores/rules may be ignored). But I could not find any information on the handling/loading of modules. What is the right way to disable an SA module with an amavisd setup? Should I be editing the bin? -- Sahil Tandon <[EMAIL PROTECTED]> ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3 AMaViS-HowTos:http://www.amavis.org/howto/