Mailscanner UNOFFICIAL package for pfSense 2.3.x
-
Hi everybody.
Here are install instructions for UNOFFICIAL mailscanner package for pfSense(R) software 2.3.x
Under console/ssh, fetch the install script, check what it does if you want and then execute it.
cd /root fetch https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/pkg-mailscanner/files/install_mailscanner_23.sh sh ./install_mailscanner_23.sh
Once you install, some cpan modules will be still missing . I consider they important to spamassassin to work properly but to install it on freebsd or pfSense, you will need gcc and other compile stuff installed.
Mar 28 17:15:48.929 [92279] dbg: diag: [...] module not installed: Digest::SHA1 ('require' failed) Mar 28 17:15:48.929 [92279] dbg: diag: [...] module not installed: Geo::IP ('require' failed) Mar 28 17:15:48.929 [92279] dbg: diag: [...] module not installed: Net::CIDR::Lite ('require' failed) Mar 28 17:15:48.930 [92279] dbg: diag: [...] module not installed: Razor2::Client::Agent ('require' failed) Mar 28 17:15:48.931 [92279] dbg: diag: [...] module not installed: LWP::UserAgent ('require' failed) Mar 28 17:15:48.931 [92279] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
If you decide to complete spamassassin features, run this second script to pfSense be able to compile cpan modules.
cd /root fetch https://raw.githubusercontent.com/marcelloc/Unofficial-pfSense-packages/master/pkg-mailscanner/files/install_cpan_modules_23.sh sh ./install_cpan_modules_23.sh
Once it finishes, all must be in place. If you do not see the menu after it finishes, try to install any pfSense package from GUI, like cron for example.
WARNING
Use it at your own risk.
This script install packages from freebsd and change your config file.
-
I've include 7zip, rar and PDFID patch to mailscanner package, just re-run install to get latest updates.
Thanks for Bismarck and danny at tweegy.nl
-
Sorry posted in postfix antispam thread by mistake…
Updated but now have two 'Mailscanner' services menu items.. Looks like check_mailscanner_service.php is looking for menu item 'mailscanner' not 'Mailscanner'...
-
Sorry posted in postfix antispam thread by mistake…
Updated but now have two 'Mailscanner' services menu items.. Looks like check_mailscanner_service.php is looking for menu item 'mailscanner' not 'Mailscanner'...
Thanks, I'll fix it.
-
Thank for your job, marcelloc!
Installed mailscanner with your script and installed cpan modules after that on fresh system.
Try to check spamassasin in shell with GTUBEspamassassin -t < test.txt > spam.out
Got:
plugin: failed to parse plugin /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm: Can't locate /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm in @INC (you may need to install the ::usr::local::etc::mail::spamassassin::DecodeShortURLs module) (@INC contains: /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24) at /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/PluginHandler.pm line 109.
-
Does spamassassin –lint gets the same result?
-
Yep, the same result
May 5 13:46:22.245 [32795] warn: plugin: failed to parse plugin /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm: Can't locate /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm in @INC (you may need to install the ::usr::local::etc::mail::spamassassin::DecodeShortURLs module) (@INC contains: lib /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24) at /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/PluginHandler.pm line 109, <data>line 717.</data>
-
Yep, the same result
May 5 13:46:22.245 [32795] warn: plugin: failed to parse plugin /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm: Can't locate /usr/local/etc/mail/spamassassin/DecodeShortURLs.pm in @INC (you may need to install the ::usr::local::etc::mail::spamassassin::DecodeShortURLs module) (@INC contains: lib /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/site_perl/mach/5.24 /usr/local/lib/perl5/5.24/mach /usr/local/lib/perl5/5.24) at /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/PluginHandler.pm line 109, <data>line 717.</data>
Try:
fetch -q -o /var/db/spamassassin/3.004001/DecodeShortURLs.pm https://raw.githubusercontent.com/smfreegard/DecodeShortURLs/master/DecodeShortURLs.pm
or
fetch -q -o /usr/local/lib/perl5/site_perl/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm https://raw.githubusercontent.com/smfreegard/DecodeShortURLs/master/DecodeShortURLs.pm
both will work.
-
still no result :( the same error
-
#install shorturl mailscanner plugin plugin_file=DecodeShortURLs.zip fetch -o $plugin_file https://github.com/smfreegard/DecodeShortURLs/archive/master.zip unzip -o $plugin_file cp DecodeShortURLs-master/*pm $plugin_dir/plugins/ cp DecodeShortURLs-master/*cf $plugin_dir
The install script looks ok for me. I'll test on a new install.
-
DecodeShortURLs.pm need to be side by side with DecodeShortURLs.cf or in spamassassin perl folder, like:
/var/db/spamassassin/3.004001/DecodeShortURLs.pm
/usr/local/lib/perl5/site_perl/Mail/SpamAssassin/Plugin/DecodeShortURLs.pm
cp DecodeShortURLs-master/*pm $plugin_dir/plugins/
will not work, because its:
/var/db/spamassassin/3.004001/plugins/DecodeShortURLs.pm
and DecodeShortURLs.cf is looking for:
loadplugin Mail::SpamAssassin::Plugin::DecodeShortURLs DecodeShortURLs.pm
ifplugin Mail::SpamAssassin::Plugin::DecodeShortURLs
…
Its looking for Mail::SpamAssassin::Plugin::DecodeShortURLs or DecodeShortURLs.pm, both should work.
spamassassin -D --lint ... May 5 17:31:19.423 [46111] dbg: config: fixed relative path: /var/db/spamassassin/3.004001/DecodeShortURLs.pm May 5 17:31:19.424 [46111] dbg: plugin: loading Mail::SpamAssassin::Plugin::DecodeShortURLs from /var/db/spamassassin/3.004001/DecodeShortURLs.pm ...
-
DecodeShortURLs.pm need to be side by side with DecodeShortURLs.cf
So I copied DecodeShortURLs.pm from /usr/local/etc/mail/spamassassin/plugins/ to /usr/local/etc/mail/spamassassin/ and now it's working!
thank you guys for your help! -
DecodeShortURLs.pm need to be side by side with DecodeShortURLs.cf
fixed on install script.
https://github.com/marcelloc/Unofficial-pfSense-packages/commit/05e1b73d6b67411b1e6076b6a9c97ee5e3fbc956
Thanks for the feedback.
-
Hello guys,
I have a problem: clamd don't want to start. I tried several times but without any appreciated result.
Any suggestions ?
-
Try on console to execute freshclam
-
I got this error
[2.3.4-RELEASE][admin@ids-pf.medidati.org]/root: freshclam
ERROR: Can't open /var/log/clamav/freshclam.log in append mode (check permissions!).
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).[2.3.4-RELEASE][admin@ids-pf.medidati.org]/var/log/clamav: cat freshclam.log
–------------------------------------
ClamAV update process started at Tue Jun 13 13:18:30 2017
Downloading main.cvd [100%]
main.cvd updated (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
Downloading daily.cvd [100%]
daily.cvd updated (version: 23469, sigs: 1736809, f-level: 63, builder: neo)
Downloading bytecode.cvd [100%]
bytecode.cvd updated (version: 303, sigs: 59, f-level: 63, builder: anvilleg)
Database updated (6303117 signatures) from database.clamav.net (IP: 90.147.160.69)
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock: No such file or directory
[2.3.4-RELEASE][admin@ids-pf.medidati.org]/var/log/clamav: -
WARNING: Clamd was NOT notified: Can't connect to clamd through /var/run/clamav/clamd.sock: No such file or directory
[2.3.4-RELEASE][admin@ids-pf.medidati.org]/var/log/clamav:This means that the daemon was stopped when freshclam finished. Did you tried to start it again after freshclam udpate?
-
Great ! It has started, thaks a lot
-
I installed the package, but don't know where to start
I have this two configs for the same firewall:
external mail server <– internal clients
External mail server -->Internal server
that i want to filter is possible to proxy this config??.
Thanks a lot nice package.
-
2.4.2-RELEASE-p1 (amd64)
built on Tue Dec 12 13:45:26 CST 2017
FreeBSD 11.1-RELEASE-p6[2.4.2-RELEASE][admin@pfSense.corp]/root: sh ./install_mailscanner_23.sh
fetch: /ConfigDefs.pl.patch: No such file or directory
Hmm… I can't seem to find a patch in there anywhere.
fetch: /Message.pm.patch: No such file or directory
Hmm... I can't seem to find a patch in there anywhere.
fetch: /SweepContent.pm.patch: No such file or directory
Hmm... I can't seem to find a patch in there anywhere.