Summary: | create nospam alias by default | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | [OLD] Server | Assignee: | Net-Mail Packages <net-mail+disabled> |
Status: | RESOLVED WONTFIX | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin Mokrejš
2004-04-22 13:16:44 UTC
as the gentoo qmail maintainer, and the maintainer of a reasonably sized mail setup, i'd object to non-standard automatically created mail aliases like this. i have a nospam@domain already, for users to report spam to. The message 'Your spam has been ignored' is really pointless as very few people read mail logs (some MTA's don't even log those responses) so you might as well just dump it to /dev/null directly from .qmail-nospam if that is what you really want and be done with it. Yes, the main reason I've suggested this was just to create .qmail-nospam by default, so that nospam@domain exists. I don't care that much what the script does. it can just copy to /dev/null, doesn't matter for me. I'd just suggest to make the alias, I don't have it by "default" from Gentoo qmail -r13. i see no point in just creating nospam@domain in qmail still. if a user needs it, then it's a single command to create it. Martin: After using the qmail-nospam for a while, it has only decreased my traffic by less than 40%, because spammers on seeing that one address works, keep sending emails thinking the address is active. Here is a new variant I cooked up, that considers mail sent to that address as bad in future, and rejected it in the initial SMTP transaction. #!/bin/sh # first eat everything from stdin (makes qmail-local happy) cat > /dev/null BDRT=/var/qmail/control/morebadrcptto /usr/bin/setlock -x $BDRT sh -c "echo \$RECIPIENT >>${BDRT}" /var/qmail/bin/qmail-newbrt & echo "Your spam has been ignored - good bye." exit 0 depending on permissions you may need to take out the '/var/qmail/bin/qmail-newbrt' and cronjob it instead. also, you may want a different payload, like set iptables to deny any traffic on port 25 from that machine for the next minute. |