[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M@ilpush are off MY server.




  By the way, the new guidelines that I wrote also promise gentle flogging
and flaming for the dedication of the mailing list messages to the further
advertising of that infamous spam source. 

  If you would like to set up procmail and don't know how to, then here is
a short recipe:

0. Talk with your sysadmin and ask him whether he knows or any problems
with using procmail as a filter on that system. YOU HAVE TO DO THIS IF
YOU'RE SANE IN THE CPU SECTION. Don't proceed until you have a green
light from the sysadmin. If you are your own sysadmin <G>, then read
man procmail and man procmailrc, and read the docs of the local mailer
about forwarding and security holes. procmail should not run as root under
any kind of circumstances in this setup (i.e. you can't have procmail
filtering mail for root). Beware. There is an interesting mention of the
LINEBUF variable in my procmail docs (man procmail). ahem.

1. In the .forward file in your home directory, place this one line:

-- snip --
"| /$PROCMAIL_PATH/procmail -t"
-- snap --

  For sendmail the quotes and the space are important (I have wasted some
time on this one <G>).

  Make sure that you replace $PROCMAIL_PATH with whatever 'which' says
about where procmail is.

2. Write a file called .procmailrc in your home directory, having this in
it:

-- snip --
:0
* ^Reply-To: *<support@necs.com>
/dev/null
-- snap --

3. Telnet to your local mail host, at port 25, and punch this in (left is
the last message from the server, right of the leftmost colon what you
write):

SMTP ready: HELO $MYDOMAIN
ok domain: MAIL FROM: <you@there>
ok sender: RCPT TO: <you@there>
send data: Reply-To: <support@necs.com>

Spam
.
ok: MAIL FROM: <you@there>
ok sender: RCPT TO: <you@there>
send data: Relpy-To: <you@there>

You should receive this genuine email
.
ok: QUIT

  Replace you@there with your real email address, and $MYDOMAIN with the
domain (the one in your email address usually), in the dialog above. It
is important that you write 'Reply-To...' immediately after having the
send data message (no blanks, no blank lines), and that you leave a blank
line after it.

  This tests the setup. You should receive the 'good' email in your
mailbox after a few minutes, and the bad one you should never see. If this
does not happen, then delete or move the .forward file because something
is wrong and you are now losing mail. (Wait 10-15 minutes before being
sure).

hope this helps,

	Peter 

PS: Sorry for the long message.