Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default Lookin to Speed Up MailScanner for Outgoing Messages

    I am having a problem when sending mailing lists that MailScanner "hiccups" while someone is popping their mail or when it is restarting itself. The restarting I can change the time up on, but when someone is popping their mail the incoming (unprocessed) queue from mailman can just jump by 1500 to 4000 additional unprocessed messages in less than a minute. I already have the sending domains not being scanned when going out, but I can quickly get a queue of 50,000 which is then a problem.

    The problem seems to be the scanning of MailScanner when someone is popping. I will be converting all mailboxes to maildir, but I do not think that will be enough. Before MailScanner I did not have that problem, but I would like to keep MailScanner for some of its other features.
    Last edited by lloyd_tennison; 09-01-2006 at 06:52 PM.
    Lloyd F Tennison

  2. #2
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    In case anyone else is looking, I found that if I change the port Mailman uses and add that port an an auxiliary port for exim_outgoing.conf - then MailScanner will not scan it as it is going directly into that queue.
    Lloyd F Tennison

  3. #3
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    That sounds like a neat trick.

    If using ConfigServer's MailScanner install, it should contain a ruleset file that overrides both mail and virus scan settings:

    /usr/mailscanner/etc/rules/scan.messages.rules

    The default file might contain:

    # Example: (scan all email)
    FromOrTo: default yes

    For mailing lists, I usually edit the file so it looks like the following (example only):

    From: list@domain.com no #bypass mailing list
    FromOrTo: default yes

    Scanning large outbound lists can bring things to a crawl. This makes a huge difference (on my server).
    Last edited by RickG; 10-27-2006 at 09:38 AM.

  4. #4
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    That really does not make a huge difference, as even though it is not scanning the message it is processing it and moving it from one queue to another. The simple act of someone checking their email from IMAP with a lot of messages can bring MailScanner to a crawl and then I have hundreds of additional (or thousands) of messages that have to first be processed by MailScanner - as unprocessed - and then moved into the sending queue.

    My way actually bypasses the sending queue, and the recording by Mailwatch, and places them directly in the outgoing queue. There 80% or so are delivered immediately, whereas using the message scan rules I can end up with ten thousand or so messages waiting to be processed in 20 minutes. In two hours I had over a hundred thousand in the queue. This way I rarely have over 1500.
    Lloyd F Tennison

  5. #5
    Member
    Join Date
    Feb 2005
    Location
    North Carolina
    Posts
    237

    Default

    I hadn't thought about the issue of MailScanner moving the messages from one queue to another. In a much less active environment little things like adjusting rule-sets can have an impact (especially on entry level VPS').

    That said, can you go into more detail as to exactly where you change the port info? Sounds like a great solution and one I'd like to better understand. Thx -

  6. #6
    Member
    Join Date
    Mar 2004
    Posts
    710

    Default

    In the exim startup file, /etc/rc.d/init.d/exim

    I added:

    Code:
     fi
                    if [ ! "$ALTPORT" = "" ]; then
                            echo -n "Starting exim-$ALTPORT: "
                            TMPDIR=/tmp $DAEMONIZE /usr/sbin/exim -bd -oX $ALTPORT
                            TMPDIR=/tmp $DAEMONIZE /usr/sbin/exim -bd -C /etc/exim_outgoing.conf -oX 9999
                            echo $RESULT
    with the 9999 being the new port.

    Maybe someone has a better way, as exim might overwrite this file with an update.
    Lloyd F Tennison

Similar Threads & Tags
Similar threads

  1. 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
  2. Filtering exim outgoing messages
    By danielws in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-05-2005, 02:36 AM
  3. Outgoing messages undelivered: what is it with hotmail.com?
    By spiff06 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 07-03-2005, 09:12 AM
  4. Copy of Outgoing Messages to a mailbox in Cpane; [moved]
    By mohdyasar in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-20-2005, 03:40 AM
  5. Email filter outgoing messages
    By da_linuxguru in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 11-09-2003, 10:04 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube