I forward email from my hosted domain to a gmail account, and I'm experimenting with alternatives to the built-in forwarding capabilities of Opalstack, because it is still resulting in a large number of false positive spam messages.
I'm trying to do what I want in a simple procmail script based on Google's recommendations (https://support.google.com/mail/answer/175365?hl=en):
SENDER=`formail -c -x Return-Path`
SENDMAILFLAGS="-oi -f $SENDER"
GMAIL="emailaddress@gmail.com"
:0c
! $GMAIL
Unfortunately, it's not working for me. Email is delivered to the webmail but not forwarded. Is there any way to troubleshoot procmail scripts that are set in the Opalstack admin for a mailbox?
Once this part is working, I'd like to expand this to not forward likely-spam messages, as per Google's recommendations but trying to keep it simple for now.
Thanks!