Koozali.org: home of the SME Server

Delete on bogus email

Offline Neririn

  • ****
  • 100
  • +0/-0
Delete on bogus email
« on: February 03, 2004, 07:10:23 PM »
Particularly with MyDoom, my inbox is being flooded with all kinds of variations on randomname@mydomain.com.  Then SME tries to bounce it, and my admin account gets thousands of "the bounce bounced" emails.  Is there no way to just drop/delete all emails addressed to non-existant email addresses?

There must be a way.  Maybe an expanded template or something?  

Thanks in advance for any help.
......

ChrisB

Delete on bogus email
« Reply #1 on: February 03, 2004, 09:15:40 PM »
I have a similar problem as you, but maybe not as many as you seem to be getting. For me, I could solve this if I could get procmail to work with the admin account. Is there an easy way to setup procmail for the admin?

Offline raem

  • *
  • 3,972
  • +4/-0
Delete on bogus email
« Reply #2 on: February 04, 2004, 08:54:17 AM »
To ChrisB
Just forward the admin mail to a specified user account and then use procmail.
The setting is in server manager I think under Email.
Regs
Ray
...

Offline raem

  • *
  • 3,972
  • +4/-0
Delete on bogus email
« Reply #3 on: February 04, 2004, 09:02:37 AM »
To Nererin
A search on double bounce would have found the answer.

Try this

By default double bounced messages are sent to postmaster.
This little modification should take care of that.

/bin/echo "oblivion" > /var/qmail/control/doublebounceto

/bin/echo "#" > /var/qmail/alias/.qmail-oblivion

service qmail restart

or do a reboot

If you want to permanently keep the changes you need to do this:

mkdir -p /etc/e-smith/templates-custom/var/qmail/alias/
touch /etc/e-smith/templates-custom/var/qmail/alias/.qmail-oblivion
/bin/echo "#" > /etc/e-smith/templates-custom/var/qmail/alias/.qmail-oblivion

mkdir -p /etc/e-smith/templates-custom/var/qmail/control/
touch /etc/e-smith/templates-custom/var/qmail/control/doublebounceto
/bin/echo "oblivion" > /etc/e-smith/templates-custom/var/qmail/control/doublebounceto

/sbin/e-smith/expand-template /var/qmail/alias/.qmail-oblivion
/sbin/e-smith/expand-template /var/qmail/control/doublebounceto

service qmail restart

(As I type this the commands are wrapping onto the next line, make sure the whole command is on one line)

Regs
Ray
...

Offline Neririn

  • ****
  • 100
  • +0/-0
Delete on bogus email
« Reply #4 on: February 04, 2004, 05:29:07 PM »
Thanks to all.  I guess I need to think through my searches a little better before I post.  But again, thanks to all for the help.
......