Problem configuring Spam filter using GMail
Posted by: regis-sp
Posted on: 2007-10-17 14:18:00
Hi All.
First, sorry my bad english (I'm brazillian, and don't speak english well).
I trying to configure a PROCMAIL to filter SPAM using a GMAIL account.
I follow exactly the steps in:
http://wiki.dreamhost.com/index.php/Double-Pass_Spam_Filtering_with_Gmail
I create the two files, '.forward.postfix' and '.procmailrc' in my HOME folder. I use WebFTP from dreamhost panel, and after I try using a 'Putty' (FTP Shell program).
I inform my emails like (In '.procmailrc'):
DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
SHELL=/bin/sh
# forward to gmail account for spam filtering - cf
http://mboffin.com/post.aspx?id=1636
:0
* !X-Forwarded-For: my_account@gmail.com my_account@my_domain.com.br
{
:0fw
| formail -IDelivered-To
:0
! my_account@gmail.com
}
The files was created exactly like example. But simple not
function. I send email to 'my_account@my_domain.com.br' and this email is not FORWARDED to GMAIL. The email goes to my inbox, none redirect.
I am grateful if someone can help me.
Obs.: I'm trying to test with one email but I like to use with all my emails (if it will be good). To do this is only
to add more entries in the same '.procmailrc' file?
e.g.:
DEFAULT=$HOME/Maildir/
MAILDIR=$HOME/Maildir
PMDIR=$HOME/.procmail
LOGFILE=$PMDIR/log
SHELL=/bin/sh
* !X-Forwarded-For: my_account_1@gmail.com my_account_1@my_domain.com.br
{
:0fw
| formail -IDelivered-To
:0
! my_account_1@gmail.com
}
* !X-Forwarded-For: my_account_2@gmail.com my_account_2@my_domain.com.br
{
:0fw
| formail -IDelivered-To
:0
! my_account_2@gmail.com
}
* !X-Forwarded-For: my_account_3@gmail.com my_account_3@my_domain.com.br
{
:0fw
| formail -IDelivered-To
:0
! my_account_3@gmail.com
}