Toggle navigation
Koozali.org: home of the SME Server
Community
Forums
Bugs
Lists
Forum Help
Download
SME Server ISOs
Contribs
Documentation
Manual
Wiki
FAQ
HowTo
Donate
Search
Login
Register
Login
Register
×
Close
Login
Remember me
Koozali.org: home of the SME Server
Obsolete Releases
SME Server 7.x
Topic:
forward email for a particular user to /dev/null
« previous
next »
+
Print
Pages: [
1
]
Go Down
forward email for a particular user to /dev/null
6 Replies
1157 Views
Strangelite
7
+0/-0
forward email for a particular user to /dev/null
«
on:
May 19, 2009, 06:26:08 PM »
how can I drop all the email for a particular user to /dev/null - as I have a couple that are just spam bait
Logged
janet
4,812
+0/-0
Re: forward email for a particular user to /dev/null
«
Reply #1 on:
May 20, 2009, 12:05:39 AM »
Strangelite
mkdir -p /etc/e-smith/templates-custom/var/qmail/control/virtualdomains
pico -w /etc/e-smith/templates-custom/var/qmail/control/virtualdomains/90aliases
In this 90aliases file enter
user@domain.com:undeliverable
Save the file & then do:
signal-event email-update
The idea was derived from this old Howto
http://distro.ibiblio.org/pub/linux/distributions/smeserver/contribs/rmitchell/smeserver/howto/virtual%20domain%20email%20aliases%20HOWTO%20for%20sme%20server.htm
It works on sme7.4 despite the howto saying not applicable to sme7.x
«
Last Edit: May 20, 2009, 12:08:09 AM by mary
»
Logged
Please search before asking, an answer may already exist.
The Search & other links to useful information are at top of Forum.
wellsi
475
+0/-0
Re: forward email for a particular user to /dev/null
«
Reply #2 on:
May 20, 2009, 12:16:50 AM »
Another method is to blacklist them in spamassassin as follows:
db spamassassin setprop wbl.global_to reasonableness@yourdomain.com Black
To activate the settings
expand-template /etc/mail/spamassassin/local.cf
svc -t /service/spamd
Logged
............
Strangelite
7
+0/-0
Re: forward email for a particular user to /dev/null
«
Reply #3 on:
May 20, 2009, 08:17:04 AM »
Excellent - I'll have a play and see which one I'll use
Logged
MSmith
675
+0/-0
Re: forward email for a particular user to /dev/null
«
Reply #4 on:
May 20, 2009, 03:51:59 PM »
Why not just delete the user?
Logged
...
Strangelite
7
+0/-0
Re: forward email for a particular user to /dev/null
«
Reply #5 on:
May 21, 2009, 01:30:26 PM »
I'm using the spamassassin method,
and as I deliver all email into a bad email account so I can check for miss-assigned names [we have a few], I just want to cut the spam down - I don't want to bounce messages if I can avoid it
Logged
cactus
4,880
+3/-0
Re: forward email for a particular user to /dev/null
«
Reply #6 on:
May 22, 2009, 09:33:19 AM »
Quote from: Strangelite on May 21, 2009, 01:30:26 PM
I don't want to bounce messages if I can avoid it
You should IMHO as this is normal expected behavior, how would the other party otherwise know they are using a invalid e-mailaddress?
Logged
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)
+
Print
Pages: [
1
]
Go Up
« previous
next »
Koozali.org: home of the SME Server
Obsolete Releases
SME Server 7.x
Topic:
forward email for a particular user to /dev/null