[Pkg-exim4-users] Removing 'names', and per-subject domain rewriting (level: newbie)
Marc Haber
mh+pkg-exim4-users at zugschlus.de
Sun Mar 23 13:43:57 UTC 2008
On Sat, Mar 22, 2008 at 12:45:24AM +0200, Sebastian Tennant wrote:
> Firstly, I have a simple rule:
>
> www-data at example.host.org system-mailer@$domain f
>
> that changes this:
>
> From: www-data <www-data at example.host.org>
>
> to this:
>
> From: www-data <system-mailer at example.host.org>
I would recommend to avoid rewriting if possible but instead cause the
application to generate a proper message in the first place.
> How can I remove the 'name' (www-data) or prevent it from being added
> later?
As far as I know, there is no way to change the From:-Headers comment
(which it is from a MTA point of view) in a rewrite rule.
> Secondly, is it possible to rewrite domains according to a string match
> on the subject header?
Again, this looks like the applicatio should be massaged into
generating a proper message.
> If so, any tips, pointers, suggestions as to how this could be
> achieved would be very much appreciated.
Maybe a system filter can help, but that's opening a can of worms.
Greetings
Marc
--
-----------------------------------------------------------------------------
Marc Haber | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature | How to make an American Quilt | Fax: *49 3221 2323190
More information about the Pkg-exim4-users
mailing list