Thank you for your answer.
> UUOC, '/usr/sbin/sendmail -t t...@test.test < mail.txt' :)
I know it doesn't make sense. I just prefer reading from left to right.
> Note, this is controlling the envelope sender, not the From: header.
True, thanks.
> 1. Get rid of untrusted shell users. If you can
Hi
Is there a way to restrict the "From" field for messages sent with the
command line tool "mail"?
For messages sent with SMTP we can simply do this:
http://www.postfix.org/SASL_README.html#server_sasl_authz_envelope
and it works fine, but users can execute:
mail t...@test.test -a 'From: some