[TriLUG] Rejecting emails for which the sender is the recipient in Postfix

Warren Myers volcimaster at gmail.com
Mon Jul 6 19:22:07 EDT 2009


The only thing I'd caution is that if you use your email like I do at times,
for taking notes and sending yourself reminders so you have them when you
get back to your $other machine, then this is a bad idea :)
However, you could use a simple procmailrc that would nuke messages if the
sender is you && the recipient is you.

It'd look similar to the following:

#############
VERBOSE=off
LOGFILE=/dev/null

# only allow mail from !me5185880339 at vtext.com

:0
* ^From*myuser.mydomain.com
* ^To*myuser.mydoamin.com
/dev/null

#############

WMM

On Mon, Jul 6, 2009 at 11:09 AM, Randy Barlow
<randy at electronsweatshop.com>wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Howdy all!  I've been cracking down on spam on my electronsweatshop.com
> setup, and I'm almost where I want to be.  I recently started using
> spamass-milter to reject mail that gets a spam score over a certain
> limit, which has been great.  Now I'm noticing that a lot of the spam
> that gets rejected has me listed as the sender and the recipient, and so
> the bounce messages still come to me, which is annoying.  I'd like to
> just reject mail that has me listed as the sender and the recipient.
>
> I've come across postfwd in Google - a mail filter that let's you make
> some rules, but I'd really prefer a postfix or spamassassin config that
> doesn't require installing additional software.  What does the TriLUG
> oracle do about these types of spam?
>
> - --
> Randy Barlow
> http://electronsweatshop.com
>
> Because the sinless Savior died
> my sinful soul is counted free,
> for God the just is satisfied
> to look on Him and pardon me!
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.11 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkpSE5QACgkQw3vjPfF7QfX0KgCffsh94EW/pEmNTZx8d8I+oyeX
> GPEAn3u3kIduIzjcEEUgCJM2hJB//Y0S
> =2u2K
> -----END PGP SIGNATURE-----
> --
> TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
> TriLUG FAQ  : http://www.trilug.org/wiki/Frequently_Asked_Questions
>



-- 
Warren Myers
http://warrenmyers.com
http://www.linkedin.com/in/warrenmyers



More information about the TriLUG mailing list