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-other-u...@some-other-domain.com' or: cat mail.txt | /usr/sbin/sendmail -t t...@test.test where mail.txt contains: From: some-other-u...@some-other-domain.com Subject: ble, ble, ble... ble, ble, ble... ...and the message will be delivered with fake 'From' address. I've already set "mynetworks" to the empty list, but it works only for messages sent with SMTP not for local mail send with "mail" or "sendmail". Any ideas? Thanks, Bartek