Hi
I'm green to Postfix. I have 2 anti-spam servers that I upgraded
MailScanner to the latest version and a completely new install of
MailScanner and postfix etc. All three have the same problems . the
one thing that is common to all servers is the original configs. For
the google-ing and digging around I'm still non the wiser. I have
looked file permissions etc, reinstalled MailScanner etc .. I'm out of
ideas, If someone with more experience could please advise me.

These are the errors I'm getting on all 3 servers :

Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: premature
end-of-input on private/smtp socket while reading input attribute name
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: private/smtp
socket: malformed response
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Mar 20 23:08:13 spam10 postfix/master[2135]: warning: process
/usr/libexec/postfix/smtp pid 7304 exit status 1
Mar 20 23:08:13 spam10 postfix/master[2135]: warning: process
/usr/libexec/postfix/smtp pid 7606 exit status 1
Mar 20 23:08:13 spam10 postfix/master[2135]: warning:
/usr/libexec/postfix/smtp: bad command startup -- throttling
Mar 20 23:08:13 spam10 postfix/master[2135]: warning: process
/usr/libexec/postfix/smtp pid 7607 exit status 1
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: premature
end-of-input on private/smtp socket while reading input attribute name
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: private/smtp
socket: malformed response
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: premature
end-of-input on private/smtp socket while reading input attribute name
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: private/smtp
socket: malformed response
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: premature
end-of-input on private/smtp socket while reading input attribute name
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: private/smtp
socket: malformed response
Mar 20 23:08:13 spam10 postfix/master[2135]: warning: process
/usr/libexec/postfix/smtp pid 7608 exit status 1
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: premature
end-of-input on private/smtp socket while reading input attribute name
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: private/smtp
socket: malformed response
Mar 20 23:08:13 spam10 postfix/qmgr[2142]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Mar 20 23:08:13 spam10 postfix/master[2135]: warning: process
/usr/libexec/postfix/smtp pid 7609 exit status 1


mailq has these errors that I believe are related :

0920312D5    264064 Fri Mar 20 17:35:11  tku...@eeeeeeeeeee.com
                (delivery temporarily suspended: unknown mail transport error)
                                         jpdt...@nnnnn.co.za

0902812D4     13035 Fri Mar 20 14:34:33  brint...@uuuuuuu.co.za
                (delivery temporarily suspended: unknown mail transport error)
                                         rite...@nnnnnn.co.za

0636F12D3    594450 Fri Mar 20 01:19:13  revi...@ttttttttttttttttttttttt.co.za
                (delivery temporarily suspended: unknown mail transport error)
                                         ta...@xxxxxxxxxxxr.co.za

039B612D1     11579 Wed Mar 18 14:53:43  emboun...@eeeeeeeee.co.za
                (delivery temporarily suspended: unknown mail transport error)
                                         rus...@xxxxxxxxxxx.co.za


my configs

main.cf



queue_directory = /mnt/ramdisk/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8, 66.8.84.0/23, 10.0.0.0/8, 172.0.0.0/8
relay_domains = /etc/postfix/relay
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
header_checks = regexp:/etc/postfix/header_checks
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5

sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.2.8/samples
readme_directory = /usr/share/doc/postfix-2.2.8/README_FILES
allow_percent_hack = no
default_process_limit = 200
transport_maps = hash:/etc/postfix/transport
smtpd_helo_required = yes
disable_vrfy_command = yes
smtpd_error_sleep_time = 10
smtpd_soft_error_limit = 5
smtpd_hard_error_limit = 10
maximal_queue_lifetime = 4d
bounce_queue_lifetime = 1h
message_size_limit = 20240000
smtpd_data_restrictions = reject_unauth_pipelining, permit
smtpd_client_connection_count_limit = 100
smptd_client_restrictions = reject_unknown_reverse_client_hostname,
check_client_access hash:/etc/postfix/access_sender_blacklist, permit
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_address,
reject_unknown_sender_domain,
hash:/etc/postfix/access_sender_blacklist, permit
etc/postfix/access_receipient_regexp, reject_non_fqdn_recipient,
reject_unauth_destination, reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net, reject_rbl_client cbl.abuseat.org,
reject_rbl_client combined.rbl.msrbl.net, reject_unverified_recipient
smtpd_recipient_restrictions = check_recipient_access
hash:/etc/postfix/access_receipient_blacklist, check_recipient_access
regexp:/etc/postfix/access_receipient_regexp,
reject_non_fqdn_recipient, reject_unauth_destination,
reject_unknown_recipient_domain, reject_rbl_client bl.spamcop.net,
reject_rbl_client cbl.abuseat.org, reject_rbl_client
combined.rbl.msrbl.net, reject_unverified_recipient,
check_policy_service inet:66.8.85.146:2501

policy_time_limit = 7200
address_verify_map = btree:/var/spool/MailScanner/addr_verify
address_verify_positive_expire_time = 60d
address_verify_positive_refresh_time = 14d
address_verify_negative_expire_time = 31d
address_verify_negative_refresh_time = 2h
address_verify_sender = nob...@techconcepts.co.za
unverified_recipient_reject_code = 550


master.cf

smtp      inet  n       -       n       -       -       smtpd
pickup    fifo  n       -       n       20      1       pickup
        -o receive_override_options=no_header_body_checks
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
#qmgr     fifo  n       -       n       300     1       oqmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
smtp      unix  -       -       n       -       -       smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay     unix  -       -       n       -       -       smtp
        -o fallback_relay=
#       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
old-cyrus unix  -       n       n       -       -       pipe
  flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m
${extension} ${user}
cyrus     unix  -       n       n       -       -       pipe
  user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m
${extension} ${user}
uucp      unix  -       n       n       -       -       pipe
  flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
ifmail    unix  -       n       n       -       -       pipe
  flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp     unix  -       n       n       -       -       pipe
  flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
slow      unix  -       -       n       -       8       smtp
policy    unix  -       n       n       -       -       spawn
        user=nobody argv=/usr/bin/perl /etc/postfix/greylist.pl

MailScanner.conf


%org-name% = techexample
%hostname% = spam10.techexample.co.za
%org-long-name% = Techexample
%web-site% = www.techexample.co.za
%etc-dir% = /etc/MailScanner
%report-dir% = /etc/MailScanner/reports/en
%rules-dir% = /etc/MailScanner/rules
%mcp-dir% = /etc/MailScanner/mcp
Max Children = 10
Run As User = postfix
Run As Group = postfix
Queue Scan Interval = 4
Incoming Queue Dir = /mnt/ramdisk/postfix/hold
Outgoing Queue Dir = /mnt/ramdisk/postfix/incoming
Incoming Work Dir = /mnt/ramdisk/MailScanner/incoming
Quarantine Dir = /var/spool/MailScanner/quarantine
PID file = /var/run/MailScanner.pid
Restart Every = 14400
MTA = postfix
Sendmail = /usr/sbin/sendmail
Sendmail2 = /usr/sbin/sendmail
Incoming Work User =
Incoming Work Group =
Incoming Work Permissions = 0600
Quarantine User = apache
Quarantine Group = apache
Quarantine Permissions = 0660
Max Unscanned Bytes Per Scan = 100m
Max Unsafe Bytes Per Scan = 50m
Max Unscanned Messages Per Scan = 15
Max Unsafe Messages Per Scan = 15
Max Normal Queue Size = 500
Scan Messages = yes
Reject Message = no
Maximum Attachments Per Message = 50
Expand TNEF = yes
Use TNEF Contents = replace
Deliver Unparsable TNEF = yes
TNEF Expander = /usr/bin/tnef --maxsize=100000000
TNEF Timeout = 20
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 = %rules-dir%/max.message.size.rules
Maximum Attachment Size = -1
Minimum Attachment Size = -1
Maximum Archive Depth = 20
Find Archives By Content = yes
Virus Scanning = yes
Virus Scanners = clamav
Virus Scanner Timeout = 180
Deliver Disinfected Files = no
Silent Viruses = HTML-IFrame All-Viruses
Non-Forging Viruses = Joke/ OF97/ WM97/ W97M/ eicar
Block Encrypted Messages = no
Block Unencrypted Messages = no
Allow Password-Protected Archives = yes
Monitors for ClamAV Updates = /usr/local/share/clamav/*.cvd
ClamAVmodule Maximum Recursion Level = 8
ClamAVmodule Maximum Files = 1000
ClamAVmodule Maximum File Size = 10000000 # (10 Mbytes)
ClamAVmodule Maximum Compression Ratio = 250
Dangerous Content Scanning = yes
Allow Partial Messages = no
Allow External Message Bodies = no
Find Phishing Fraud = no
Also Find Numeric Phishing = yes
Use Stricter Phishing Net = yes
Highlight Phishing Fraud = yes
Phishing Safe Sites File = %etc-dir%/phishing.safe.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 =
Web Bug Replacement = http://www.mailscanner.info/images/1x1spacer.gif
Allow Object Codebase Tags = disarm
Convert Dangerous HTML To Text = no
Convert HTML To Text = no
Allow Filenames =
Deny Filenames =
Filename Rules = %rules-dir%/filename.rules
Allow Filetypes =
Filetype Rules = %rules-dir%/filetype.rules
Quarantine Infections = yes
Quarantine Silent Viruses = no
Quarantine Modified Body = no
Quarantine Whole Message = no
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
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
Disinfected Report = %report-dir%/disinfected.report.txt
Inline HTML Signature = %report-dir%/inline.sig.html
Inline Text Signature = %report-dir%/inline.sig.txt
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
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 = no
Envelope From Header = X-%org-name%-MailScanner-From:
Envelope To Header = X-%org-name%-MailScanner-To:
Spam Score Character = s
SpamScore Number Instead Of Stars = no
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 Technology example for more
information
Detailed Spam Report = yes
Include Scores In SpamAssassin Report = yes
Always Include SpamAssassin Report = no
Multiple Headers = append
Hostname = the MailScanner (%hostname%)
Sign Messages Already Processed = no
Sign Clean Messages = no
Mark Infected Messages = yes
Mark Unscanned Messages = no
Unscanned Header Value = Not scanned: please contact your Internet
E-Mail Service Provider for details
Remove These Headers = X-Mozilla-Status: X-Mozilla-Status2:
Deliver Cleaned Messages = yes
Notify Senders = no
Notify Senders Of Viruses = no
Notify Senders Of Blocked Filenames Or Filetypes = yes
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 = yes
Filename Subject Text = {Filename?}
Content Modify Subject = yes
Content Subject Text = {Dangerous Content?}
Disarmed Modify Subject = yes
Disarmed Subject Text = {Disarmed}
Phishing Modify Subject = yes
Phishing Subject Text = {Fraud?}
Spam Modify Subject = yes
Spam Subject Text = {Spam?}
High Scoring Spam Modify Subject = yes
High Scoring Spam Subject Text = {Spam?}
Warning Is Attachment = yes
Attachment Warning Filename = %org-name%-Attachment-Warning.txt
Attachment Encoding Charset = ISO-8859-1
Archive Mail =
Send Notices = no
Notices Include Full Headers = yes
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 = # CBL ORDB-RBL SBL+XBL # You can un-comment this to enable them
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 = %rules-dir%/spam.blacklist.rules
Definite Spam Is High Scoring = no
Ignore Spam Whitelist If Recipients Exceed = 20
Use SpamAssassin = yes
Max SpamAssassin Size = 30k
Required SpamAssassin Score = 5.5
High SpamAssassin Score = 20
SpamAssassin Auto Whitelist = yes
SpamAssassin Timeout = 75
Max SpamAssassin Timeouts = 10
SpamAssassin Timeouts History = 30
Check SpamAssassin If On Spam List = yes
Spam Score = no
Cache SpamAssassin Results = yes
SpamAssassin Cache Database File = /var/spool/MailScanner/SpamAssassin.cache.db
Rebuild Bayes Every = 28800
Wait During Bayes Rebuild = no
Use Custom Spam Scanner = no
Max Custom Spam Scanner Size = 20k
Custom Spam Scanner Timeout = 20
Max Custom Spam Scanner Timeouts = 10
Custom Spam Scanner Timeout History = 20
Spam Actions = store
High Scoring Spam Actions = delete
Non Spam Actions = deliver
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 = yes
Log Spam = yes
Log Non Spam = yes
Log Permitted Filenames = no
Log Permitted Filetypes = no
Log Silent Viruses = no
Log Dangerous HTML Tags = no
SpamAssassin User State Dir = /var/spool/MailScanner/spamassassin
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 = 100k
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
Spam Score Number Format = %5.2f
MailScanner Version Number = 4.55.9
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 = /tmp
Custom Functions Dir = /usr/lib/MailScanner/MailScanner/CustomFunctions
Lock Type =
Minimum Code Status = supported

These configs are the same for all 3 servers so the issue must be in
one of these .. But where I don't know. where .. everything looks
correct to me.. ???

Thanks for your time.
Greg

Reply via email to