XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Xmail Generates Bounce Messages

Reply to this topicStart new topicStart Poll

> Xmail Generates Bounce Messages
MaartenJB
  Posted: May 22 2007, 10:07 AM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



Hello, I've got a problem with bounce messages that are being returned to sender. When the address on the next mailserver does not exist, xmail generates a bounce message.

This is my server.tab:

CODE
"RootDomain"    "mydomain.nl"
"SmtpServerDomain"      "mydomain.nl"
"POP3Domain"    "mydomain.nl"
"HeloDomain"    "mydomain.nl"
"PostMaster"    "postmaster@mydomain.nl"
"ErrorsAdmin"   "postmaster@mydomain.nl"
"RemoveSpoolErrors"     "0"
"NoSenderBounce"        "1"
"NotifyTryPattern"      ""
"MaxMTAOps"     "16"
"ReceivedHdrType"       "0"
"FetchHdrTags"  "+X-Deliver-To,+Received,To,Cc"
"MaxMessageSize"        "6000"
"AllowNullSender"       "0"
"DefaultSmtpPerms"      "MRVZ"


Thanks
PMEmail Poster
Top
hschneider
Posted: May 22 2007, 10:56 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



"NoSenderBounce" "0"


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
MaartenJB
Posted: May 23 2007, 08:34 AM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



Thanks for the response. I'm going to test this setting, but this is what the manual says:

CODE
[NoSenderBounce]

When building bounce messages, use the null SMTP sender ('MAIL FROM:<>') instead of the 'PostMaster' address. This will affect only the SMTP sender, while the message RFC822 headers will still contain the correct From: header.


I did see the option too, and "NoSenderBounce" is what I want. But when I read the manual, the explanation didn't make sence.
PMEmail Poster
Top
MaartenJB
Posted: Jul 3 2007, 10:31 AM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



This is what I find in the XMail Queue Manager. The Senders address is incorrect, probably because of the space after the address. But why is this mail being generated? That shoud not happen right?


CODE
[127.0.0.1]:0;[127.0.0.1]:0;Thu, 28 Jun 2007 04:56:14 +0200
mydomain.com
X12E184
MAIL FROM:<postmaster@mydomain.com>
RCPT TO:<stannous@uymail.com >
<<MAIL-DATA>>
Date:   Thu, 28 Jun 2007 04:56:14 +0200
X-MessageId: <1182999374435.2792213392.5031e.lnxsrv2>
X-SmtpMessageId: <S12E183>
From: mydomain.com PostMaster <postmaster@mydomain.com>
To: stannous@uymail.com
Subject: Error sending message [1182999374435.2792213392.5031e.lnxsrv2] from [mydomain.com]
X-MailerServer: XMail 1.23
X-MailerError: Message = [1182999374435.2792213392.5031e.lnxsrv2] Server = [mydomain.com]

[<00>] XMail bounce: Rcpt=[kqkc@mydomain.com];Error=[501 Address Syntax Error in <stannous@uymail.com > SIZE=1642]


[<01>] Error sending message [1182999374435.2792213392.5031e.lnxsrv2] from [mydomain.com].

ID:        <S12E183>
Mail From: <stannous@uymail.com >
Rcpt To:   <kqkc@mydomain.com>
Server:    <192.168.1.1:25> [192.168.1.1:25]


[<02>] The reason of the delivery failure was:

501 Address Syntax Error in <stannous@uymail.com > SIZE=1642


[<05>] Here is listed the initial part of the message:

Received: from cpe-24-210-144-230.woh.res.rr.com ([24.210.144.230]:1777)
by mydomain.com with [XMail 1.23 ESMTP Server]
id <S12E183> for <kqkc@mydomain.com> from <stannous@uymail.com>;
Thu, 28 Jun 2007 04:56:13 +0200
Received: from yesterdaynowzzz (HELO dementiahost.localleander)
 by nearl7.occurrent.sd.biz with WQMTP; Thu, 28 Jun 2007 08:41:52 +0500
Date: Wed, 27 Jun 2007 21:36:52 -0600
Message-Id: <CFE7.9A8.3019798B8C@mopalinux.com>
From: "Shawn Perez" <stannous@uymail.com >
To: kqkc@mydomain.com
Subject: monogamy, bet and win casino Royal
Reply-To: dirk@complain.zaire.deficient.ac.za
X-Scanner: prone for cyclopean (http://duncanthrax.net/exiscan/)
X-Virus-Scanner: AMaVis 0.2.0-pre6 / Virus Scan
X-Loop: anglo@seeing.fr
Mime-Version: 1.0
Content-Type: text/html; charset=iso-8859-1
Content-Transfer-Encoding: 7bit


this is my server configuration:

CODE
"RootDomain"    "mydomain.com"
"SmtpServerDomain"      "mydomain.com"
"POP3Domain"    "mydomain.com"
"HeloDomain"    "mydomain.com"
"PostMaster"    "postmaster@mydomain.com"
"ErrorsAdmin"   "postmaster@mydomain.com"
"RemoveSpoolErrors"     "0"
"NoSenderBounce"        "0"
"MaxMTAOps"     "16"
"ReceivedHdrType"       "0"
"FetchHdrTags"  "+X-Deliver-To,+Received,To,Cc"
"MaxMessageSize"        "6000"
"AllowNullSender"       "0"
"DefaultSmtpPerms"      "MRVZ"
PMEmail Poster
Top
hschneider
Posted: Jul 3 2007, 12:02 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02




QUOTE

Mail From: <stannous@uymail.com >



Remove the space after the recipient address and check again. XQM's SLOG file to this message would be helpful. Trying this server manually shows that it probes the sender against several antispam rules. So If your domain does not match all criteria, the connection will be dropped:

This gives you the recipient's MX:
http://www.checkdns.net/quickcheck.aspx?do....com&detailed=1

This is a telnet session with this server:


CODE

$ telnet uymail-com.mr.outblaze.com 25
Trying 64.62.181.94...
Connected to uymail-com.mr.outblaze.com.
Escape character is '^]'.
220 spf5-4.us4.outblaze.com ESMTP Postfix
helo test
250 spf5-4.us4.outblaze.com
mail from: <test@test.de>
250 Ok
rcpt to: <stannous@uymail.com>
550 <test>: No thank you rejected: Mail refused: See http://spamblock.outblaze.com/HCUX329959
rcpt to: <stannous@uymail.com >
550 <test>: No thank you rejected: Mail refused: See http://spamblock.outblaze.com/HCUX329959
421 spf5-4.us4.outblaze.com Error: timeout exceeded
Connection closed by foreign host.


Please post the SLOG if possible.




--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
MaartenJB
Posted: Jul 3 2007, 01:05 PM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



Just to be sure, I don't want this message to be sent, because it is spam. I want to prevent bounce messages from being sent back to the spammer.

This is the SLOG from XQM:

CODE
[PeekTime] 1183453970 : Tue, 3 Jul 2007 11:12:50 +0200
<<
ErrCode   = -40
ErrString = Invalid server address
ErrInfo   = uymail.com
SMAIL SMTP-Send FF = "uymail.com " SMTP = "mydomain.nl" From = "postmaster@mydomain.nl" To = "stannous@uymail.com " Failed !
SMTP-Error = "417 Temporary delivery error"
SMTP-Server = "uymail.com "
>>

PMEmail Poster
Top
hschneider
Posted: Jul 3 2007, 01:12 PM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



I see ... clear ErrorsAdmin and TempErrorsAdmin in server.tab.


QUOTE

    [ErrorsAdmin]
        The email address that receives notification messages for every
        message that has had delivery errors. If it is empty (allowed), the
        notification message is sent to the sender only.

    [TempErrorsAdmin]
        The email address that receives notification for temporary delivery
        failures. In case it's empty the notification message is sent to the
        sender only.




--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
MaartenJB
Posted: Jul 3 2007, 01:56 PM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



Thanks, I'm going to try that one. But when I read the discription of the two settings, than this is not wat I want. I want no bounce/error message to be sent to anyone. Especially not to the sender. (spammer)

thanks
PMEmail Poster
Top
jdsmith
Posted: Jul 5 2007, 01:48 PM
Quote Post


Newbie
*

Group: Members
Posts: 19
Member No.: 2591
Joined: 5-July 07



Hello,

Just so that I understand... what is the problem with 'bounced' messages being returned to the message originator when the recipient address is rejected at the destination mail server?

I would think that this is reasonable behaviour.

But, the reason I ask this question is that I do not understand the reply... which I hope will add to my general knowledge.

The answer was... "NoSenderBounce" "0"

This should mean, when xMail Server creates 'bounced NDR messages' use a NULL Sender Address.

--

So for clarification, what is the problem that you are experiencing??
PMEmail Poster
Top
MaartenJB
Posted: Feb 21 2008, 12:47 PM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



Sorry for the VERY late response.

The reason why I don't want the mailserver to send a notification error is because this would let the spammer know the message is received.

This causes the spammer to send even more spam. The second problem is, the spammer can use an address that is valid, but not his own. The "victum" the address belongs to receives all the notification errors. In this case my mailserver is generating a lot of "spam", and this can get me blacklisted.

I tried al the suggestions mentioned, but none seem to work.

PMEmail Poster
Top
GGGss
Posted: Mar 12 2008, 10:25 AM
Quote Post


Newbie
*

Group: Members
Posts: 14
Member No.: 192
Joined: 15-June 02



Any solutions yet regarding this topic?
If there is a flaw in combatting spam the 'absolute no bounce' option would work great.

I see that spammers are using bogus return adresses just to waste bandwidth and processor time.

Regards,
Fredje
PMUsers Website
Top
hschneider
Posted: Mar 14 2008, 08:09 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



You could create a custom filter which stops all bouncing messages in filters.out.tab.


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
MaartenJB
Posted: May 22 2008, 05:35 PM
Quote Post


Junior Member
**

Group: Members
Posts: 30
Member No.: 2280
Joined: 5-October 06



Hi, I'm willing to give this filter a try. Do you maybe have a small example for me? Or point me in the right direction?

Thanks in advance
PMEmail Poster
Top
hschneider
Posted: May 24 2008, 07:39 AM
Quote Post


No - I'm not an answering script ...
Group Icon

Group: Admin
Posts: 6631
Member No.: 195
Joined: 19-June 02



Check the presence of "X-MailerServer: XMail" and "X-MailerError:" in each outgoing mail's header. If found, reject the message and stop further filters.


--------------------
Bye,
Harald


-- Download XMail Queue Manager 1.46 NOW: XMail Server Tools
-- Cross platform remote queue management!
-- Message analyzing on the fly!
-- Builtin diagnostics knowledge base!
-- Manages multiple mail queues!

Sponsored by
CD-Produktion und DVD-Produktion and Homestaging Saarland - Immobilien schneller verkaufen in der Region Saarland, Rheinland-Pfalz und Luxembourg
PMEmail PosterUsers Website
Top
sc4vengr
Posted: Jun 11 2008, 10:14 PM
Quote Post


Professional
*****

Group: Members
Posts: 206
Member No.: 461
Joined: 12-February 03



Today, SpamCop decided to black list my server because it sends out bounce message as it should.

If this can help anyone, I have just finished my script to prevent XMAIL to send any bounce message except when RCPT is 2 addresses that I have specified in the code, it may not be perfect but it works.

filters.out.tab
CODE

"*"[TAB]"*"[TAB]"0.0.0.0/0"[TAB]"0.0.0.0/0"[TAB]"antibounce.tab"[CRLF]


filters/antibounce.tab
CODE

"/mailsrv/MailRoot/filters/antibounce/antibounce.php"[TAB]"@@FILE"[TAB]"@@RCPT"[CRLF]


filters/antibounce/antibounce.php
CODE

#!/usr/local/bin/php
<?php

/**
* MailAntibounce
*
* @author scav
* @copyright Copyright 2008
* @version 1.0
* @access public
*/

class MailAntibounce {
   var $_logDir = '/mailsrv/MailRoot/logs/';
   var $_file;
   var $_mail = '';
   var $_time_start;
   var $_drop_code = 4;
   var $_ok_code = 0;
   var $_writeLog = true;
   var $_filter_bypass = false;
   var $_to = '';

   /**
    * MailAntibounce::MailAntibounce()
    *
    * @param mixed $pArg1 Mail file
    * @param mixed $pArg2 To
    */
   function MailAntibounce($pArg1, $pArg2)
   {
       $mtime = explode(" ", microtime());
       $this->_time_start = $mtime[1] + $mtime[0];

       $this->_file = $pArg1;
       $this->_to = $pArg2;

       if ($this->_filter_bypass == true) {
           $this->printLog("Bypassed", $this->_ok_code);
           exit($this->_ok_code);
       }

       if ($this->_to == "root@mydomain.net") {
           $this->printLog("Whitelisted TO (root@mydomain.net)", $this->_ok_code);
           exit($this->_ok_code);
       }

       if ($this->_to == "postmaster@mydomain.net") {
           $this->printLog("Whitelisted TO (postmaster@mydomain.net)", $this->_ok_code);
           exit($this->_ok_code);
       }

       $this->getMail();

       if ($this->readMailError()) {
           $this->printLog("BOUNCE DETECTED, DROPPING MAIL", $this->_drop_code);
           exit($this->_drop_code);
       } else {
           $this->printLog("OK", $this->_ok_code);
           exit($this->_ok_code);
       }
   }

   /**
    * MailAntibounce::getMail()
    *
    * Charge le mail
    */
   function getMail()
   {
       if (file_exists($this->_file)) {
           $fp = fopen($this->_file, 'r');
           while (!feof($fp)) {
               $this->_mail .= fgets($fp);
           }
           fclose($fp);
       } else {
           $this->printLog("FILE ERROR(2)", $this->_ok_code);
           exit($this->_ok_code);
       }
   }

   function printLog($pStatus = 'OK', $pExitCode = 0)
   {
       if ($this->_writeLog) {
           $filename = $this->_logDir . 'antibounce-' . date('Ymd') . '0000';
           $handle = fopen($filename, 'a+');
           fwrite($handle, date('Y-m-d H:i:s') . "\t"
                . $this->_to . "\t"
                . $pExitCode . "\t"
                . $this->getProcessingTime() . "\t"
                . $pStatus . "\n");
           fclose($handle);
       }
   }

   function readMailError()
   {
       $mailerServer = strpos($this->_mail, 'X-MailerServer:');
       $mailerError = strpos($this->_mail, 'X-MailerError:');
       if ($mailerServer && $mailerError) {
           return true;
       } else {
           return false;
       }
   }

   function getProcessingTime()
   {
       $mtime = explode(" ", microtime());
       $time_stop = $mtime[1] + $mtime[0];
       return round($time_stop - $this->_time_start, 4);
   }
}
// Si ca chi, uncomment this line:
// exit(0);
$mail = new MailAntibounce($argv[1], $argv[2]);
// $mail = new MailAntibounce('mail.txt', 'saf');

?>


Enjoy


--------------------
You + webcam - clothes - dignity = $
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | XMail Server | Next Newest »

Reply to this topicStart new topicStart Poll