Michelle Konzack writes:
Hello Sam,Am 2009-04-30 22:13:51, schrieb Sam Varshavchik:There is no direct blackballing of From: address, verbatim. However, you may wish consider enabling SPF checking. If FuckYou@'s domain has an SPF record, it'll bounce the forged mail.SPF checking will not necessarily block all of these, but it should be able to block a good chunk of it. However, SPF configuration is rather tricky. If you want to look into it, you'll need to be very careful and ask a lot of questions.SPF checks could reject to many FP, because the DOMAIN parts of ERewards@ Fidelity@ Food@ BlueBerry*@ Accounts*@ FuckYou@are mostly random (current count over 3000).
It's possible to select what SPF status Courier will bounce messages for. Individual domains can specify in their SPF records how to rate their mail. By selecting whether or not to bounce "unknown" or "fail" SPF status mail, it's possible to control one's tolerance for false-positives.
OK, I was trying already something with "localmailfilter" but I do not realy understand how it works, even if I have done, what is written in the manpage. I have a bunch of very well working and long-time tested procmail recipes, shell and perl scripts, and I can build a list with "From: localpart@" and then reject on this on SMPT level which would be the best solution. Also I can generate individual "reject messages". Are there INFOs/HOWTOs on using "localmailfilter" with another tools as maildrop?
I don't have any HOWTOs. The raw documentation is in the localmailfilter man page. The SYNOPSIS section tells you to enable filtering (the echo command), edit .mailfilters/rcptfilter and .mailfilters/smtpfilter file, and how to set the correct ownership and permissions.
The man page then proceeds to list the environment variables. So, in your rcptfilter and smtpfilter file, you'd import SENDER, import TCPREMOTEIP, and import TCPREMOTEHOST to get them, then do whatever you want with them. The man page also tells you what different exit codes do.
So, in maildrop-speak, it would go something like this:
import SENDER
if ($SENDER =~ /fuckyou@/)
{
echo "Bad spammer"
EXITCODE=100
exit
}
Haven't actually tested the above myself, but fairly sure that it'll work.
In smtpfilter, you also have access to the contents of the entire message:
if (/^From:.*fuckyou@/)
{
echo "Bad spammer"
EXITCODE=100
exit
}
The nice thing about localmailfilter is that you can create a dedicated
account for testing purposes, enable localmailfilter+maildropfilter, and
play in the dedicated account as a test sandbox, with no impact on regular
mail.
pgp6mHupWwZvC.pgp
Description: PGP signature
------------------------------------------------------------------------------ Register Now & Save for Velocity, the Web Performance & Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance & Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
