Re: Envelope sender address authorization and command line tool "mail"

2011-12-26 Thread Bartłomiej Romański
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

Envelope sender address authorization and command line tool "mail"

2011-12-20 Thread Bartłomiej Romański
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