Procmail X-Envelope-To header problem
Recently I changed my hostname (as in /etc/hosts) to www.(mydomain).com, from the default server.server.com.When I did, one of my procmail filters broke- I have a procmail entry (below) that runs on all mail and appends a header "X-Envelope-To". That stopped working, which caused a lot of other problems because other procmail filters are looking for that header. I am following this sendmail faq:
http://www.sendmail.org/faq/section3.html#3.29
Here is my procmail entry (its at the top above all the others):
DOMAIN=mydomain.com
ENV_TO=$1
LOGFILE=/tmp/procmaillog
:0f
* ENV_TO ?? .
| formail -i "X-Envelope-To: $ENV_TO@$DOMAIN"