Dnia 26.09.2019 o godz. 13:31:53 Wietse Venema pisze: > > Would not "sendmail -G" suppress local modification? > > -G Gateway (relay) submission, as opposed to initial user submis- > sion. Either do not rewrite addresses at all, or update incom- > plete addresses with the domain information specified with > remote_header_rewrite_domain. > > This is the recommended setting for post-filter re-injection. With > this, Postfix pretends that the mail is from a remote origin.
Of course the filter script is running with "-G" parameter, however, I guess this doesn't disable the use of milters (because why should it?). And according to Postfix documentation, "When new mail arrives via the sendmail(1) command line, the Postfix cleanup(8) server pretends that the mail arrives with ESMTP from "localhost" with IP address "127.0.0.1"." So, OpenDKIM milter sees that the mail comes from "127.0.0.1" and the sender in "From:" line is from my domain, and signs it. -- Regards, Jaroslaw Rafa r...@rafa.eu.org -- "In a million years, when kids go to school, they're gonna know: once there was a Hushpuppy, and she lived with her daddy in the Bathtub."