Koozali.org: home of the SME Server

How to drop mail for unknown recipient?

PhilV

How to drop mail for unknown recipient?
« on: May 12, 2004, 03:23:50 PM »
Thru the server-manager SME can be set to either "Return To Sender", or else "Forward to Administrator", for unknown recipients on incoming e-mails.

How can I set SME to just delete, (i.e. drop/ignore), e-mails for unknown recipients? My server isn't very powerful and seems to be spending a lot of time returning messages to their senders, (I guess it is getting spammed with unknown_users@mydomain.com)

Thanks,

Phil

Anonymous

How to drop mail for unknown recipient?
« Reply #1 on: May 12, 2004, 10:28:49 PM »
I have the same problem. Any solutions ?

Offline raem

  • *
  • 3,972
  • +4/-0
How to drop mail for unknown recipient?
« Reply #2 on: May 13, 2004, 05:44:53 AM »
The easiest approach is to just let qmail "do its thing". The email will bounce and then as it probably comes from a faked sender it will doublebounce and come back to you again.

Use this HOWTO to automatically remove these

http://mirror.contribs.org/smeserver/contribs/rmitchell/smeserver/howto/double%20bounce%20message%20deletion%20HOWTO%20for%20sme%20server.htm

You could also use Darrell Mays mailrules rpm to block specific addresses, but this does get laborious to track and maintain. There are also some serious suggestions that this rpm is not fully compatible with sme 6.0 or 6.0.1 and can break some implementations of mail systems. The developers have warned not to use the mailrules rpm, although Darrell is not of that opinion.

Regs
Ray Mitchell
...

Anonymous

How to drop mail for unknown recipient?
« Reply #3 on: May 14, 2004, 12:32:02 AM »
The problem with letting qmail do it's thing is that it generates a lot of double bounces, granted you could remove these like the site suggests but I think it would be best to be able to reject the user at the smtp level using the ldap directory.

There is a contrib that uses mailfront that does this but it is for SME 5.5. http://mirror.contribs.org/smeserver/contribs/cbharda/contrib/mailfront55/

I want to be able to do this also so I am going to try over the weekend to install it on 6.0.1.

Jon

Offline raem

  • *
  • 3,972
  • +4/-0
How to drop mail for unknown recipient?
« Reply #4 on: May 14, 2004, 01:24:40 AM »
Let us know if that contrib for v5.5 works on v6.x.


Another alternative is to use the spamassassin contrib from Greg Zartmann, which I use and does work OK on v6.0.
It has a white list and black list function in the server manager panel which allows you to enter addresses or domains to accept or reject messages from.
See
http://mirror.contribs.org/smeserver/contribs/gzartman/Beta/spamassassin/

There were some instal notes on the devinfo site a couple of months ago. See this thread
http://lists.contribs.org/mailman/public/devinfo/msg06894.html

Regs
Ray
...

Jon_Reynolds

How to drop mail for unknown recipient?
« Reply #5 on: May 14, 2004, 02:05:56 AM »
I know the contrib doesn't work. :( I have tried and it needs a certain package that 6.0.1 doesn't have. I can't even remember what the error was but it wanted a package that had been upgraded from 5.5 to 6.x.

Jon