Koozali.org: home of the SME Server

Message denied temporarily

Offline PlusPlus

  • ****
  • 100
  • +0/-0
Message denied temporarily
« on: November 05, 2014, 10:29:02 AM »
Hello,

i have a problem with sending emails with attachment:





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?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Message denied temporarily
« Reply #1 on: November 05, 2014, 10:36:43 AM »
you should post here your logs.. maybe the recipient's server is using greylisting (just guessing)

Offline PlusPlus

  • ****
  • 100
  • +0/-0
Re: Message denied temporarily
« Reply #2 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?

Offline bosco555

  • *****
  • 152
  • +0/-0
Re: Message denied temporarily
« Reply #3 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'...

Offline janet

  • *****
  • 4,812
  • +0/-0
Re: Message denied temporarily
« Reply #4 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.
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.

Offline bosco555

  • *****
  • 152
  • +0/-0
Re: Message denied temporarily
« Reply #5 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.

Offline PlusPlus

  • ****
  • 100
  • +0/-0
Re: Message denied temporarily
« Reply #6 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

Offline PlusPlus

  • ****
  • 100
  • +0/-0
Re: Message denied temporarily
« Reply #7 on: November 06, 2014, 02:22:25 PM »
But i think we have to wait for the next day, i tried the reboot.

Offline PlusPlus

  • ****
  • 100
  • +0/-0
Re: Message denied temporarily
« Reply #8 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

guest22

Re: Message denied temporarily
« Reply #9 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?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: Message denied temporarily
« Reply #10 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

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: Message denied temporarily
« Reply #11 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

C'est la fin du monde !!! :lol:

Offline bosco555

  • *****
  • 152
  • +0/-0
Re: Message denied temporarily
« Reply #12 on: November 07, 2014, 12:26:19 AM »
Yes, thanks Daniel, merci beacoup!  that did it!

guest22

Re: Message denied temporarily
« Reply #13 on: November 07, 2014, 12:28:18 AM »
Please add [SOLVED] to the subject

Offline bosco555

  • *****
  • 152
  • +0/-0
[SOLVED] Re: Message denied temporarily
« Reply #14 on: November 07, 2014, 12:35:25 AM »
Done