@Todvart: apt-get --reinstall install procmail worked fine.
Quote:
|
Originally Posted by till
It seems that the sender is not set with the complete domain name.
Whats in the file .autoresponder.rc in the home directory of an autoresponder that does not function properly?
|
The contents of autoresponder.rc.master:
SHELL=/bin/sh # for other shells, this might need adjustment
EMAIL=`formail -zxTo:`
:0 Whc: vacation.lock
# Perform a quick check to see if the mail was addressed to us
#* $^To:.*\<$\LOGNAME\>
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Mail loops are evil
* !^X-Loop: ${EMAIL}
| formail -rD 8192 {PFAD}/.vacation.cache
:0 ehc # if the name was not in the cache
| (formail -rI"From: {EMAIL_ADDRESS}" -I"Precedence: junk" \
-A"X-Loop: ${EMAIL}" ; \
cat {PFAD}/.vacation.msg \
) | $SENDMAIL -oi -t
My contents of the users .autoresponder.rc file which is within the users home dir:
SHELL=/bin/sh # for other shells, this might need adjustment
EMAIL=`formail -zxTo:`
:0 Whc: vacation.lock
# Perform a quick check to see if the mail was addressed to us
#* $^To:.*\<$\LOGNAME\>
# Don't reply to daemons and mailinglists
* !^FROM_DAEMON
# Mail loops are evil
* !^X-Loop: ${EMAIL}
| formail -rD 8192 /var/www/web5/user/test/.vacation.cache
:0 ehc # if the name was not in the cache
| (formail -rI"From:
test@mydomain.tld" -I"Precedence: junk" \
-A"X-Loop: ${EMAIL}" ; \
cat /var/www/web5/user/test/.vacation.msg \
) | $SENDMAIL -oi -t
An .vacation.msg exits in the users home dir as well:
The contents of this file is the autorespondermessage as it should contain, so that's ok too.
An .vacation.cache exists in the users home dir too:
The contents of this file is:
sender@domain.tld^@^@
So the mentioned files above seems to be ok, it is a miracle to me that the autoresponder is not sent to emailaddresses outsite my server!
What can i do/check else to make it work?
I have to mention that the files .vacation.msg and .vacation.cache are hidden files. Is this ok?
Recent comments
20 hours 41 min ago
20 hours 46 min ago
1 day 1 hour ago
1 day 8 hours ago
1 day 9 hours ago
1 day 10 hours ago
1 day 14 hours ago
1 day 21 hours ago
2 days 1 hour ago
2 days 2 hours ago