Mailinglist Archive: opensuse (4634 mails)

< Previous Next >
Re: [opensuse] postfix e-mail header clean-up.
  • From: Sandy Drobic <suse-linux-e@xxxxxxxxxxxxxxxxxxxxxxx>
  • Date: Fri, 15 Dec 2006 21:33:46 +0100
  • Message-id: <458306AA.4060906@xxxxxxxxxxxxxxxxxxxxxxx>
Sandy Drobic wrote:
pelibali wrote:

I have postfix running (SUSE 10.0), but would need a cosmetic fix for
it. Several existing clients sending e-mails through that SMTP server
and wouldn't like to keep that part in the headers _where_ they came
from... So I'm in fact looking for a way to change the headers as all
the e-mails running through postfix would originate from the server

Is there any way to easily achieve that?

Kudos for choosing a very good subject line for your problem. I almost assumed that you already knew the answer and just wanted to confirm it. (^-^)

The cleanup daemon of Postfix is performing among other things header_checks. Within header_checks you can search the header line for a pattern and then delete the header line with the action IGNORE.

header_checks = pcre:/etc/postfix/header_checks

/Received: from \(relay2\.suse\.de \[149\.44\.160\.89\]\)/ IGNORE

Need more coffee! This would have worked but is a bit sloppy.

#one line:
/Received: from Relay2\.suse\.de \(relay2\.suse\.de\ [149\.44\.160\.89\]\)/ IGNORE

List replies only please!
Please address PMs to: news-reply2 (@) japantest (.) homelinux (.) com
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups