Results 1 to 2 of 2
Hello,
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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-26-2011 #1Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
Define FROM in sendmail command
Hello,
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
* !^FROM_DAEMON
* !^X-Loop: user AT domain.com
| formail -rD 8192 vacation.cache
:0 ehc
| (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.
Thank you
regards,
sup69
- 08-08-2011 #2Just Joined!
- Join Date
- Jul 2011
- Posts
- 2
ok solved with :
SENDMAIL -oi -t -f sender@domain


Reply With Quote
