13 Jan 2011 22:37
Procmail Help
Procmail is considered a scripting language, right? Right?
Right? :)
Anyway, I need some words of wisdom here. At the moment, I'm
using a short procmail script that forwards incoming email to gmail
and only delivers it to the final mailbox if it comes back from
gmail. It's a crude way of filtering for SPAM since Gmail is much
better at it:
:0
* !^X-Forwarded-For: kirash4@... ashley@...
* !^From.*kirash4@...
! kirash4@...
This works really well. Email arrives at our server, procmail
sees that it hasn't passed through Gmail and sends it on to my Gmail
address. Gmail scans it, deems it legitimate and sends it back (via
Gmail's internal forwarding). When it arrives back at our server,
procmail sees the X-Forwarded for and delivers it in my INBOX.
But now I need to augment this a bit and forward those emails to a
second mailbox, but ONLY those that are coming back from Gmail.
Basically, when procmail sees the X-Forwarded for, it needs to forward
that massage to a second mailbox besides dropping it into my INBOX. I
can't just put a forward line at the bottom because then it simply
forwards and doesn't drop in my INBOX.
Suggestions?
(Continue reading)
RSS Feed