Sebastian Tennant
2008-Mar-21 22:45 UTC
[Pkg-exim4-users] Removing ''names'', and per-subject domain rewriting (level: newbie)
Hi list, 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> How can I remove the ''name'' (www-data) or prevent it from being added later? Secondly, is it possible to rewrite domains according to a string match on the subject header? If so, any tips, pointers, suggestions as to how this could be achieved would be very much appreciated. Sebastian
Marc Haber
2008-Mar-23 13:43 UTC
[Pkg-exim4-users] Removing ''names'', and per-subject domain rewriting (level: newbie)
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
Sebastian Tennant
2008-Mar-23 16:06 UTC
[Pkg-exim4-users] Removing ''names'', and per-subject domain rewriting (level: newbie)
Thanks for your reply Marc. Quoth Marc Haber <mh+pkg-exim4-users at zugschlus.de>:> I would recommend to avoid rewriting if possible but instead cause the > application to generate a proper message in the first place.I have done precisely that, although I don''t know if I''ve found the best solution. Both mailx and nail are desperately lacking in terms of user-configurable mail headers and I''m now using _mutt_ as a command line batch mailer! I''m very happy with it. Alias expansion doesn''t work in batch mode but that''s not the end of the world. The configuration file allows me to write headers and qualify unqualified addressed in pretty much any way I choose. What other batch mailers are there that you know of that can do this kind of thing? Thanks once again, Sebastian
Marc Haber
2008-May-03 13:06 UTC
[Pkg-exim4-users] Removing ''names'', and per-subject domain rewriting (level: newbie)
On Sun, Mar 23, 2008 at 06:06:13PM +0200, Sebastian Tennant wrote:> What other batch mailers are there that you know of that can do this > kind of thing?heirloom-mailx can do this with the following configuration file: $ cat .mailrc account foo { set from="Marc Haber <mh+pkg-exim4-users at zugschlus.de>" set smtp="localhost" } This will deliver outgoing mail via smtp to localhost with the appropriate From: header and envelope sender. 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
Sebastian Tennant
2008-May-04 08:41 UTC
[Pkg-exim4-users] Removing ''names'', and per-subject domain rewriting (level: newbie)
Quoth Marc Haber <mh+pkg-exim4-users at zugschlus.de>:> On Sun, Mar 23, 2008 at 06:06:13PM +0200, Sebastian Tennant wrote: >> What other batch mailers are there that you know of that can do this >> kind of thing? > > heirloom-mailx can do this with the following configuration file: > > $ cat .mailrc > account foo { > set from="Marc Haber <mh+pkg-exim4-users at zugschlus.de>" > set smtp="localhost" > }Hmm... interesting. Thanks. -- Emacs'' AlsaPlayer - Music Without Jolts http://sebyte.org/eap.html