Larry Griffith asked,
| For e-mail generated on our LAN the Return-path: header is
| <user>@<hostname>.cs.wsc.ma.edu but the From: header is just
| <user>@cs.wsc.ma.edu . It is important that the auto-reply go to the
| latter address. How do I do this? Currently I have the following:
| | (formail -r -A"Precedence: junk"
-A"X-Loop:larry(_at_)cs(_dot_)wsc(_dot_)ma(_dot_)edu" ; \
| echo "Please accept this automatically generated reply as proof "; \
| echo "that your message arrived successfully. I will reply as "; \
| echo "soon as possible. "; \
| echo " "; \
| echo " Larry Griffith "; \
| ) | /usr/sbin/sendmail -oi -t
Use formail -rt to prefer From: over From_ (though both -r and -rt will,
in current versions, prefer Reply-To: to both if it is present).
| I experimented with the -k
| and -i options but haven't found anything that works.
You should have tried -t.