Remo,

Each line in the file /var/qmail/log/smtp/current begins with a time stamp (@40000000597588490af48ae4). To convert the time stamp run the following command with 'tai64nlocal'. It will give you real time.


# cat /var/qmail/log/smtp/current | tai64nlocal | grep qq

Check /var/log/maillog for corresponding entries for simscan and clamav. A qq soft reject is usually associated with one of these programs called by simscan or simscan itself. The last time someone had an issue with this it ended up being simscan permissions.

You can debug simscan by entering the following lines in /var/qmail/supervise/smtp/run and stopping and starting qmail. Logging will be to /var/qmail/log/smtp/current.

SIMSCAN_DEBUG=3
export SIMSCAN_DEBUG

My file looks like this after the changes:

#!/bin/sh
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SPAMDYKE="/usr/bin/spamdyke"
SPAMDYKE_CONF="/etc/spamdyke/spamdyke.conf"
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=`hostname`
VCHKPW="/home/vpopmail/bin/vchkpw"
REQUIRE_AUTH=0
SIMSCAN_DEBUG=5
export SIMSCAN_DEBUG

exec /usr/bin/softlimit -m 64000000 \
     /usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
     -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
     $SPAMDYKE --config-file $SPAMDYKE_CONF \
     $SMTPD $VCHKPW /bin/true 2>&1


You can also disable clamav and spamassassin in /var/qmail/control/simcontrol.

Change

:clam=yes,spam=yes,spam_hits=12,attach=.mp3:.src:.bat:.pif

to

:clam=no,spam=no,spam_hits=12,attach=.mp3:.src:.bat:.pif

# qmailctl cdb

# qmailctl stop

# qmailctl start


Eric



On 7/23/2017 11:38 PM, Remo Mattei wrote:
qmail-smtpd: qq soft reject (mail server temporarily rejected message (#4.3.0)): MAILFROM



Eric Broch <mailto:ebr...@whitehorsetc.com>
July 23, 2017 at 10:36 PM
Did you check /var/log/maillog for corresponding times with the qq soft reject?




Remo Mattei <mailto:r...@mattei.org>
July 23, 2017 at 10:34 PM
I changed the permissions now to 2750 and chown to clamav the simscan dir.

Shell see.

Remo





Eric Broch <mailto:ebr...@whitehorsetc.com>
July 23, 2017 at 10:27 PM
Are there any errors in /var/log/maillog as well?

Have a look at this thread:

https://www.mail-archive.com/qmailtoaster-list@qmailtoaster.com/msg40456.html




Remo Mattei <mailto:r...@mattei.org>
July 23, 2017 at 10:12 PM
What's the best fix to have this not happing?

Remo





--
Eric Broch
White Horse Technical Consulting (WHTC)

Reply via email to