Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 19
  1. #1
    Member
    Join Date
    Jun 2002
    Posts
    132

    Default How do you disable Mailscanner for outgoing but enable for incoming email?

    How do you disable Mailscanner for outgoing but enable for incoming email?

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You need to use a rules file. If you haven't already got one, modify MailScanner.conf so that

    Spam Checks = %rules-dir%/spam.scanning.rules

    Then create a file in the rules subdirectory called spam.scanning.rules and add the domains as follows:

    To: *@mydomain.com yes
    To: *@myotherdomain.com yes
    FromOrTo: default no

    The last one is a catchall to not scan domains that are not listed.

    The key here is using To: instead of FromOrTo: to prevent outgoing email from being scanned for spam.

    Stop and restart MailScanner after making any changes.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default

    From when installed MAILSCANNEr server ar a big problem
    LOAD IS HIGH

    All day i've 15 SSH open to control server's LOAD
    is a bad life

    When some1 send a newsletter, server go down
    (before mailscanner no problems)

    I would like delete outgoing control for all mail
    i would like optimizze mailscanner

    can i find HOW-TO in some site?

    THANKS

  4. #4
    Member
    Join Date
    Apr 2003
    Location
    Lewisville, Tx
    Posts
    968

    Default

    You have a server problem there. While Mailscanner can create a small additional load, it won't bring down your server unless you are overselling horribly bad. We run it on ours with no issues at all with extra load, each check only takes a second or two.

    As for deleting it there is an uninstall script that came with the package you downloaded from layer1. You can re-download it if you didn't save it the first time.
    Kris
    NCServ, LLC.
    WebHosting - Dedicated Servers - Colocation
    sales@ncerv.com

  5. #5
    Member
    Join Date
    Feb 2003
    Posts
    191

    Default

    Originally posted by Creazioni1
    From when installed MAILSCANNEr server ar a big problem
    LOAD IS HIGH
    I would recommend installing Anand's Exiscan+Clam+Exim Autoinstaller, as per this thread. It uninstalls MailScanner automatically and as such, reduces load. Full details at http://www.cpanelappz.com/

    As kris1351 said however, you would seem to have more problems than just MailScanner?

  6. #6
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default

    i've REDHAT 8 + stable
    therefore i wait to install

    Thanks

  7. #7
    Member
    Join Date
    Dec 2003
    Posts
    58

    Default

    are you sure i don't modify, for block control outgoing mail,

    /etc/exim.conf
    or
    /etc/exim_outgoing.conf

    ?

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You want to block all outgoing email?

    To do that, you need to firewall off outgoing SMTP traffic on port 25 which is what the feature in WHM does with iptables rules when you use: WHM > Tweak Security > SMTP Tweak > Enable

    If you are just talking about outgoing MailScanning, then I've already outlined how to do it above.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member
    Join Date
    Apr 2003
    Location
    Hereford, United Kingdom
    Posts
    59

    Default

    I'd recommend you switch to exiscan now that its part of the main cpanel exim build. I went from a mailscanner server to this running clam and just the standard exim rpms (you can grab latest via /scripts/exim4) you just then to add about 8 lines to the exim config im WHM and you're done.

  10. #10
    Member
    Join Date
    Jan 2003
    Posts
    26

    Default

    Originally posted by chirpy
    If you are just talking about outgoing MailScanning, then I've already outlined how to do it above.
    Doesn't it only stop MailScanner from scanning the messages for spam? But how to disable antivirus scanning for specific messages?

  11. #11
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Virus checking is very similar:

    You need to use a rules file. If you haven't already got one, modify MailScanner.conf so that

    Virus Scanning = %rules-dir%/virus.scanning.rules

    Then create a file in the rules subdirectory called virus.scanning.rules and add the domains as follows:

    To: *@mydomain.com yes
    To: *@myotherdomain.com yes
    FromOrTo: default no

    The last one is a catchall to not scan domains that are not listed.

    You can use FromOrTo: to virus scan outgoing and incoming email for a domain.

    Stop and restart MailScanner after making any changes.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  12. #12
    Member
    Join Date
    May 2003
    Posts
    613

    Default

    Originally posted by chirpy
    Virus checking is very similar:

    You need to use a rules file. If you haven't already got one, modify MailScanner.conf so that

    Virus Scanning = %rules-dir%/virus.scanning.rules

    Then create a file in the rules subdirectory called virus.scanning.rules and add the domains as follows:

    To: *@mydomain.com yes
    To: *@myotherdomain.com yes
    FromOrTo: default no
    Would that cover subdomain emails? Is it possible to specify it as: *@*.mydomain.com yes

  13. #13
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Yes, you can use that subdomain format too.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  14. #14
    Member
    Join Date
    May 2003
    Posts
    613

    Default

    Originally posted by chirpy
    Yes, you can use that subdomain format too.
    Will I need to use both formats for each domain or will the subdomain format do both jobs?

  15. #15
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You will need both because it is doing pattern matching and the subdomain match has an extra dot (.) in it compared to the top level domain.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. Incoming/Outgoing email copy
    By crazyaboutlinux in forum E-mail Discussions
    Replies: 15
    Last Post: 09-12-2010, 06:59 AM
  2. Monitor All Incoming/Outgoing Email
    By viustas in forum E-mail Discussions
    Replies: 2
    Last Post: 02-06-2010, 06:32 AM
  3. Disable all outgoing email?
    By flangebags in forum E-mail Discussions
    Replies: 0
    Last Post: 05-11-2009, 10:41 AM
  4. MailScanner - How to Disable Outgoing Scans
    By lloyd_tennison in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-17-2006, 02:45 PM
  5. Incoming and Outgoing Email does not work after Cpanel Update
    By rqsweat in forum cPanel and WHM Discussions
    Replies: 11
    Last Post: 07-04-2005, 11:34 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube