Re: [clamav-users] Server Busy 421 - Debian 9

2020-05-28 Thread Gary R. Schmidt

On 28/05/2020 14:57, mauri via clamav-users wrote:

Hello

Debian 9, ClamAV and ClamSmtp daemon are running, the port are in listen 
state….. but if try to telnet to this


Appair the messeges « 421 Server busy, too many connections »


Having a gander at the source code, in common/smtppass.c:
#define SMTP_STARTBUSY  "421 Server busy, too many connections" CRLF
...
/* Check to make sure we have a thread */
if(fd != -1)
{
sp_messagex(NULL, LOG_ERR, "too many connections open (max 
%d). sent busy response", g_state.max_threads);

write(fd, SMTP_STARTBUSY, KL(SMTP_STARTBUSY));
shutdown(fd, SHUT_RDWR);
close(fd);
fd = -1;
}

Looks like you've run out of threads, and there should be a message in a 
log somewhere telling you the maximum, in the source the default is 64.


Of course, there is no telling what the Debian maintainers have done to 
the source code, it could be anything.


Cheers,
GaryB-)

___

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


Re: [clamav-users] Server Busy 421 - Debian 9

2020-05-28 Thread Matus UHLAR - fantomas

On 28.05.20 06:57, mauri via clamav-users wrote:

Debian 9, ClamAV and ClamSmtp daemon are running, the port are in listen
state... but if try to telnet to this

Appair the messeges < 421 Server busy, too many connections >



# telnet 127.0.0.1 10026 and 10025

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is '^]'.

421 Server busy, too many connections


this is ClamSMTP problem, not ClamAV problem.

maybe you could ask in their mailing list
https://sourceforge.net/p/clamsmtp/mailman/clamsmtp-users/

but seems that the software is unmaintained for a long time.

Good alternative could be to try clamav-milter instead.
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
On the other hand, you have different fingers.

___

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml


[clamav-users] Server Busy 421 - Debian 9

2020-05-27 Thread mauri via clamav-users
Hello

Debian 9, ClamAV and ClamSmtp daemon are running, the port are in listen
state... but if try to telnet to this

Appair the messeges < 421 Server busy, too many connections >

 

# telnet 127.0.0.1 10026 and 10025

Trying 127.0.0.1...

Connected to 127.0.0.1.

Escape character is '^]'.

421 Server busy, too many connections

 

Clamd.log dosn't appair with any error message...

User i have changed on both config to clamav

 

clamsmtp.conf

OutAddress: 10026

MaxConnections: 64

Listen: 127.0.0.1:10025

ClamAddress: /var/run/clamav/clamd.ctl

Header: X-AV-Checked: ClamAV using ClamSMTP

TempDirectory: /var/spool/clamsmtp

PidFile: /var/run/clamsmtp/clamsmtpd.pid

User: clamav

 

 

root@mail:/etc/clamav# cat clamd.conf

#Automatically Generated by clamav-daemon postinst

#To reconfigure clamd run #dpkg-reconfigure clamav-daemon

#Please read /usr/share/doc/clamav-daemon/README.Debian.gz for details

LocalSocket /var/run/clamav/clamd.ctl

FixStaleSocket true

LocalSocketGroup clamav

LocalSocketMode 666

# TemporaryDirectory is not set to its default /tmp here to make overriding

# the default with environment variables TMPDIR/TMP/TEMP possible

User clamav

ScanMail true

ScanArchive true

ArchiveBlockEncrypted false

MaxDirectoryRecursion 15

FollowDirectorySymlinks false

FollowFileSymlinks false

ReadTimeout 180

MaxThreads 12

MaxConnectionQueueLength 15

LogSyslog false

LogRotate true

LogFacility LOG_LOCAL6

LogClean false

LogVerbose false

PreludeEnable no

PreludeAnalyzerName ClamAV

DatabaseDirectory /var/lib/clamav

OfficialDatabaseOnly false

SelfCheck 3600

Foreground false

Debug false

ScanPE true

MaxEmbeddedPE 10M

ScanOLE2 true

ScanPDF true

ScanHTML true

MaxHTMLNormalize 10M

MaxHTMLNoTags 2M

MaxScriptNormalize 5M

MaxZipTypeRcg 1M

ScanSWF true

ExitOnOOM false

LeaveTemporaryFiles false

AlgorithmicDetection true

ScanELF true

IdleTimeout 30

CrossFilesystems true

PhishingSignatures true

PhishingScanURLs true

PhishingAlwaysBlockSSLMismatch false

PhishingAlwaysBlockCloak false

PartitionIntersection false

DetectPUA false

ScanPartialMessages false

HeuristicScanPrecedence false

StructuredDataDetection false

CommandReadTimeout 30

SendBufTimeout 200

MaxQueue 100

ExtendedDetectionInfo true

OLE2BlockMacros false

AllowAllMatchScan true

ForceToDisk false

DisableCertCheck false

DisableCache false

MaxScanTime 12

MaxScanSize 100M

MaxFileSize 25M

MaxRecursion 16

MaxFiles 1

MaxPartitions 50

MaxIconsPE 100

PCREMatchLimit 1

PCRERecMatchLimit 5000

PCREMaxFileSize 25M

ScanXMLDOCS true

ScanHWP3 true

MaxRecHWP3 16

StreamMaxLength 25M

LogFile /var/log/clamav/clamav.log

LogTime true

LogFileUnlock false

LogFileMaxSize 0

Bytecode true

BytecodeSecurity TrustSigned

BytecodeTimeout 6

OnAccessMaxFileSize 5M


___

clamav-users mailing list
clamav-users@lists.clamav.net
https://lists.clamav.net/mailman/listinfo/clamav-users


Help us build a comprehensive ClamAV guide:
https://github.com/vrtadmin/clamav-faq

http://www.clamav.net/contact.html#ml