Hang problem when building message batch

Mikael Syska mikael at syska.dk
Thu Mar 18 22:53:18 GMT 2010


Hi,

What does MailScanner --lint says ?

maybe also try MailScanner --debug-sa

On Thu, Mar 18, 2010 at 10:27 PM, Michael St. Laurent
<mikes at hartwellcorp.com> wrote:
> I'm having trouble with MailScanner 'hanging'.  The master process says
> "waiting for children" and the child processes say "waiting for
> messages".  If I run in debug mode using "MailScanner --debug" I get the
> following output:
>
> ------------
> [root at hcfw1 MailScanner]# MailScanner --debug
>
>
> In Debugging mode, not forking...
> Trying to setlogsock(unix)
> Building a message batch to scan...
>
> ------------
> At this point it 'hangs' and never comes back with a prompt.
>
> I am running version 4.79.11 on a Cent-OS 5.4 system using sendmail as
> the MTA.
>
> My config file is below:
>
> %org-name% = Hartwell
> %org-long-name% = Hartwell Corporation
> %web-site% = www.hartwellcorp.com
> %etc-dir% = /etc/MailScanner
> %report-dir% = /etc/MailScanner/reports/en
> %rules-dir% = /etc/MailScanner/rules
> %mcp-dir% = /etc/MailScanner/mcp
> Max Children = 3
> Run As User = mail
> Run As Group = root
> Queue Scan Interval = 5
> Incoming Queue Dir = /var/spool/mqueue.in
> Outgoing Queue Dir = /var/spool/mqueue
> Incoming Work Dir = /var/spool/MailScanner/incoming
> Quarantine Dir = /var/spool/MailScanner/quarantine
> PID file = /var/run/MailScanner.pid
> Restart Every = 14400
> MTA = sendmail
> Sendmail = /usr/sbin/sendmail
> Sendmail2 = /usr/sbin/sendmail
> Incoming Work User =
> Incoming Work Group =
> Incoming Work Permissions = 0600
> Quarantine User =
> Quarantine Group =
> Quarantine Permissions = 0600
> Max Unscanned Bytes Per Scan = 100000000
> Max Unsafe Bytes Per Scan = 50000000
> Max Unscanned Messages Per Scan = 30
> Max Unsafe Messages Per Scan = 30
> Max Normal Queue Size = 800
> Scan Messages = %rules-dir%/scan.messages.rules
> Reject Message = no
> Maximum Processing Attempts = 6
> Processing Attempts Database =
> /var/spool/MailScanner/incoming/Processing.db
> Maximum Attachments Per Message = 200
> Expand TNEF = yes
> Use TNEF Contents = replace
> Deliver Unparsable TNEF = yes
> TNEF Expander = /usr/bin/tnef --maxsize=100000000
> TNEF Timeout = 120
> File Command = /usr/bin/file
> File Timeout = 20
> Gunzip Command = /bin/gunzip
> Gunzip Timeout = 50
> Unrar Command = /usr/bin/unrar
> Unrar Timeout = 50
> Find UU-Encoded Files = no
> Maximum Message Size = 0
> Maximum Attachment Size = -1
> Minimum Attachment Size = -1
> Maximum Archive Depth = 4
> Find Archives By Content = yes
> Unpack Microsoft Documents = yes
> Zip Attachments = no
> Attachments Zip Filename = MessageAttachments.zip
> Attachments Min Total Size To Zip = 100k
> Attachment Extensions Not To Zip = .zip .rar .gz .tgz .jpg .jpeg .mpg
> .mpe .mpeg .mp3 .rpm .htm .html .eml
> Add Text Of Doc = no
> Antiword = /usr/bin/antiword -f
> Antiword Timeout = 50
> Unzip Maximum Files Per Archive = 0
> Unzip Maximum File Size = 50k
> Unzip Filenames = *.txt *.ini *.log *.csv
> Unzip MimeType = text/plain
> Virus Scanning = yes
> Virus Scanners = auto
> Virus Scanner Timeout = 300
> Deliver Disinfected Files = no
> Silent Viruses = HTML-IFrame All-Viruses
> Still Deliver Silent Viruses = no
> Non-Forging Viruses = Joke/ OF97/ WM97/ W97M/
> Spam-Virus Header = X-%org-name%-MailScanner-SpamVirus-Report:
> Virus Names Which Are Spam = Sane*UNOFFICIAL HTML/* *Phish*
> Block Encrypted Messages = no
> Block Unencrypted Messages = no
> Allow Password-Protected Archives = yes
> Check Filenames In Password-Protected Archives = yes
> Allowed Sophos Error Messages =
> Sophos IDE Dir = /usr/local/Sophos/ide
> Sophos Lib Dir = /usr/local/Sophos/lib
> Monitors For Sophos Updates = /usr/local/Sophos/ide/*ides.zip
> Monitors for ClamAV Updates = /usr/local/share/clamav/*.inc/*
> /usr/local/share/clamav/*.cvd
> ClamAVmodule Maximum Recursion Level = 5
> ClamAVmodule Maximum Files = 1000
> ClamAVmodule Maximum File Size = 10000000 # (10 Mbytes)
> ClamAVmodule Maximum Compression Ratio = 250
> Clamd Port = 3310
> Clamd Socket = /tmp/clamd
> Clamd Lock File = # /var/lock/subsys/clamd
> Clamd Use Threads = no
> ClamAV Full Message Scan = no
> Fpscand Port = 10200
> Dangerous Content Scanning = %rules-dir%/content.scanning.rules
> Allow Partial Messages = yes
> Allow External Message Bodies = no
> Find Phishing Fraud = yes
> Also Find Numeric Phishing = yes
> Use Stricter Phishing Net = yes
> Highlight Phishing Fraud = yes
> Phishing Safe Sites File = %etc-dir%/phishing.safe.sites.conf
> Phishing Bad Sites File = %etc-dir%/phishing.bad.sites.conf
> Country Sub-Domains List = %etc-dir%/country.domains.conf
> Allow IFrame Tags = disarm
> Allow Form Tags = disarm
> Allow Script Tags = disarm
> Allow WebBugs = disarm
> Ignored Web Bug Filenames =
> Known Web Bug Servers = msgtag.com
> Web Bug Replacement = http://www.mailscanner.tv/1x1spacer.gif
> Allow Object Codebase Tags = disarm
> Convert Dangerous HTML To Text = no
> Convert HTML To Text = no
> Archives Are = zip rar ole
> Allow Filenames =
> Deny Filenames =
> Filename Rules =
> Allow Filetypes =
> Allow File MIME Types =
> Deny Filetypes =
> Deny File MIME Types =
> Filetype Rules =
> Archives: Allow Filenames =
> Archives: Deny Filenames =
> Archives: Filename Rules = %etc-dir%/archives.filename.rules.conf
> Archives: Allow Filetypes =
> Archives: Allow File MIME Types =
> Archives: Deny Filetypes =
> Archives: Deny File MIME Types =
> Archives: Filetype Rules = %etc-dir%/archives.filetype.rules.conf
> Quarantine Infections = yes
> Quarantine Silent Viruses = yes
> Quarantine Modified Body = no
> Quarantine Whole Message = yes
> Quarantine Whole Messages As Queue Files = yes
> Keep Spam And MCP Archive Clean = no
> Language Strings = %report-dir%/languages.conf
> Rejection Report = %report-dir%/rejection.report.txt
> Deleted Bad Content Message Report =
> %report-dir%/deleted.content.message.txt
> Deleted Bad Filename Message Report =
> %report-dir%/deleted.filename.message.txt
> Deleted Virus Message Report = %report-dir%/deleted.virus.message.txt
> Deleted Size Message Report = %report-dir%/deleted.size.message.txt
> Stored Bad Content Message Report =
> %report-dir%/stored.content.message.txt
> Stored Bad Filename Message Report =
> %report-dir%/stored.filename.message.txt
> Stored Virus Message Report = %report-dir%/stored.virus.message.txt
> Stored Size Message Report = %report-dir%/stored.size.message.txt
> Disinfected Report = %report-dir%/disinfected.report.txt
> Inline HTML Signature = %report-dir%/inline.sig.html
> Inline Text Signature = %report-dir%/inline.sig.txt
> Signature Image Filename = %report-dir%/sig.jpg
> Signature Image <img> Filename = signature.jpg
> Inline HTML Warning = %report-dir%/inline.warning.html
> Inline Text Warning = %report-dir%/inline.warning.txt
> Sender Content Report = %report-dir%/sender.content.report.txt
> Sender Error Report = %report-dir%/sender.error.report.txt
> Sender Bad Filename Report = %report-dir%/sender.filename.report.txt
> Sender Virus Report = %report-dir%/sender.virus.report.txt
> Sender Size Report = %report-dir%/sender.size.report.txt
> Hide Incoming Work Dir = yes
> Include Scanner Name In Reports = yes
> Mail Header = X-%org-name%-MailScanner:
> Spam Header = X-%org-name%-MailScanner-SpamCheck:
> Spam Score Header = X-%org-name%-MailScanner-SpamScore:
> Information Header = X-%org-name%-MailScanner-Information:
> Add Envelope From Header = yes
> Add Envelope To Header = yes
> Envelope From Header = X-Envelope-From:
> Envelope To Header = X-Envelope-To:
> ID Header = X-%org-name%-MailScanner-ID:
> IP Protocol Version Header = # X-%org-name%-MailScanner-IP-Protocol:
> Spam Score Character = s
> SpamScore Number Instead Of Stars = yes
> Minimum Stars If On Spam List = 0
> Clean Header Value = Found to be clean
> Infected Header Value = Found to be infected
> Disinfected Header Value = Disinfected
> Information Header Value = Please contact MIS for more information
> Detailed Spam Report = yes
> Include Scores In SpamAssassin Report = yes
> Always Include SpamAssassin Report = yes
> Multiple Headers = add
> Place New Headers At Top Of Message = no
> Hostname = the %org-name% MailScanner
> Sign Messages Already Processed = no
> Sign Clean Messages = %rules-dir%/disclaimer.rules
> Attach Image To Signature = no
> Attach Image To HTML Message Only = yes
> Allow Multiple HTML Signatures = no
> Dont Sign HTML If Headers Exist = # In-Reply-To: References:
> Mark Infected Messages = yes
> Mark Unscanned Messages = yes
> Unscanned Header Value = Not scanned: please contact MIS for details
> Remove These Headers = X-Mozilla-Status: X-Mozilla-Status2:
> Deliver Cleaned Messages = yes
> Notify Senders = yes
> Notify Senders Of Viruses = no
> Notify Senders Of Blocked Filenames Or Filetypes = yes
> Notify Senders Of Blocked Size Attachments = no
> Notify Senders Of Other Blocked Content = yes
> Never Notify Senders Of Precedence = list bulk
> Scanned Modify Subject = no # end
> Scanned Subject Text = {Scanned}
> Virus Modify Subject = yes
> Virus Subject Text = {Virus?}
> Filename Modify Subject = no
> Filename Subject Text = {Filename?}
> Content Modify Subject = yes
> Content Subject Text = {Content}
> Size Modify Subject = yes
> Size Subject Text = {Size}
> Disarmed Modify Subject = yes
> Disarmed Subject Text = {Disarmed}
> Phishing Modify Subject = no
> Phishing Subject Text = {Fraud?}
> Spam Modify Subject = no
> Spam Subject Text = {Spam?}
> High Scoring Spam Modify Subject = yes
> High Scoring Spam Subject Text = {MailScanner}
> Warning Is Attachment = no
> Attachment Warning Filename = %org-name%-Attachment-Warning.txt
> Attachment Encoding Charset = us-ascii
> Archive Mail =
> Missing Mail Archive Is = directory
> Send Notices = no
> Notices Include Full Headers = no
> Hide Incoming Work Dir in Notices = no
> Notice Signature = -- \nMailScanner\nEmail Virus
> Scanner\nwww.mailscanner.info
> Notices From = MailScanner
> Notices To = postmaster
> Local Postmaster = postmaster
> Spam List Definitions = %etc-dir%/spam.lists.conf
> Virus Scanner Definitions = %etc-dir%/virus.scanners.conf
> Spam Checks = yes
> Spam List = # ORDB-RBL SBL+XBL # MAPS-RBL+ costs money (except .ac.uk)
> Spam Domain List =
> Spam Lists To Be Spam = 1
> Spam Lists To Reach High Score = 3
> Spam List Timeout = 10
> Max Spam List Timeouts = 7
> Spam List Timeouts History = 10
> Is Definitely Not Spam = %rules-dir%/spam.whitelist.rules
> Is Definitely Spam = no
> Definite Spam Is High Scoring = no
> Ignore Spam Whitelist If Recipients Exceed = 30
> Max Spam Check Size = 500000
> Use Watermarking = yes
> Add Watermark = yes
> Check Watermarks With No Sender = yes
> Treat Invalid Watermarks With No Sender as Spam = delete
> Check Watermarks To Skip Spam Checks = yes
> Watermark Secret = camj at g
> Watermark Lifetime = 604800
> Watermark Header = X-%org-name%-MailScanner-Watermark:
> Use SpamAssassin = yes
> Max SpamAssassin Size = 30000
> Required SpamAssassin Score = 8
> High SpamAssassin Score = 8
> SpamAssassin Auto Whitelist = no
> SpamAssassin Timeout = 240
> Max SpamAssassin Timeouts = 20
> SpamAssassin Timeouts History = 30
> Check SpamAssassin If On Spam List = yes
> Include Binary Attachments In SpamAssassin = no
> Spam Score = yes
> Cache SpamAssassin Results = yes
> SpamAssassin Cache Database File =
> /var/spool/MailScanner/incoming/SpamAssassin.cache.db
> Rebuild Bayes Every = 86400
> Wait During Bayes Rebuild = yes
> Use Custom Spam Scanner = no
> Max Custom Spam Scanner Size = 20000
> Custom Spam Scanner Timeout = 20
> Max Custom Spam Scanner Timeouts = 10
> Custom Spam Scanner Timeout History = 20
> Spam Actions = deliver
> High Scoring Spam Actions = deliver
> Non Spam Actions = deliver
> SpamAssassin Rule Actions =
> Sender Spam Report = %report-dir%/sender.spam.report.txt
> Sender Spam List Report = %report-dir%/sender.spam.rbl.report.txt
> Sender SpamAssassin Report = %report-dir%/sender.spam.sa.report.txt
> Inline Spam Warning = %report-dir%/inline.spam.warning.txt
> Recipient Spam Report = %report-dir%/recipient.spam.report.txt
> Enable Spam Bounce = %rules-dir%/bounce.rules
> Bounce Spam As Attachment = no
> Syslog Facility = mail
> Log Speed = no
> Log Spam = yes
> Log Non Spam = yes
> Log Delivery And Non-Delivery = yes
> Log Permitted Filenames = yes
> Log Permitted Filetypes = yes
> Log Permitted File MIME Types = yes
> Log Silent Viruses = no
> Log Dangerous HTML Tags = no
> Log SpamAssassin Rule Actions = no
> SpamAssassin Temporary Dir =
> /var/spool/MailScanner/incoming/SpamAssassin-Temp
> SpamAssassin User State Dir =
> SpamAssassin Install Prefix =
> SpamAssassin Site Rules Dir = /etc/mail/spamassassin
> SpamAssassin Local Rules Dir =
> SpamAssassin Local State Dir = # /var/lib
> SpamAssassin Default Rules Dir =
> MCP Checks = no
> First Check = mcp
> MCP Required SpamAssassin Score = 1
> MCP High SpamAssassin Score = 10
> MCP Error Score = 1
> MCP Header = X-%org-name%-MailScanner-MCPCheck:
> Non MCP Actions = deliver
> MCP Actions = deliver
> High Scoring MCP Actions = deliver
> Bounce MCP As Attachment = no
> MCP Modify Subject = yes
> MCP Subject Text = {MCP?}
> High Scoring MCP Modify Subject = yes
> High Scoring MCP Subject Text = {MCP?}
> Is Definitely MCP = no
> Is Definitely Not MCP = no
> Definite MCP Is High Scoring = no
> Always Include MCP Report = no
> Detailed MCP Report = yes
> Include Scores In MCP Report = no
> Log MCP = no
> MCP Max SpamAssassin Timeouts = 20
> MCP Max SpamAssassin Size = 100000
> MCP SpamAssassin Timeout = 10
> MCP SpamAssassin Prefs File = %mcp-dir%/mcp.spam.assassin.prefs.conf
> MCP SpamAssassin User State Dir =
> MCP SpamAssassin Local Rules Dir = %mcp-dir%
> MCP SpamAssassin Default Rules Dir = %mcp-dir%
> MCP SpamAssassin Install Prefix = %mcp-dir%
> Recipient MCP Report = %report-dir%/recipient.mcp.report.txt
> Sender MCP Report = %report-dir%/sender.mcp.report.txt
> Use Default Rules With Multiple Recipients = no
> Read IP Address From Received Header = no
> Spam Score Number Format = %5.2f
> MailScanner Version Number = 4.79.11
> SpamAssassin Cache Timings = 1800,300,10800,172800,600
> Debug = no
> Debug SpamAssassin = no
> Run In Foreground = no
> Always Looked Up Last = no
> Always Looked Up Last After Batch = no
> Deliver In Background = yes
> Delivery Method = batch
> Split Exim Spool = no
> Lockfile Dir = /var/spool/MailScanner/incoming/Locks
> Custom Functions Dir = /usr/lib/MailScanner/MailScanner/CustomFunctions
> Lock Type =
> Syslog Socket Type =
> Automatic Syntax Check = yes
> Minimum Code Status = supported
> include /etc/MailScanner/conf.d/*
>
> --
> Michael St. Laurent
> IT Department
> Hartwell Corporation
>
>
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner, and is
> believed to be clean.
>
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
>
> Before posting, read http://wiki.mailscanner.info/posting
>
> Support MailScanner development - buy the book off the website!
>


More information about the MailScanner mailing list