DreamHost’s postfix configuration doesn’t seem to look for files named .forward+extension and besides other forward files like .forward or .forward.postfix are ignored when an email arrives with that kind of address with an extension.
Ok, I understand what you’re saying. In fact, that was my idea, to use procmail to filter email by its “To” field.
I’m having no problem receiving email messages sent to username+extension@domain and the header is kept as you say. My problem is that I can not launch procmail, because the only mean I know to do this is placing a pipe in the .forward file in my shelluser’s home as described in the wiki ("|/usr/bin/procmail -t"). But the forward file seems to be ignored when there is an extension. Am I doing something wrong? Is there another way to do this?
No, this should work. Besides procmail, you can pipe the message to any other program. So I wrote a Perl script and it works just fine for me (the Wiki has example scripts for other languages).
And if I have it pipe to procmail, it works for me too.
Are you putting the pipe in a file named .forward.postfix ? Also check to make sure you aren’t using the wrong linebreaks if you edit the files on Windows, and make sure there is a linebreak at the end of each line. You might want to make sure the .procmailrc file has PATH, MAILDIR, LOGFILE, SHELL, etc set.
I missed the most important step: I had a “Fully hosted Email” instead of “Forward-only Email” and for that of course it would skip the .forward file in the shelluser’s home, because email account and user are not related. Stupid mistake, I know…