Commit graph

280 commits

Author SHA1 Message Date
Shawn Iverson 219609d89c
Use correct callback in debug message (#376) 2019-03-09 14:53:22 -05:00
Shawn Iverson 36473c2c72
Honor whitelistmaxrecips (#374) 2019-03-08 17:58:54 -05:00
Shawn Iverson fd84aa3154
Fix missing ; in MSMilter (#373) 2019-03-03 18:10:27 -05:00
Shawn Iverson 3b6b4d4888
Update doc and align versions (#372) 2019-03-03 17:27:37 -05:00
Shawn Iverson 8a419c96d6
Check for empty queue id (#368) 2019-03-03 08:54:37 -05:00
Shawn Iverson 9ddb121861
Make esets sudo optional (#370)
Provide both methods
Include README
Update RHEL and SUSE specs
2019-02-27 03:50:35 -05:00
Shawn Iverson ac76972fd6
Better process kill handling and fix cleanup (#369) 2019-02-27 03:50:04 -05:00
Shawn Iverson a4370996d9
Ignore Denial of Service option (#367) 2019-02-27 03:49:00 -05:00
Shawn Iverson 88ff783ccb
Add mailto phishing highlight option (#359) 2019-01-27 14:24:01 -05:00
Shawn Iverson 51c4113fd3
Take variables out of local scope (#354)
* Take variables out of local scope

* Update SweepViruses.pm
2019-01-16 06:27:50 -05:00
Shawn Iverson 9b7cfa5a1d
Refactor absolute path in Sophos (#353) 2019-01-15 23:18:35 -05:00
Shawn Iverson 7f8b5c4da8
AVG scan fix (#352) 2019-01-15 23:10:47 -05:00
Shawn Iverson 5ee1d9650d
Check for absolute path in Sophos Scan (#351)
Fix for Sophos in Issue #348
2019-01-15 19:41:07 -05:00
Shawn Iverson 5eff4691fe
Handle ipv6 packed socket properly (#345) 2019-01-06 07:50:16 -05:00
Shawn Iverson 46128523c6
sudo for esets-wrapper (#350) 2019-01-05 16:41:16 -05:00
Shawn Iverson 5e11fad448
Change to literal mailto: (#339) 2018-12-22 17:09:18 -05:00
Shawn Iverson 5d0091ec69
Handle HTML entity in mailto (#336)
* Handle HTML entities in mailto
2018-12-19 06:05:22 -05:00
Shawn Iverson 7e89f59321
Enforce 7 bit characters in filenames (#334)
Fix needed to fully resolve https://github.com/MailScanner/v5/issues/233
2018-12-16 11:04:10 -05:00
Shawn Iverson 72c137861a
Revert decode_headers (#331) 2018-12-10 15:04:04 -05:00
Shawn Iverson 79e23a2d24
Esets fixup (#330) 2018-12-10 08:12:17 -05:00
Shawn Iverson c13d6b6517
Comment out old boundary fix (#328)
Fix https://github.com/MailScanner/v5/issues/324
2018-12-09 05:58:54 -05:00
Mark Sapiro 1da0614ba5 Add "for <...>; date-time" to MSMilter Received: header. (#327) 2018-12-09 05:39:53 -05:00
Mark Sapiro d90798638e Add 'Authenticated' note to Received: header for SASL auth mail. (#325) 2018-12-08 07:44:10 -05:00
Shawn Iverson 6c7a939f44
Cleanup email text (#321)
Fix Issue #320
Move split operation to after text cleanup
2018-11-29 12:47:25 -05:00
Shawn Iverson be5474b017
Capture real postfix queue id (#318) 2018-11-25 14:06:36 -05:00
Shawn Iverson b19a4ec9fb
Remove CRs (#315) 2018-11-25 13:44:49 -05:00
Shawn Iverson 8559b1679a
Display correct warning for QMQP socket (#317) 2018-11-25 09:25:38 -05:00
Shawn Iverson b2295fc746
QMQP Support for Milter (#311)
Includes documentation update
2018-11-24 13:07:45 -05:00
Mark Sapiro de22c49b7b Fix 304 (#313)
* Remove invalid change of '#include' to 'include' in
 /etc/apparmor.d/usr.sbin.clamd.

* Add Missing MilterDispatcher settiing to the simple values section.

* Fix #304
2018-11-24 13:07:07 -05:00
Shawn Iverson ff82b59652
Reveal urls in links support (#304) 2018-11-24 05:18:39 -05:00
Shawn Iverson a87fe136af
Add mailto phishing support (#303) 2018-11-24 05:05:41 -05:00
willemnviljoen c047272d3a Added regex to remote base directory from output lines in AVG parser, to get rid of progress bar artefacts in recent AVG builds (#310) 2018-11-23 13:20:20 -05:00
Shawn Iverson 5521a030ba
Refactor for multiple emails per session (#305)
* Refactor for multiple emails per session

* Add close_callback to milter
2018-11-21 16:13:38 -05:00
Shawn Iverson e9773ffe44
Fix Subject miss after following To: header (#307) 2018-11-21 08:33:35 -05:00
Shawn Iverson 7c50782034
Make $PidFile Global (#306) 2018-11-21 04:42:15 -05:00
Shawn Iverson 05e1a6d0a3
Quarantine option for DOS protection (#302) 2018-11-17 10:44:10 -05:00
Shawn Iverson 3fae404397
Add ExitParent handler (#301) 2018-11-17 10:25:47 -05:00
Shawn Iverson 840eb57b76
Remove and add back recipients (#298) 2018-11-15 07:53:50 -05:00
Mark Sapiro d80fa6490d Add missing MilterDispatcher line to ConfigDefs.pl (#295)
* Remove invalid change of '#include' to 'include' in
 /etc/apparmor.d/usr.sbin.clamd.

* Add Missing MilterDispatcher settiing to the simple values section.
2018-11-11 13:40:50 -05:00
Shawn Iverson bacb0e8015
Milter postfork dispatcher support (#294)
Also bump MAXREQ to 100 from max children (10 by default)
2018-11-11 09:47:55 -05:00
Shawn Iverson 1c538dba74
Clear recipient array during loop (#293) 2018-11-10 09:58:43 -05:00
Michael Pietsch 1e7ea3382d Introduce option to disable rbl check if user is authenticated to mta (#128) (#131)
* Introduce option to disable rbl check if user is authenticated to mta (#128)

* debug option for comparing metadata in other mta

* only test if user is authenticated if mta==postfix to skip rbl

* Add notice that "Spam List Skip If Authenticated" is Postfix only
2018-10-26 19:12:35 -04:00
Shawn Iverson 37320e365d
Keep utf-8 header data (#288) 2018-10-26 09:16:30 -04:00
Shawn Iverson 2392baf944
Additional deps for systemd unit (#286) 2018-10-26 07:38:50 -04:00
Shawn Iverson 651235f50b
Add additional service deps (#285) 2018-10-26 07:07:40 -04:00
Shawn Iverson c44086a3de
Simplify esets output (#284) 2018-10-26 06:03:25 -04:00
Shawn Iverson 71c58cf0cc
Add newline to end of virus.scanners.conf (#283) 2018-10-24 18:50:36 -04:00
Shawn Iverson 89d57e3f99
Don't write predata header (#282) 2018-10-24 18:38:13 -04:00
Shawn Iverson 6c2630d29a
Refactor patch (#276)
Fix condition operators
Move patch to common
Only install Perl::ClamAV if cpan option is chosen
2018-10-23 17:35:35 -04:00
Shawn Iverson a21ffc4a4e
Fix MailScanner version subsitution and patch path (#272) 2018-10-22 17:52:52 -04:00
SamitOC a669c8fbe6 Update Message.pm (#269) 2018-10-22 08:53:03 -04:00
Shawn Iverson b0e4319c01
Spec updates, virus.scanners.conf, cleanup (#266) 2018-10-21 17:49:11 -04:00
Shawn Iverson 3d90b6cfae
Update changelog, fixes for SweepViruses.pm (#265) 2018-10-21 12:42:17 -04:00
Shawn Iverson 88be7f643b
Bump version in MailScanner (#264) 2018-10-20 13:11:16 -04:00
Shawn Iverson 269f52b424
Clamd full message scan (#262)
Issue #219
2018-10-20 12:31:01 -04:00
Shawn Iverson 45486a9e01
Detect fax and tel links (#261)
Fix Issue #224
2018-10-20 12:11:47 -04:00
Shawn Iverson b3045e4db3
Remove curly bracket (#259) 2018-10-19 05:45:28 -04:00
Shawn Iverson f70794f11d
mime_to_perl_string fix (#258)
Fix Issue #253 across entire codebase
2018-10-18 20:18:08 -04:00
Shawn Iverson c8b32dca89
Remove wide characters before parsing headfile (#257)
Fix Issue #253
2018-10-18 19:34:43 -04:00
Shawn Iverson f1985d29d5
Kaspersky (#256)
Fix Issue #142
2018-10-17 19:28:18 -04:00
Shawn Iverson cf7a3ff1fb
Ignore archive damaged (#255)
Fix issue #251
2018-10-14 19:42:56 -04:00
Shawn Iverson 8beeebefca
Report Cleanup (#254)
Remove obsolete legal message
Create en_uk (I was tempted to call it Brexit)
2018-10-14 19:09:13 -04:00
Shawn Iverson 6cfe21fe99
Workaround MIME::Parser (#250) 2018-10-13 20:12:36 -04:00
Shawn Iverson f1da71c91c
Fix Header Add (#249) 2018-10-13 14:35:02 -04:00
Shawn Iverson e67f8a7c0f
Milter refactor (#248)
Large file processing
Move envelope sender to new pre data header
Move blacklist milter scanner check earlier in milter processing
2018-10-13 12:46:02 -04:00
Shawn Iverson a39b8b30b8
Remove step backwards in AppendHeader (#247) 2018-10-13 09:25:18 -04:00
Shawn Iverson 15ffc56e9c
Multiple original recipient support (#246) 2018-10-13 09:03:47 -04:00
Giorgio Premi 5fa2c390da fixup! Postfix: correctly remove all recipients in DeleteRecipients (#239) (#243) 2018-10-10 19:48:14 -04:00
Giorgio Premi 9da976a29b Postfix: correctly remove all recipients in DeleteRecipients (#239) 2018-10-08 15:36:48 -04:00
Shawn Iverson 6fc2af3603
Fix condition concatenation (#234) 2018-10-04 06:42:46 -04:00
Anatoly cf1c302f66 Fix mktemp on FreeBSD11 flags #226 (#230) 2018-10-03 05:43:16 -04:00
asuweb 4367b27ff7 Adds DrWeb virus scanner to MailScanner (#228) 2018-09-28 16:52:07 -04:00
Shawn Iverson 5083b4e0f0
Performance fix (#222)
Fixes Issue #221
2018-09-04 18:50:02 -04:00
Shawn Iverson 3fce3ff801
MailScanner 5.1.1-1 (#213)
Milter support option for MailScanner
Fix postfix long queue ids getting suffixed with key
MailScanner Milter Documentation
2018-09-01 17:02:08 -04:00
Shawn Iverson 5beb8f1dfb
Cluster friendly update scripts (#211) 2018-08-11 10:23:16 -04:00
SamitOC 9162834ed6 Update Message.pm (#209)
Commented out the space escape in filename as this is causing the opposite effect. Unrar only works when the spaces aren't escaped.
2018-07-27 13:41:55 -04:00
Shawn Iverson 4aeacbb529
Refactor scanning loop (#208) 2018-07-24 21:25:15 -04:00
Shawn Iverson 09c0d0c2c7
Better AV Scan loop with retry attempts (#207)
AV Scan retry loop
2018-07-24 19:51:26 -04:00
Shawn Iverson 39f234785e
Support enable_original_recipient no (#201) 2018-07-12 17:39:50 -04:00
Shawn Iverson 7c121ba493
Update 5.0.7-4 (#183)
* Update 5.0.7-4

* Allow wildcards in phishing lists

* Update changelog
2018-06-16 11:28:10 -04:00
Shawn Iverson 28369a52ee
Switch to gzipped phishing update files (#182)
* Switch to gzipped phishing update files

* debugging and sanity check
2018-06-16 08:56:38 -04:00
T.J eb13773c94 fix for those who don't want a virus scanner or haven't yet installed one but want to take advantage of SpamAssassin (#181) 2018-05-28 11:52:35 -04:00
Giorgio Premi b3b33aa7e2 fixup! Fix Configuration chaining for Sa rules actions in rulesets (#179) 2018-05-23 05:53:23 -04:00
Giorgio Premi 40f81a416c Fix Configuration chaining for Sa rules actions in rulesets (#178) 2018-05-16 06:41:31 -04:00
Shawn Iverson efac485428
Fix mime decoding deprecation (#175)
Fixes #174
2018-05-06 12:15:57 -04:00
Louis van Belle c94d3d1d71 Thctlo patch msinit fix rotating (#165)
* Fix bug, wrong use in systemd file

syslog reports :  [/lib/systemd/system/mailscanner.service:19] Executable path is not absolute, ignoring: no
Removed the reload line from mailscanner.service file.

* disable rotating sign when stopping or deadpid.
2018-03-06 06:38:29 -05:00
Louis van Belle 7f130b7528
Fix bug, wrong use in systemd file
syslog reports :  [/lib/systemd/system/mailscanner.service:19] Executable path is not absolute, ignoring: no
Removed the reload line from mailscanner.service file.
2018-03-06 08:45:43 +01:00
Giorgio Premi 072e47788e Message::SafePipe: make sure $? respect process exit code 2018-03-01 09:14:20 +01:00
Andrew Colin Kissa 86cde73a97
FIX: Untaint the $safename var in unpack7zip
Prevent the taint error in open when the file is encrypted.
2018-02-23 09:40:43 +02:00
Shawn Iverson fe091914a4 Update 2 for 5.0.7-2 2018-02-04 10:50:59 -05:00
Shawn Iverson 36ac01e01d Fix Issue #149
Suppress output for cron
Use ms-init reload for ExecReload instead of kill o prevent detacting custom perl module children from process tree.
2018-02-03 08:27:24 -05:00
Shawn Iverson ecad26caca Fix Issue #143 2018-02-03 08:15:03 -05:00
Shawn Iverson aa680f5fec Fix restart ms-update-bad-emails 2018-01-27 09:15:36 -05:00
Louis van Belle 98bffbc4c4 fixes #144 reload problem mailwatch (#146)
* fixes #144 reload problem mailwatch

added systemctl restart commands

* Update install.sh with more extracters

Added extracters mailscanner/clamd can use.
2018-01-27 09:08:20 -05:00
Mark Sapiro c844c0a576
Remove spaces from CURLORWGET = 'wget' 2018-01-04 13:17:20 -08:00
dirk-de-bugger ef919b99b5 Fix one typo and a bit of grammar in DE translations. 2018-01-01 21:06:36 +01:00
Shawn Iverson a25cb9a743 mariadb dependency for systemd 2017-12-31 09:30:57 -05:00
Shawn Iverson 82c614e74d
Merge pull request #47 from giosh94mhz/chain_sa_rules
Fix configuration chaining for spamassassin rules actions
2017-12-02 18:52:08 -05:00
Shawn Iverson bf67a0fa0b 7zip support 2017-12-02 13:23:06 -05:00
Shawn Iverson a7036442d7
Merge pull request #119 from shawniverson/111817fixunpack
Escape space before passing to unrar extract
2017-11-19 13:21:39 -05:00
Shawn Iverson 2984dda429 Add gz 2017-11-18 20:10:22 -05:00
Shawn Iverson 96e02d65c7 Escape space before passing to unrar extract 2017-11-18 20:04:00 -05:00
Shawn Iverson 2049b107b0 Merge pull request #110 from msapiro/fix_109
Fix parsing an email address into local-part and domain
2017-10-21 16:32:28 -04:00
Mark Sapiro cefaecddf1 Fix parsing an email address into local-part and domain
Email addresses containing a quoted @ in the local part parsed the domain incorrectly.
2017-10-20 11:41:13 -07:00
Shawn Iverson fae0549f02 Merge pull request #90 from msapiro/Fix_89
Fix 89
2017-09-21 10:27:57 -04:00
Mark Sapiro ad814acdcd Point broken links to the wayback machine. 2017-09-20 13:12:58 -07:00
Mark Sapiro a72e2ca63d Fix finding of configured SyslogFacility. 2017-09-06 13:14:49 -07:00
Mark Sapiro 72dca70f34 Properly detect long Queue IDs 2017-09-03 10:19:52 -07:00
Shawn Iverson 1b76e1d022 Fixes for 5.0.6-4
Fixes Issue #82
Fixes Issue #84
Minor return code check added for ms-init during service reload
Update documentation
Add ms_cron_ps_restart to /etc/MailScanner/defaults
Bump revision
2017-08-27 17:43:54 -04:00
Shawn Iverson 253adf0fff New phishing sites update 2017-08-20 17:47:50 -04:00
Shawn Iverson 8385adac35 Issue #62 Fix 2017-08-16 19:51:30 -04:00
Shawn Iverson 80d32d61cf ms-init refactoring and fixes
Normalize styling
Refactor dead pid/rogue process cleanup
Remove PID properly during stop
Better error handling of all possible return values
Remove spinner upon completion
Move logger entries closer to echos where possible for consistency
Refactor spinner code
Increase spinner duration to 60 seconds from 40 seconds
Update modfication date
Fixes #71
2017-08-04 06:18:07 -04:00
Shawn Iverson ed70848cb3 Fix ms-init hanging
Prevent ms-init from mistaking itself as a MailScanner process.
2017-07-24 18:09:17 -04:00
Shawn Iverson d6fbd99d32 Merge pull request #61 from Rico29/patch-1
Update sender.filename.report.txt
2017-07-24 17:28:49 -04:00
Shawn Iverson 38240e64a9 Merge pull request #59 from msapiro/master
Bring Spam List documentation in line with current spam.lists.conf.
2017-07-24 17:28:04 -04:00
Shawn Iverson 9a75b7ce38 Reapply minor updates
Replay relevant changes from f89bea2e9a
2017-07-23 13:18:42 -04:00
Shawn Iverson 42aae129f6 Revert "Merge remote-tracking branch 'origin/master'"
This reverts commit b02c2fbbfd, reversing
changes made to ae878a57a6.
2017-07-23 12:32:39 -04:00
Rico29 aa16144d99 Update sender.filename.report.txt
Typo correction : "Noter" should be "Notre"
2017-07-11 11:07:29 +02:00
Mark Sapiro 61f0eae3fe Bring Spam List documentation in line with current spam.lists.conf. 2017-07-04 20:57:40 -07:00
Jerry.Benton b02c2fbbfd Merge remote-tracking branch 'origin/master'
# Conflicts:
#	debian/DEBIAN/postinst
#	rhel/mailscanner.spec
2017-06-08 07:22:28 -04:00
Jerry.Benton f89bea2e9a minor updates 2017-06-08 07:20:54 -04:00
shawniverson 282ac3e673 systemd enhancements
cleanup mailscanner.spec spacing
add systemd logic
add ms-systemd
add ms-sendmail*
2017-06-06 18:41:40 -04:00
dwhile 66c929ba82 Race condition on restart
Both ms-init and MailScanner try to reomve the PID file when stopping. This change stops ms-init from removing the file and adds a wait until the file is removed by MailScanner until continuing.
2017-04-28 09:53:32 +01:00
Christophe GRENIER f92a1d1a78 Quiet wget and curl in ms-update-safe-sites 2017-04-27 12:23:27 +02:00
Christophe GRENIER 4ff9f2719e Update ms-update-bad-sites
Quiet curl and wget
2017-04-27 12:22:02 +02:00
Giorgio Premi e82c4d5500 Fix configuration chaining for spamassassin rules actions 2017-04-05 12:44:43 +02:00
Giorgio Premi f759ce0546 Log all SpamAssassin rules triggered 2017-04-05 11:37:07 +02:00
Alan Urquhart b9069a9f91 Adds rblspamreport to returned array for use in custom functions 2017-03-18 19:25:55 +00:00
Jerry Benton df1d74a6e6 Merge pull request #33 from giosh94mhz/v5_unrar_fixes
Unrar v5: use vt command to detect encrypted files
2017-03-08 12:04:41 -05:00
Jerry Benton e00a33b83d Merge pull request #44 from msapiro/master
Fix for https://github.com/MailScanner/v5/issues/43.
2017-03-07 22:24:33 -05:00
Jerry.Benton ae1a882137 postfix updates
none
2017-03-07 22:24:19 -05:00
Mark Sapiro 40ac7a20e6 Fix for https://github.com/MailScanner/v5/issues/43. 2017-03-07 16:23:42 -08:00
Giorgio Premi 47220e71c5 Unrar v5: use vt command to detect encrypted files 2016-12-23 11:39:52 +01:00
Jerry.Benton 8ad3b65283 v5.0.4-4
updates
2016-12-03 07:53:12 -05:00
Jerry.Benton 81b7da24ed v5.0.4-4
updated postfix, spec, and readme
2016-11-16 18:20:38 -05:00
shawniverson 3c45326c42 Fix to allow spaces in $RName 2016-11-16 17:39:34 -05:00
Jerry.Benton 31e047342e v5.0.4-2 update
none
2016-11-08 00:29:06 -05:00
Jerry.Benton e4f57fccca pull request #27
update
2016-11-07 23:22:18 -05:00
Jerry.Benton 51e9792330 5.0.4 beta2
none
2016-11-07 23:04:58 -05:00
Jerry.Benton 2245a93e39 5.0.4 beta
push
2016-11-07 22:47:40 -05:00
Jerry.Benton c1c957693f issue #18 added
added option in message.pm
2016-10-14 02:42:12 -04:00
Jerry.Benton 71f490bc2c sa.pm mod
changed how SA module is eval’d
2016-09-12 20:54:37 -04:00
Mark Sapiro 0638905794 Update MailScanner.conf
Expand the doc about conf.d files to explain about variables used in other definitions.
2016-09-12 17:47:59 -07:00
Jerry.Benton b0f54a822a v5.0.3-7
none
2016-08-14 12:05:15 -04:00
Jerry.Benton c7697bb683 esets added
none
2016-08-13 12:35:35 -04:00
Jerry.Benton 9a16991688 avast update
none
2016-08-13 05:14:32 -04:00
Jerry.Benton d3c65b80d5 none
here
2016-08-12 12:56:31 -04:00
Jerry.Benton 1a241e5eb3 v5.0.3 update
none
2016-08-12 12:48:28 -04:00
Jerry.Benton 5b6d88bfa4 v5.0.3-3
none
2016-08-12 12:03:09 -04:00
Jerry.Benton d30bcc0d64 v5.0.3 prep
none
2016-08-12 10:39:31 -04:00