MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Viking on 2014-03-10, 15:33:53
-
After the update:
Updating:
courier-imap-toaster x86_64 4.1.2-1.3.15.mr.el6 mratwork-release-version-arch 839 k
qmail-pop3d-toaster x86_64 1.03-1.3.37.mr.el6 mratwork-release-version-arch 37 k
qmail-toaster x86_64 1.03-1.3.37.mr.el6 mratwork-release-version-arch 691 k
You can not send emails.
It is this error:
SMTP< 553 sorry, your envelope sender has been denied (#5.7.1)
-
Try 'sh /script/fixmail-all; sh /script/restart-mail'.
-
Try 'sh /script/fixmail-all; sh /script/restart-mail'.
Yes I've done it already, and reboot. Still inaction. Before the upgrade was OK.
There can also send mail to the server. Gmail returns:
Delivery to the following recipient failed permanently:
name@domain.com
Technical details of permanent failure:
Google tried to deliver your message, but it was rejected by the server for the recipient domain domain.com by mail.domain.com. [188.xx.xx.xx].
The error that the other server returned was:
553 sorry, your envelope sender has been denied (#5.7.1)
-
Check your IP in spamhuas because maybe your IP is blocked.
You can see content of /var/qmail/supervise/smtp/run:
#!/bin/sh
QMAILDUID=$(id -u qmaild)
NOFILESGID=$(id -g qmaild)
MAXSMTPD=$(cat /var/qmail/control/concurrencyincoming)
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=$(hostname)
VCHKPW="/home/vpopmail/bin/vchkpw"
if [ -f /var/qmail/control/norecordio ] ; then
RECORDIO=""
else
RECORDIO="/usr/bin/recordio"
fi
#BLACKLIST=`cat /var/qmail/control/blacklists`
#RBLSMTPD="/usr/bin/rblsmtpd"
if [ -f /var/qmail/control/spamdyke ] ; then
### MR -- content of SPAMDYKE is '/usr/bin/spamdyke -f /etc/spamdyke.conf'
VAR1=$(cat /var/qmail/control/spamdyke)
VAR2=" --tls-level=smtp-no-passthrough"
### MR -- special for smtp tls
SPAMDYKE=$VAR1$VAR2
else
SPAMDYKE=""
if [ -f /var/qmail/control/rblsmtpd ] ; then
### MR -- content of RBLSMTPD is '/usr/bin/rblsmtpd'
RBLSMTPD=$(cat /var/qmail/control/rblsmtpd)
BLACKLIST=$(cat /var/qmail/control/blacklists)
else
RBLSMTPD=""
BLACKLIST=""
fi
fi
if [ -f /var/qmail/control/softlimit ] ; then
### MR -- softlimit file must content with '/usr/bin/softlimit -m SOFTLIMITVAR'
### where SOFTLIMITVAR is 72000000 for 64bit and 18000000
### Note: incresing SOFTLIMITVAR if not enough (example: because 'login fail')
SOFTLIMIT=$(cat /var/qmail/control/softlimit)
else
SOFTLIMIT=""
fi
IP=0
PORT=25
### MR -- SSL must using SMTPS=1 and SSL=1 but non-SSL only SSL=0 (without SMTPS=0)
export SMTPAUTH="!" \
SSL=0 \
REQUIRE_AUTH=0 \
FORCE_TLS=0 \
DENY_TLS=0 \
AUTH=1 \
REQUIRE_AUTH=0 \
ALLOW_INSECURE_AUTH=1
### MR -- spamhaus.org recommended for not using $RBLSMTPD $BLACKLIST entry before $SMTPD
exec $SOFTLIMIT \
/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" $IP $PORT $RECORDIO \
$SPAMDYKE $RBLSMTPD $SMTPD $VCHKPW /bin/true 2>&1
-
In the new config, possible your smtp always filtering by spamdyke and or rblsmtpd. You can disabled it with delete /qmail/control/spamdyke and or /qmail/rblsmtpd
-
Check your IP in spamhuas because maybe your IP is blocked.
http://www.spamhaus.org/lookup/
I checked.
IP is not blocked.
For old or so is OK.
/var/qmail/supervise/smtp/run:
#!/bin/sh
QMAILDUID=$(id -u qmaild)
NOFILESGID=$(id -g qmaild)
MAXSMTPD=$(cat /var/qmail/control/concurrencyincoming)
SMTPD="/var/qmail/bin/qmail-smtpd"
TCP_CDB="/etc/tcprules.d/tcp.smtp.cdb"
HOSTNAME=$(hostname)
VCHKPW="/home/vpopmail/bin/vchkpw"
if [ -f /var/qmail/control/norecordio ] ; then
RECORDIO=""
else
RECORDIO="/usr/bin/recordio"
fi
#BLACKLIST=`cat /var/qmail/control/blacklists`
#RBLSMTPD="/usr/bin/rblsmtpd"
if [ -f /var/qmail/control/spamdyke ] ; then
### MR -- content of SPAMDYKE is '/usr/bin/spamdyke -f /etc/spamdyke.conf'
SPAMDYKE=$(cat /var/qmail/control/spamdyke)
else
SPAMDYKE=""
if [ -f /var/qmail/control/rblsmtpd ] ; then
### MR -- content of RBLSMTPD is '/usr/bin/rblsmtpd'
RBLSMTPD=$(cat /var/qmail/control/rblsmtpd)
BLACKLIST=$(cat /var/qmail/control/blacklists)
else
RBLSMTPD=""
BLACKLIST=""
fi
fi
### MR -- incresing SOFTLIMITVAR if not enough (example: because 'login fail')
if [ `uname -m` = 'x86_64' ] ; then
SOFTLIMITVAR="72000000"
else
SOFTLIMITVAR="18000000"
fi
IP=0
PORT=25
### MR -- SSL must using SMTPS=1 and SSL=1 but non-SSL only SSL=0 (without SMTPS=0)
export SMTPAUTH="!" \
SSL=0 \
REQUIRE_AUTH=0 \
FORCE_TLS=0 \
DENY_TLS=0 \
AUTH=1 \
REQUIRE_AUTH=0 \
ALLOW_INSECURE_AUTH=1
### MR -- spamhaus.org recommended for not using $RBLSMTPD $BLACKLIST entry before $SMTPD
exec /usr/bin/softlimit -m $SOFTLIMITVAR \
/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" $IP $PORT $RECORDIO \
$SPAMDYKE $RBLSMTPD $SMTPD $VCHKPW /bin/true 2>&1
In the new config, possible your smtp always filtering by spamdyke and or rblsmtpd. You can disabled it with delete /qmail/control/spamdyke and or /qmail/rblsmtpd
Can you explain that? Please write what to do.
-
Do you use spamdyke?
-
Do you use spamdyke?
No
-
MUSTAFA this is a critical bug for mail. Please fix this in the repo for qmt.
SSH.
vim /var/qmail/control/badmailfrom
Replace entire file with
.*\ @.*
!.*@.*\..*
.*%.*
Those new regex patterns are crazy! This will make mail work again.
-
Update your qmail with:
cd /
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail
-
Update your qmail with:
cd /
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail
It works OK.
Thank you.