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 [email protected] -a 'From: [email protected]' or: cat mail.txt | /usr/sbin/sendmail -t [email protected] where mail.txt contains: From: [email protected] 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
