Kyle Johnson wrote:
Bowie Bailey wrote:
Put this line in your .mailfilter:
`env > env.txt`
(including the back-ticks)
This will drop a copy of the environment into the user's home
directory. You can take a look at this file to see which variables
are set and then modify your mailbot line to use those variables.
Sorry - I should have clarified that earlier on.
The env.txt file looks like this:
HOSTNAME=mail
RECIPIENT=
SHELL=/bin/sh
UMASK=077
MAILDIRQUOTA=
SIZE=208
LOCKEXT=.lock
DEFAULT=/usr/local/virtual/hanoveruniform.com/sodoherty/
MAILFILTER=.mailfilter
PATH=/bin:/usr/bin:/usr/local/bin
LOCKTIMEOUT=60
PWD=/usr/local/virtual/hanoveruniform.com/sodoherty
LINES=3
SHLVL=1
HOME=/root
LOCKSLEEP=5
LOCKREFRESH=15
FROM=sodo...@hanoveruniform.com
LOGNAME=sodo...@hanoveruniform.com
SENDMAIL=/usr/sbin/sendmail -oi
_=/usr/bin/env
No RECIPIENT, as we though, and what's with HOME=/root?
Anyway, I'm going to send a mail to the dspam-users list and see if
they know how to pass the variables.
Who is this message from/to? You may be able to use the LOGNAME
variable if it is the same as the recipient.