Dan Raymond via Postfix-users:
> In my use case I have a PHP script that runs as "www-data" and I
> want the header to specify a different user on the same host that
> can actually receive email replies. I have been running this
> script for the last 11 years using the original sendmail and it
> has worked without issue. Recently I switched over to postfix and
> my script broke.
To avoid contamination, I did not study Sendmail source code when
I implemented Postfx. This specific incompatibility was not brought
to my attention in 1998 and in the following years when people were
switching from Sendmail to Postfix.
The reason no-one notioced may be that it is more common to use -f
in the context of a (web) service, and less common to use -f outside
a server context.
Of course your script can work around this by providing its own
From: header.
> The postfix implementation violates the principle of least surprise
That is a matter of expectation - does -f change the sender address,
or does it implicitly also change the full name. I think this was
under-documented.
> and it breaks compatibility with the original sendmail implementation.
> I doubt this was a conscious decision by the postfix developers.
> More likely this was merely overlooked and should be fixed.
That would be a breaking change, meaning it would need to configurable
with a Postfix-compatible default (ubject to the compatibility_level
setting), and it would require reading Sendmail source code and
running experiments for confirmation.
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]