Procmail GMAIL

Procmail GMAIL

Posted by: caltheta
Posted on: 2008-01-31 16:26:00

Hello everyone-

I have read absolutely everything about how to setup filtering my email using procmail and it just isnt working. I read the wiki article and every post in this forum and I just cant figure it out. Any help would really be appreciated.

Background:
I have a user setup "user1" that has multiple domains- one being domain1.com (example).. My email address is joe@domain1.com . I would like to forward joe@domain1.com to joegmail@gmail.com .

My files looks like this (they are both in user1's home directory and chmod'd 644):

.procmailrc

In reply to:


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$
:0
* !X-Forwarded-For: joepattersonfilter@gmail.com joe@joepatterson.com
{
:0fw
| formail -IDelivered-To

:0
! joepattersonfilter@gmail.com
}


.forward.postfix

In reply to:


"|/usr/bin/procmail -t"


Re: Procmail GMAIL

Posted by: theraven
Posted on: 2008-01-31 18:55:00

There's an easier way. Just go here: https://panel.dreamhost.com/index.cgi?tree=mail.addresses&

Visit me, please...
www.theraven7.com

Re: Procmail GMAIL

Posted by: caltheta
Posted on: 2008-01-31 22:04:00

Thanks for the reply- but that link wont help me at all. Of course I am familiar with the control panel. What I am tryinbg to do is use procmail to forward to Gmail. Gmail will then filter and send back (forward) to my email address... I am pretty sure my files are right above- so I cant figure out what I am doing. Any help would be great. Thanks.

Re: Procmail GMAIL

Posted by: scrooks
Posted on: 2008-02-01 06:10:00

I think the point of the original poster was that you don't need to use procmail to do the filtering. Use email aliases/forwarding in the panel instead.

1) For your public address, set up a forward to gmail.
2) In gmail, turn on the setting that forwards all mail back to another dreamhost alias.
3) Set that dreamhost alias to dump the filtered mail in whatever real mailbox you want to read it from.

That works great. I use this process on several family accounts with no problem, and no procmail work is needed. (Although I do use procmail for other things.)

Tags: log shellgmailprocmailrcuser1hello everyonechmodhome directoryemail addressreplylog shellgmailprocmailrcuser1hello everyonechmodhome directoryemail addressreply