2019-09-20 - hschneider, Admin
Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.
Printable Version of Topic
Click here to view this topic in its original format |
XMail Forum > XMail Server > Xmail Generates Bounce Messages |
Posted by: MaartenJB May 22 2007, 10:07 AM | ||
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:
Thanks |
Posted by: hschneider May 22 2007, 10:56 AM |
"NoSenderBounce" "0" |
Posted by: MaartenJB May 23 2007, 08:34 AM | ||
Thanks for the response. I'm going to test this setting, but this is what the manual says:
I did see the option too, and "NoSenderBounce" is what I want. But when I read the manual, the explanation didn't make sence. |
Posted by: MaartenJB Jul 3 2007, 10:31 AM | ||||
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?
this is my server configuration:
|
Posted by: hschneider Jul 3 2007, 12:02 PM | ||||
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?domain=uymail.com&detailed=1 This is a telnet session with this server:
Please post the SLOG if possible. |
Posted by: MaartenJB Jul 3 2007, 01:05 PM | ||
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:
|
Posted by: hschneider Jul 3 2007, 01:12 PM | ||
I see ... clear ErrorsAdmin and TempErrorsAdmin in server.tab.
|
Posted by: MaartenJB Jul 3 2007, 01:56 PM |
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 |
Posted by: jdsmith Jul 5 2007, 01:48 PM |
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?? |
Posted by: MaartenJB Feb 21 2008, 12:47 PM |
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. |
Posted by: GGGss Mar 12 2008, 10:25 AM |
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 |
Posted by: hschneider Mar 14 2008, 08:09 AM |
You could create a custom filter which stops all bouncing messages in filters.out.tab. |
Posted by: MaartenJB May 22 2008, 05:35 PM |
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 |
Posted by: hschneider May 24 2008, 07:39 AM |
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. |
Posted by: sc4vengr Jun 11 2008, 10:14 PM | ||||||
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
filters/antibounce.tab
filters/antibounce/antibounce.php
Enjoy |
Posted by: voigt Jun 12 2008, 12:52 AM |
Here's what was working for me until I upgraded to 1.25 (note this probably has nothing to do with my problem with 1.25 and should work there too): Create a postmaster account called for example postxmaster. Point all postmaster related server.tab entries at it. Create a null file called mailproc.tab in it's mail directory. No more bounce messages. Why do this? Spammers send spam to my server to a non-existent user with a return address of the target spam victim. If you allow xmail to send out "message undeliverable notifications", the spammers spam will be delivered back to where xmail "thinks" it came from, thus spamming the faked from address. If there's a better, easier way (filters are not easier and probably generate a lot of unnecessary overhead) I'd love to know. We really need a "never, ever send any postmaster mail off the local lan" flag in server.tab. As been mentioned elsewhere, spamcop will put you in banned lists if you bounce spammers messages for them. They have "honey pots" all over that look for postmaster messages. |
Posted by: pepsi Jun 12 2008, 12:43 PM |
Just a quistion beside. at my work we use a mailrelay server. This server does during the handshake if the recipient mail address exists. If not the connection is closed. So the sending mailserver is responsible for sending the NDR. In this way not my ip address is blacklisted but the server that is sending spam. Is this an option for Xmailserver ? |
Posted by: hschneider Jun 13 2008, 08:52 AM |
Voigt, pls forward this feature request direclty to Davidel at xmailserver.org. Pepsi, this will fail when the recipient has catchall accounts .... |
Posted by: voigt Sep 11 2008, 12:31 PM |
Further research reveals the following: These e-mails (which originate from my mail server) are created by xmail with a null sender "<>". They are bounce messages. I cannot find any way to be rid of them. Maybe someone has an idea. (I have messaged Davide.) My server (call it m1) acts as a secondary MX for another domain (m2). The other domain is running xmail 1.24. domain m2 has the following users: u1, u2 and u3. Spammer sends mail to fakeuser@m2 with a faked sender address of spamtarget@someotherdomain. This e-mail is sent to my server (m1). My server attempts to relay it to m2 like a good secondary should. Unfortunately, m2 won't ever accept it because it has no user fakeuser@m2. Eventually m1 gives up trying to relay the message, applys a bounce message from <> to the front and "returns" it to the "sender" spamtarget@someotherdomain. So our clever spammers have found a way to relay their crap through my server. I'd really like to stop this. I've temporarily removed my backup MX records for my friends domain. I hope there's some other way to fix this. John |
Posted by: voigt Sep 12 2008, 01:35 AM |
Here's Davide's reply: Feed the backup MX with the proper accounts handled by the primary MX. This is typically done by creating one cmdalias file for every account, having an "smtprelay" line pointing to the real MTA. This better be scripted, and done automatically, for your sake. No, I don't have the scripts (since I have no need for them), and people that wrote them were not willing to share them. - Davide I guess xmail's just not meant to be a reasonable secondary server. John |
Posted by: Sob Sep 12 2008, 08:23 PM | ||||
I tried the following and it seems to work just fine: Primary server: mx1.example.net, XMail, Win32 Secondary server: mx2.example.net, XMail, Linux Primary server has regular domain example.net with all accounts. Secondary server has also regular domain example.net (not custom domain) but with no acccounts. update-accounts.bat goes to primary server, update-accounts.php goes to secondary server. To synchronize accounts, just to run update-accounts.bat is required. It doesn't handle disabled acccounts. Getting the list of accounts from XMail would have to be modified for that. update-accounts.bat:
Replace [TAB] by real tab. pscp.exe and plink.exe are part of PuTTY (http://www.chiark.greenend.org.uk/~sgtatham/putty/) update-accounts.php:
|
Posted by: voigt Sep 13 2008, 12:14 AM |
Hi: I really appreciate you going to the trouble of writing those scripts and I hope they help someone. I can't really use them because I was acting as a secondary for 14 different domains (2 of whom also do secondary for domains that I host) and on top of being cumbersome, it's less secure than a simple custom domain. It also requires that additional control ports be opened in the firewall (or at least ssh ports for putty) which is not really an option I'd like to explore. I'm looking at other solutions for the secondary servers that don't require knowledge of the individual accounts and yet won't relay spam. Obviously, a "don't ever send e-mail from "<>" or postmaster" feature would solve my problem but I surely won't complain about something that Davide's given us for free. I suspect my situation is pretty unique anyway. Thanks again, John |
Posted by: RoxXxer Sep 15 2015, 08:21 AM |
I want to stop sending bounce mail to Postmaster. It should be sent only to the sender .How can I do that ? |