LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-14-2009, 10:44 PM   #1
ponganthony
LQ Newbie
 
Registered: Oct 2007
Location: Hong Kong
Posts: 21

Rep: Reputation: 0
Question My mail server bounce mails of unknown users. Can I stop it.


Dear All,

We use Fetchmail to a POP3 mail box of our internet service provider to get mail of my office. Then we distribute them by a Sendmail server to each user through a LAN.

We received complaints that we are sending out spam mails. I suspected that the spam mails are generated by bouncing mails to users unknown to our office. This is because most of the spam mail we received are of fake senders and our servers bounce messages to them. Generating a lot of unnecessary traffic.

Are the returning messages of unknown receiving users being send out by Sendmail or Fetchmail? Could we stop the server sending out returning mails? How?

Please help.
Regards,
Anthony Pong
 
Old 07-15-2009, 12:43 AM   #2
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
What do you mean by
Quote:
We received complaints that we are sending out spam mails.
Could you show us a sample of what you are calling a spam?


Anyhow, You could restrict access to sendmail to the localhost only as you don't seem to be using it for other purposes.
 
Old 07-31-2009, 05:46 PM   #3
kingkashif
Member
 
Registered: May 2009
Posts: 94

Rep: Reputation: 16
well listen to me. I am giving you a perfect idea here.

I think you should tell sendmail to accept all emails that are destined to your domain but the user is unknown.

For example

By default when your sendmail receive message for non-existent-user@YOUR-DOMAIN.COM then it says. Wellll the domain is sure mine and i accept messages for it but i don't know if "non-existent-user" exist on this server. So then sendmail bounces that message back to sender.

So what i am saying is that you need to make sendmail accept messages even if the user doesn't exist on your server, and then send those unknown user's emails to an account on your server named (lets say) "junkcatcher".
And then just write a simple bash script and run it every hour through cron job to delete all mails for "junkcatcher" user... HOWS THAT SOUND ???

ok now let me tell you how to achieve this goal

first in /etc/mail/sendmail.mc file put following

Quote:
define(`LUSER_RELAY',`local:junkcatcher')dnl
then after making sendmail.mc file. Restart sendmail

Thats it. Hope it helps you.

and yeah offcourse you need to make junkcatcher account first.

thats it ...

else if you can't do it
contact me http://kingkashif.com

wooooo let me go to sleep now it's 4:45 AM
 
Old 07-31-2009, 08:24 PM   #4
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
You should test your email server to see if it's properly setup.

Go here http://www.spamhelp.org/shopenrelay/ to test it.
 
Old 11-01-2009, 05:47 PM   #5
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
From http://en.wikipedia.org/wiki/Backscatter_(e-mail):
Quote:
Backscatter (also known as outscatter, misdirected bounces, blowback or collateral spam) is a side-effect of e-mail spam, viruses and worms, where e-mail servers receiving spam and other mail send bounce messages to an innocent party. This occurs because the original message's envelope sender is forged to contain the often unprotected e-mail address of the victim. A very large proportion of such e-mail is sent with a forged From: header, matching the envelope sender.
OP gave a very understandable description of a well known problem.

Last edited by archtoad6; 11-09-2009 at 05:40 AM. Reason: typo - missing letter
 
Old 11-08-2009, 03:01 PM   #6
Suncoast
Member
 
Registered: Apr 2009
Location: Largo, Florida
Distribution: Slackware
Posts: 208

Rep: Reputation: 35
Or they may simply and inadvertently have been running an open relay. Also a common and well known problem. If the OP had replied to WebDevil, we would have been able to take it further.
 
Old 11-08-2009, 05:44 PM   #7
WhisperiN
Member
 
Registered: Jun 2009
Location: Middle East
Distribution: Slackware 13.1, CentOS 5.5
Posts: 137

Rep: Reputation: 17
Quote:
Originally Posted by kingkashif View Post

ok now let me tell you how to achieve this goal

first in /etc/mail/sendmail.mc file put following



then after making sendmail.mc file. Restart sendmail

Thats it. Hope it helps you.


Hello buddy,

Can I achieve the same goal on postfix?

Rdgards..
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to allow roaming mail client to send mails via its mail server satimis Linux - Server 0 01-28-2009 08:59 AM
To restrict a user to send mails only to 3 e-mails IDs using postfix mail server sharath41 Linux - Newbie 2 07-21-2008 07:38 PM
qmail bounce back mails deepakatiabhi Linux - Newbie 1 12-13-2007 04:08 PM
Postfix sending mail for unknown users to other server? Phaethar Linux - Software 2 03-18-2004 01:33 PM
To forward mails for unknown users to common host fnetindia Linux - Software 2 09-22-2003 10:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration