* Dan Raymond via Postfix-users:

> For example:
>
> # whoami
> john
> # cat /etc/passwd | grep "john"
> john:x:1000:1000:John Doe:/home/john:/bin/bash
> # echo -e "Subject: test\n\nthis is a test\n" | sendmail [email protected]
> # su root
> # echo -e "Subject: test\n\nthis is a test\n" | sendmail -f john
> [email protected]
>
> The resulting emails will have the following "From" headers:
>
> From: John Doe <[email protected]>
> From: root <[email protected]>

This works as expected. You invoked the 'sendmail' command as root.
Running the command as john instead should give you what you want.

-Ralph
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to