It seems to work.
Thank you!
Gesendet: Freitag, 22. März 2019 um 16:15 Uhr
Von: "Viktor Dukhovni" <postfix-us...@dukhovni.org>
An: "Postfix users" <postfix-users@postfix.org>
Betreff: Re: Add Header only if sent via sendmail
Von: "Viktor Dukhovni" <postfix-us...@dukhovni.org>
An: "Postfix users" <postfix-users@postfix.org>
Betreff: Re: Add Header only if sent via sendmail
> On Mar 22, 2019, at 3:00 AM, lutz.niede...@gmx.net wrote:
>
> But how can I do this?
As noted below.
> In master.cf I add a service eg called "mycleanup" with
> mycleanup unix ... cleanup -o header_checks=file
Well, not "=file" but "=pcre:file" or similar.
> Essentially a renamed copy of the cleanup service with -o header_checks
> Then I add the parameter -o cleanup_service_name=mycleanup to existing pickup
> I don't need to touch smtpd if I don't mind getting the IP address via client_restrictions, too.
> Is that correct?
Yes.
> Did I miss something?
No.
--
Viktor.
>
> But how can I do this?
As noted below.
> In master.cf I add a service eg called "mycleanup" with
> mycleanup unix ... cleanup -o header_checks=file
Well, not "=file" but "=pcre:file" or similar.
> Essentially a renamed copy of the cleanup service with -o header_checks
> Then I add the parameter -o cleanup_service_name=mycleanup to existing pickup
> I don't need to touch smtpd if I don't mind getting the IP address via client_restrictions, too.
> Is that correct?
Yes.
> Did I miss something?
No.
--
Viktor.