Define FROM in sendmail command
I have a postfix server with system user.
I added vacation message using procmail and it works, but 1 problem, i m hosting multiple domain name listed in mydestination in main.cf and the vacation always uses the same DOMAIN in MAIL FROM (domain.com listed in the /etc/mailname) and not the recipient. MAIL FROM is always like that : user1 AT domain.com or user2 AT domain.com although the recipient on my server can be user1 AT domain.fr or user2 AT domain.eu
So i would like to specify a "mail from" in this vacation script :
:0 Whc: vacation.lock
* ^To:.*user1 AT domain.com
* !^X-Loop: user AT domain.com
| formail -rD 8192 vacation.cache
| (formail -rA"Precedence: junk" \
-A"X-Loop: user AT domain.com" ; \
cat $HOME/.vacation.msg; \
echo ""; \
echo "-- "; cat $HOME/.signature \
) | $SENDMAIL -oi -t
Could you tell me how define a "mail from" in this script, i did some test but it does not work.