Hi,

Ben Finney wrote:
The 'bts' command constructs a message setting the 'From' field to the
value specified in the environment variable 'EMAIL' or 'DEBEMAIL'.

The same address should also be used for the SMTP envelope MAIL FROM
command. Without this, the SMTP envelope is often *wrong*: it uses an
arbitrary address that may not be appropriate for messages sent to the
internet.

It's only as arbitrary and wrong as the result of "echo bar | mail foo" as the same user; one could argue that the local MTA should be ensuring that the envelope in that case is at least globally routable.

Since 'bts' is acting as a MUA in this process, it should be setting
the MAIL FROM address to the explicitly-requested value.

One way this can be done is by invocing '/usr/bin/sendmail' using the
'-f $fromaddress' option.

s/bin/s&/ :-)

At least with exim under its default configuration, that will only work when invoked as root. (See the discussion of -f at http://www.exim.org/exim-html-current/doc/html/spec_html/ch05.html#SECID39 )

Regards,

Adam



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to