Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-28, 21:18:02

Author Topic: STMP Error after update  (Read 7597 times)

0 Members and 1 Guest are viewing this topic.

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
STMP Error after update
« on: 2014-03-10, 15:33:53 »
After the update:
Code: [Select]
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:
Code: [Select]
SMTP< 553 sorry, your envelope sender has been denied (#5.7.1)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: STMP Error after update
« Reply #1 on: 2014-03-10, 16:05:07 »
Try 'sh /script/fixmail-all; sh /script/restart-mail'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: STMP Error after update
« Reply #2 on: 2014-03-10, 16:24:42 »
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:
Code: [Select]
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)

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: STMP Error after update
« Reply #3 on: 2014-03-10, 16:33:23 »
Check your IP in spamhuas because maybe your IP is blocked.

You can see content of /var/qmail/supervise/smtp/run:
Code: [Select]
#!/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

..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: STMP Error after update
« Reply #4 on: 2014-03-10, 16:35:00 »
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
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: STMP Error after update
« Reply #5 on: 2014-03-10, 16:51:46 »
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:
Code: [Select]
#!/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


Quote
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.

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: STMP Error after update
« Reply #6 on: 2014-03-10, 17:06:24 »
Do you use spamdyke?
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: STMP Error after update
« Reply #7 on: 2014-03-10, 17:36:39 »

Offline chrisf

  • Senior Master
  • **
  • Posts: 883
  • Karma: +11/-1
  • Gender: Male
  • Be the change that you wish to see in the world.
    • View Profile
    • Conviction's Hosting
Re: STMP Error after update
« Reply #8 on: 2014-03-10, 17:49:57 »
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
Code: [Select]
.*\ @.*
!.*@.*\..*
.*%.*

Those new regex patterns are crazy!  This will make mail work again.
Christopher

Knowledge in: PHP, Perl, MySQL, Javascript, Actionscript, FLASH, HTML, CSS
Server Administrator / Developer: https://convictionshosting.com

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: STMP Error after update
« Reply #9 on: 2014-03-11, 00:19:41 »
Update your qmail with:
Code: [Select]
cd /
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Viking

  • Senior Member
  • *
  • Posts: 315
  • Karma: +0/-0
    • View Profile
Re: STMP Error after update
« Reply #10 on: 2014-03-11, 02:20:59 »
Update your qmail with:
Code: [Select]
cd /
yum clean all
yum update
sh /script/fixmail-all
sh /script/restart-mail
It works OK.
Thank you.

 


Top 4 Global Search Engines:    Google    Bing    Baidu    Yahoo
Click Here

Page created in 0.083 seconds with 22 queries.

web stats analysis