Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: PlusPlus on November 05, 2014, 10:29:02 AM

Title: Message denied temporarily
Post by: PlusPlus on November 05, 2014, 10:29:02 AM
Hello,

i have a problem with sending emails with attachment:


(http://i61.tinypic.com/5bbpz9.png)


i tried this:

Code: [Select]
config setprop qmail MaxMessageSize 35000000
config setprop qpsmtpd MaxScannerSize 35000000
config setprop clamav MaxFileSize 35M
config setprop php UploadMaxFilesize 35M
db configuration setprop spamassassin MaxMessageSize 35000000
signal-event email-update

and it worked for a while - but i have to do this every day.
Has someone an idea?
Title: Re: Message denied temporarily
Post by: Stefano on November 05, 2014, 10:36:43 AM
you should post here your logs.. maybe the recipient's server is using greylisting (just guessing)
Title: Re: Message denied temporarily
Post by: PlusPlus on November 05, 2014, 10:57:05 AM
i can't see the specific mail, it's an internal mail. I looked at qpsmtpd/current, is it the wrong logfile?
Title: Re: Message denied temporarily
Post by: bosco555 on November 06, 2014, 05:58:59 AM
Same problem here on 2 new sme 9 servers...This happens internally and externally as well.  If I do the:
  config setprop qmail MaxMessageSize 35000000
  config setprop qpsmtpd MaxScannerSize 35000000
  config setprop clamav MaxFileSize 35M
  config setprop php UploadMaxFilesize 35M
  db configuration setprop spamassassin MaxMessageSize 35000000
  signal-event email-update
Then the server works fine..but the next day I have to do it again... Strange behaviour indeed...Caro Stefano...chill' nun e' bbuon'...
Title: Re: Message denied temporarily
Post by: janet on November 06, 2014, 08:07:59 AM
PlusPlus & bosco555

Firstly I do not think that the signal-event email-update command is enough for all those set of commands.
You need to issue those commands referred to & then do
signal-event post-upgrade
signal-event reboot

Re troubleshooting:
There is no point just reissuing those commands each day, you need to find out what is going on.

You should check (& make a written note of) the db settings BEFORE making changes to see if something else has changed the settings (from what you made them the day before)
ie
config show qmail
config show qpsmtpd
config show clamav
config show php
config show spamassassin

or more specific for the value you are after
config getprop qmail MaxMessageSize
config getprop qpsmtpd MaxScannerSize
config getprop clamav MaxFileSize
config getprop php UploadMaxFilesize
config getprop spamassassin MaxMessageSize

Also try looking at
sqpsmtpd/current log file

I suspect though that using the more appropriate signal-event command I mentioned will resolve the problem.
Title: Re: Message denied temporarily
Post by: bosco555 on November 06, 2014, 08:19:07 AM
Hi Janet,
Thanks for the reply... Done the signal-event post-upgrade; signal-event reboot and now it seems like the settings are holding.  I will have to check later on and tomorrow morning if they are still the same as per this thread.... Peculiar issue as these servers are fresh installs of sme 9, fully updated.
Title: Re: Message denied temporarily
Post by: PlusPlus on November 06, 2014, 02:21:32 PM
Thansk for your answer.

Here a log from the mail with the error:

Code: [Select]
2014-11-06 13:06:17.191036500 25100 250-PIPELINING
2014-11-06 13:06:17.191036500 25100 250-8BITMIME
2014-11-06 13:06:17.191037500 25100 250-SIZE 35000000
2014-11-06 13:06:17.191083500 25100 250 AUTH PLAIN LOGIN
2014-11-06 13:06:17.259971500 25100 dispatching AUTH PLAIN AGJ1ZXR0bmVyAFBlbWlydTk0IQ==
2014-11-06 13:06:17.259973500 25100 auth::auth_cvm_unix_local plugin (auth-plain): authcvm/plain authentication attempt for: user100
2014-11-06 13:06:17.261638500 25100 235 Authentication successful for user100 - authcvm/plain
2014-11-06 13:06:17.261840500 25100 Authentication successful for user100 - authcvm/plain
2014-11-06 13:06:17.263169500 25100 tls plugin (init): ciphers: HIGH:!SSLv2:!ADH:!aNULL:!MD5:!RC4
2014-11-06 13:06:17.334037500 25100 dispatching MAIL FROM:<ulrich.user100@domain.de> SIZE=5013632
2014-11-06 13:06:17.334039500 25100 full from_parameter: FROM:<ulrich.user100@domain.de> SIZE=5013632
2014-11-06 13:06:17.334040500 25100 getting mail from <ulrich.user100@domain.de>
2014-11-06 13:06:17.334041500 25100 250 <ulrich.user100@domain.de>, sender OK - how exciting to get mail from you!
2014-11-06 13:06:17.401820500 25100 dispatching RCPT TO:<user@url.com>
2014-11-06 13:06:17.401822500 25100 250 <user@url.com>, recipient ok
2014-11-06 13:06:17.466638500 25100 dispatching DATA
2014-11-06 13:06:17.466639500 25100 354 go ahead
2014-11-06 13:06:17.690030500 25100 spooling message to disk
2014-11-06 13:07:16.621219500 25100 virus::clamav plugin (data_post): Changing permissions on file to permit scanner access
2014-11-06 13:07:16.669036500 25100 virus::clamav plugin (data_post): clamscan results: /var/spool/qpsmtpd/1415275577:25100:0: Can't allocate memory ERROR
2014-11-06 13:07:16.669038500 25100 virus::clamav plugin (data_post): ClamAV error: /usr/bin/clamdscan --stdout  --config-file=/etc/clamd.conf --no-summary /var/spool/qpsmtpd/1415275577:25100:0 2>&1: 2
2014-11-06 13:07:16.669040500
2014-11-06 13:07:16.669040500 25100 logging::logterse plugin (deny): ` 88.71.1.77 dslb-088-071-001-077.088.071.pools.vodafone-ip.de [53.104.24.143] <ulrich.user100@domain.de> <user@url.com> virus::clamav 902 msg denied before queued
2014-11-06 13:07:16.669102500 25100 452 Message denied temporarily
2014-11-06 13:08:54.269567500 25100 dispatching QUIT
2014-11-06 13:08:54.270543500 25100 221 brammer-automobile.de closing connection. Have a wonderful day.

And here are the results:

Code: [Select]
[root@bmmail ~]# config show qmail
qmail=service
    MaxMessageSize=35000000
    status=enabled


[root@bmmail ~]# config show qpsmtpd
qpsmtpd=service
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=enabled
    LogLevel=6
    MaxScannerSize=35000000
    RBLList=zen.spamhaus.org
    RHSBL=enabled
    RelayRequiresAuth=enabled
    SBLList=multi.surbl.org:black.uribl.com:rhsbl.sorbs.net
    TlsBeforeAuth=1
    access=public
    qplogsumm=disabled
    status=enabled

[root@bmmail ~]# config show clamav
clamav=service
    ArchiveBlockEncrypted=no
    Checks=24
    DNSDatabaseInfo=current.cvd.clamav.net
    DatabaseMirror=db.local.clamav.net
    Debug=no
    DetectBrokenExecutables=no
    FilesystemScan=daily
    FilesystemScanExclude=/proc,/sys,/usr/share,/var
    FilesystemScanFilesystems=/home/e-smith/files
    FilesystemScanReportTo=admin
    Foreground=yes
    HTTPProxyPassword=
    HTTPProxyPort=
    HTTPProxyServer=
    HTTPProxyUsername=
    HeuristicScanPrecedence=no
    IdleTimeout=60
    LeaveTemporaryFiles=no
    LogClean=no
    LogFileUnlock=yes
    LogTime=no
    LogVerbose=yes
    MaxAttempts=6
    MaxConnectionQueueLength=30
    MaxDirectoryRecursion=20
    MaxFileSize=35M
    MaxFiles=1500
    MaxRecursion=8
    MaxThreads=20
    Quarantine=enabled
    QuarantineDirectory=/var/spool/clamav/quarantine
    ReadTimeout=300
    ScanArchive=yes
    ScanHTML=yes
    ScanMail=yes
    ScanOLE2=yes
    ScanPE=yes
    ScanRAR=no
    SelfCheck=1800
    ShowProxySettings=no
    ShowUpdateSettings=no
    SignaturesUpdated=unknown
    UpdateNonOfficeHrs=disabled
    UpdateOfficeHrs=disabled
    UpdateWeekend=disabled
    status=enabled

[root@bmmail ~]# config show php
php=service
    AllowUrlFopen=Off
    UploadMaxFilesize=35M
    status=enabled


[root@bmmail ~]# config show spamassassin
spamassassin=service
    BayesAutoLearnThresholdNonspam=0.10
    BayesAutoLearnThresholdSpam=4.00
    DNSAvailable=yes
    MaxMessageSize=35000000
    MessageRetentionTime=90
    OkLanguages=all
    OkLocales=all
    RejectLevel=15
    ReportSafe=0
    Sensitivity=custom
    SkipRBLChecks=0
    SortSpam=enabled
    Subject=[SPAM]
    SubjectTag=enabled
    TagLevel=10
    UseBayes=1
    status=enabled
Title: Re: Message denied temporarily
Post by: PlusPlus on November 06, 2014, 02:22:25 PM
But i think we have to wait for the next day, i tried the reboot.
Title: Re: Message denied temporarily
Post by: PlusPlus on November 06, 2014, 04:09:55 PM
Okay, same Problem after trying the reboot:

Code: [Select]
2014-11-06 15:54:56.759973500 17449 virus::clamav plugin (data_post): Changing permissions on file to permit scanner access
2014-11-06 15:54:56.773191500 17449 virus::clamav plugin (data_post): clamscan results: /var/spool/qpsmtpd/1415285652:17449:0: Can't allocate memory ERROR
2014-11-06 15:54:56.773193500 17449 virus::clamav plugin (data_post): ClamAV error: /usr/bin/clamdscan --stdout  --config-file=/etc/clamd.conf --no-summary /var/spool/qpsmtpd/1415285652:17449:0 2>&1: 2

After

config setprop qmail MaxMessageSize 35000000
config setprop qpsmtpd MaxScannerSize 35000000
config setprop clamav MaxFileSize 35M
config setprop php UploadMaxFilesize 35M
db configuration setprop spamassassin MaxMessageSize 35000000
signal-event email-update

Code: [Select]
2014-11-06 15:59:38.510284500 21889 virus::clamav plugin (data_post): Changing permissions on file to permit scanner access
2014-11-06 15:59:39.200184500 21889 virus::clamav plugin (data_post): clamscan results: /var/spool/qpsmtpd/1415285934:21889:0: OK
Title: Re: Message denied temporarily
Post by: guest22 on November 06, 2014, 04:12:11 PM
seems to me clamav has an issue and therefore mails cn not be scanned, and thus not processed. Can you check with clamav disabled?
Title: Re: Message denied temporarily
Post by: Stefano on November 06, 2014, 04:31:19 PM
try to invoke clamscan manually from cli and check if it happens again

in the meanwhile, check all involved logs and file a bug, thank you
Title: Re: Message denied temporarily
Post by: Daniel B. on November 06, 2014, 04:49:30 PM
Looks like you're hitting this bug: http://bugs.contribs.org/show_bug.cgi?id=8483 (which is fixed but not released yet). The various DB settings has no effect, only signal-event email-update restarts clamd, which reduce its memory usage, so clamd works correctly for some time, but then fail again when the mem limit is reached. Waiting for the release of this fix, you can:

Code: [Select]
yum --enablerepo=smetest update smeserver-clamav

Title: Re: Message denied temporarily
Post by: bosco555 on November 07, 2014, 12:26:19 AM
Yes, thanks Daniel, merci beacoup!  that did it!
Title: Re: Message denied temporarily
Post by: guest22 on November 07, 2014, 12:28:18 AM
Please add [SOLVED] to the subject
Title: [SOLVED] Re: Message denied temporarily
Post by: bosco555 on November 07, 2014, 12:35:25 AM
Done
Title: Re: Message denied temporarily
Post by: PlusPlus on November 10, 2014, 11:59:31 AM
Sorry for my late feedback:

i have installed the update, it seems working but now i have the same problem:

Code: [Select]
2014-11-10 11:55:24.990477500 8933 virus::clamav plugin (data_post): Changing permissions on file to permit scanner access
2014-11-10 11:55:25.067806500 8933 virus::clamav plugin (data_post): clamscan results: Failed to parse reply: "Access denied. ERROR"
2014-11-10 11:55:25.067807500 8933 virus::clamav plugin (data_post): ClamAV error: /usr/bin/clamdscan --stdout  --config-file=/etc/clamd.conf --no-summary /var/spool/qpsmtpd/1415616924:8933:0 2>&1: 2
Title: Re: Message denied temporarily
Post by: Stefano on November 10, 2014, 12:02:02 PM
Bugzilla is right there, please post there, thank you
Title: Re: Message denied temporarily
Post by: hanscees on November 10, 2014, 09:46:33 PM
Hi,

I have the same problem. Is there any sign on a fix being rolled out?

Hans-Cees
Title: Re: Message denied temporarily
Post by: guest22 on November 10, 2014, 10:34:41 PM
hanscees,

as Stefano indicated, please provide all your exact experiences, possible fixes and test results to bugzilla. Thanks!

guest
Title: Re: Message denied temporarily
Post by: PlusPlus on November 13, 2014, 04:32:43 PM
Postet on Bugzilla:

http://bugs.contribs.org/show_bug.cgi?id=8654
Title: Re: Message denied temporarily
Post by: CharlieBrady on November 16, 2014, 09:04:11 PM
i have installed the update, it seems working but now i have the same problem:

No, now you have a different problem. And we are waiting for you to provide more information in bugzilla.
Title: Re: Message denied temporarily
Post by: bosco555 on December 19, 2014, 12:27:54 AM
Hi all,
this is still a problem..config show qmail after latest updates:
=======================================
[root@compu1 ~]# config show qmail
qmail=service
    DoubleBounceTo=devnull
    MaxMessageSize=15000000
    VacationDelay=-t1d
    status=enabled

RESET as per this thread:

[root@compu1 ~]# config setprop qmail MaxMessageSize 35000000
config setprop clamav MaxFileSize 35M
config setprop php UploadMaxFilesize 35M
db configuration setprop spamassassin MaxMessageSize 35000000
signal-event email-update[root@compu1 ~]# config setprop qpsmtpd MaxScannerSize 35000000
[root@compu1 ~]# config setprop clamav MaxFileSize 35M
[root@compu1 ~]# config setprop php UploadMaxFilesize 35M
[root@compu1 ~]# db configuration setprop spamassassin MaxMessageSize 35000000
[root@compu1 ~]# signal-event email-update
[root@compu1 ~]# config show qmail
qmail=service
    DoubleBounceTo=devnull
    MaxMessageSize=35000000
    VacationDelay=-t1d
    status=enabled
======================================================
Thanks and Merry Christmas to all
Title: Re: Message denied temporarily
Post by: Daniel B. on December 19, 2014, 09:31:44 AM
Please post info in bugzilla. A bug is opened for this issue here: http://bugs.contribs.org/show_bug.cgi?id=8654 but we're waiting for more information to be able to fix it
Title: Re: Message denied temporarily
Post by: Stefano on December 19, 2014, 12:00:02 PM
bosco555

please use bugzilla and please, be more "verbose" about the issue.. "this is still a problem.." doesn't tell us nothing

finally, be aware there are 2 issues:
Code: [Select]
Can't allocate memory ERROR
and
Code: [Select]
Access denied. ERROR

the first one is solved AFAIK

thank you