3

I am using Debian Squeeze (I believe, the box doesn't really say) I config exim4 to use Gmail and put root: someuser in /etc/aliases then put my email address ([email protected]) in .forward.

I receive the email, however the From: is [email protected] which is correct, and the To: is root@localhost or anotherUser@localhost with name+box mentioned nowhere. I wanted to write a filter so all emails to [email protected] will be tagged as something, but my name is not mentioned and it goes directly to the spam folder.

How do I modify this so my name shows up in the email address?

1 Answer 1

3

There is a whole chapter in exim docs dedicated to address rewriting. Probably, you should add something like:

headers_rewrite = *@localhost [email protected] t

to one of your transports in exim config, but I may be wrong.

2
  • I like this answer except i am not exactly trying to rewrite the to sender. I would like some way for my .forward email address to be shown in the email so i can write a filter. I guess i could just write one for anything coming from localhost
    – user4069
    Sep 28, 2011 at 11:06
  • you can use procmail to achieve this, or add headers_rewrite to userforward router in exim config
    – gelraen
    Sep 28, 2011 at 14:59

You must log in to answer this question.