[Exim] SENDER not set?

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Dan Egli
Fecha:  
A: tmda-users
Cc: exim-users
Asunto: [Exim] SENDER not set?
This is a multi-part message in MIME format.
--
[ Picked text/plain from multipart/alternative ]
Ok. I'm trying to setup TMDA 0.65. I've looked on the web site and in
the archives and found no help for this problem. Whenever TMDA gets
called, I get a return of 75 and it writes the following to the
TMDA_DELIVERY_FAILURE file:

Uncaught Python 2.2 Exception (Thu Nov 28 23:33:48 2002):
---------------------------------------------------------
Traceback (most recent call last):
  File "/usr/bin/tmda-filter", line 53, in ?
    execfile(os.path.join(execdir, 'tmda-rfilter'))
  File "/usr/bin/tmda-rfilter", line 175, in ?
    raise Errors.MissingEnvironmentVariable('SENDER')
MissingEnvironmentVariable
Traceback (most recent call last):
  File "/usr/bin/tmda-filter", line 69, in ?
    raise NameError, 'LOGFILE_DEBUG is not defined'
NameError: LOGFILE_DEBUG is not defined



I am calling TMDA from my .procmailrc file. Here's the line that calls
it:
# Run the message through tmda-filter.
:0 w
| /usr/bin/tmda-filter


# Take the exit code from TMDA.
EXITCODE=$?

# TMDA takes care of final delivery
DEFAULT=/dev/null


Here's the section of my exim 4.10 config file that calls procmail:


procmail_transport:
  driver = pipe
  command = "/usr/bin/procmail -p -d ${local_part}"
  delivery_date_add
  envelope_to_add
  no_freeze_exec_fail
  group = mail
  no_log_defer_output
  no_log_fail_output
  no_return_fail_output
  return_path_add
  umask = 0022
  environment = EXTENSION=${substr_1:local_part_suffix}:\
                RECIPIENT=$local_part$local_part_suffix@$domain



I wrote a simple shell script to dump the environment to a file before
calling the specified program. When I read the environmental dump,. I
notice that, along with SENDER, EXTENSION and RECIPIENT are also
undefined. How can I fix this? Is this a TMDA issue in that my config
entries are wrong or is it an Exim issue? I'm not 100% sure so I am
sending this to both lists.

Here is the environment dump:

BASH=/bin/sh
BASH_VERSINFO=([0]="2" [1]="05a" [2]="0" [3]="1" [4]="release"
[5]="i686-pc-linux-gnu")
BASH_VERSION='2.05a.0(1)-release'
DEFAULT=/var/spool/mail/dan
DIRSTACK=()
EUID=500
GROUPS=()
HOME=/home/dan
HOST=shortcircuit.dyndns.org
HOSTNAME=shortcircuit.dyndns.org
HOSTTYPE=i686
IFS='
'
LINEBUF=2048
LOCKEXT=.lock
LOGNAME=dan
MACHTYPE=i686-pc-linux-gnu
MAILDIR=/home/dan
MSGPREFIX=msg.
OPTERR=1
OPTIND=1
ORGMAIL=/var/spool/mail/dan
OSTYPE=linux-gnu
PATH=/home/dan/bin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/local/bin:/usr/X11
R6/bin
POSIXLY_CORRECT=y
PPID=30006
PROCMAIL_VERSION=3.22
PS4='+ '
PWD=/home/dan
SENDMAIL=/usr/sbin/sendmail
SENDMAILFLAGS=-oi
SHELL=/bin/bash
SHELLFLAGS=-c
SHELLMETAS='&|<>~;?*['
SHELLOPTS=braceexpand:hashall:interactive-comments:posix
SHLVL=1
TERM=dumb
UID=500
_=/bin/sh



Thanks!
Dan

P.S. If anyone wants to see how I did the script, it's easy:
#!/bin/sh

set > /tmp/environ
echo $*
bash -c $*
exit $?


--