Ok. Got it.

For others may be searching for a similar solution:

in main.cf:

cleanup_service_name = cleanup
header_checks =
(these are the default values anyway)

in master.cf:

submission inet n       -       n       -       -       smtpd
  -o cleanup_service_name=cleansub
cleansub  unix  n       -       n       -       0       cleanup
  -o header_checks=regexp:/usr/local/etc/postfix/submission_header_checks

in submission_header_checks:

/^Received: from/                       IGNORE

Works nice on the testing machine. Will watch/test it for a while and then 
almost probably deploy it on the production machine.

Again, thanks to ALL !
Tom



On Sunday 14 November 2010 18:44:59 /dev/rob0 wrote:
> On Sun, Nov 14, 2010 at 04:08:04PM +0100, t...@diogunix.com wrote:
> > I made it using the header_checks method using
> > 
> > in main.cf:
> > header_checks = regexp:/usr/local/etc/postfix/header_checks
> > 
> > in header_checks:
> > /^Received: from/                       IGNORE
> > 
> > Seems to work like a charm :-)
> 
> So far, maybe.
> 
> > However, the header_checks thing was a ver quick and easy solution.
> 
> It's not as easy as you think it was, because you have now made it
> impossible to debug many mail routing problems, and have broken
> detection of mail loops.
> 
> You should do as Viktor suggested, to restrict this "easy solution"
> to your submission clients ONLY. Your fix will haunt you later.

Reply via email to