* Vincent Danen <[EMAIL PROTECTED]> [2006-11-02 12:36:55 -0700]:

Ok, this is starting to irritate me.  For one, TMDA was crapping out
because I had defined a confirm list, but it didn't exist.  Is it
possible for TMDA to go "oh, you defined the file but it doesn't exist,
here let me create it for you?"?

Also, while I can run tmda-filter on the commandline now without
problem, it still isn't working from exim.  I'm going to paste the
relevant configuration directives here:

The router:

tmdaprocess:
  driver = accept
  no_verify
  no_expn
  domains = dsearch;/etc/exim/domains
  local_parts = lsearch;/etc/exim/domains/$domain
  local_part_suffix = +*
  local_part_suffix_optional
  require_files = /srv/mail/$domain/$local_part/.tmda/crypt_key
  transport = tmda_pipe

And the transport:

tmda_pipe:
  driver = pipe
  command = /usr/local/bin/tmda-filter
  return_fail_output
  return_path_add
  delivery_date_add   
  envelope_to_add
  user = vmail 
  group = vmail
  environment = <; EXTENSION=${substr_1:$local_part_suffix} ;\
                   EXT=${substr_1:$local_part_suffix} ;\
                   HOST=$domain ;\
                   HOME=/srv/mail/$domain/$local_part ;\
                   [EMAIL PROTECTED]

I'm back to using 1.1.8.  I found the environment trick by doing some
googling, and now the environment looks good (using a test script, the
environment looks like this):

LOCAL_PART_PREFIX=
[EMAIL PROTECTED]
[EMAIL PROTECTED]
HOST=linsec.ca
SHELL=/bin/sh
LOCAL_PART_SUFFIX=
EXT=
USER=vdanen
PATH=/usr/bin
EXTENSION=
PWD=/
QUALIFY_DOMAIN=hades.annvix.org
DOMAIN=linsec.ca
MESSAGE_ID=1Gg2l8-0005zi-Vr
SHLVL=1
HOME=/srv/mail/linsec.ca/vdanen
LOGNAME=vdanen
LOCAL_PART=vdanen
_=/usr/bin/env

I think that more or less looks ok.  But I'm having a heck of a time
debugging this because all my logs are showing is this:

2006-11-03 10:38:03 1Gg2zS-0006Gd-LH == [EMAIL PROTECTED] R=tmdaprocess
T=tmda_pipe defer (0): Child process of tmda_pipe transport returned 75
(could mean temporary error) from command: /usr/local/bin/tmda-filter

But I'm not getting any logs anywhere, which is a nuisance.  I have a
site-wide /etc/tmdarc that looks like:

# site-wide TMDA configuration file

USEVIRTUALDOMAINS=false
TAGS_KEYWORD = [ 'keyword', 'key', 'kw' ]
TAGS_DATED = [ 'dated', 'd', 'exp', 'expires' ]
MAIL_TRANSPORT = "smtp"
MAIL_TRANSFER_AGENT = "exim"
SMTPHOST = "localhost"
RECIPIENT_DELIMITER = "+"
DELIVERY = "~/"

LOGFILE_DEBUG = "/tmp/tmda.debug"


Nothing is ever written to /tmp/tmda.debug, so I can't tell what's going
on.  Shouldn't tmda-filter be loading /etc/tmdarc and then using it to
write the debug messages to?  Is there another option I can pass to
tmda-filter to make it really verbose and write to a specific logfile?

I'm slowly getting this working, but it's going too slow.  =(  Any ideas
on how to track that elusive exitcode 75 would be really helpful.
Running a test script, on the commandline works fine:

[EMAIL PROTECTED] vdanen]$ sh tmdatest
exit is 0
[EMAIL PROTECTED] vdanen]$ cat .tmda/incoming.log 
Date: Fri, 03 Nov 2006 11:06:57 -0700
Sndr: [EMAIL PROTECTED]
From: Iurt the rebuild bot <[EMAIL PROTECTED]>
Rept: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
Subj: [RPM] cooker contrib/release vlc-0.8.6-0.test1.4mdv2007.1
Actn: CONFIRM (from * confirm)                                          (4516)

Date: Fri, 03 Nov 2006 11:06:57 -0700
Sndr: [EMAIL PROTECTED]
From: Iurt the rebuild bot <[EMAIL PROTECTED]>
Rept: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
Subj: [RPM] cooker contrib/release vlc-0.8.6-0.test1.4mdv2007.1
Actn: CONFIRM pending 1162577217.27101                                  (4516)

Date: Fri, 03 Nov 2006 11:06:57 -0700
Sndr: [EMAIL PROTECTED]
From: Iurt the rebuild bot <[EMAIL PROTECTED]>
Rept: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
Subj: [RPM] cooker contrib/release vlc-0.8.6-0.test1.4mdv2007.1
Actn: NOREPLY (List-Id: <changelog.mandrivalinux.org>)                  (4516)

[EMAIL PROTECTED] vdanen]$ id
uid=408(vmail) gid=408(vmail) groups=408(vmail)

The contents of tmdatest is:

[EMAIL PROTECTED] vdanen]$ cat tmdatest 
#!/bin/sh
export LOCAL_PART_PREFIX=
export [EMAIL PROTECTED]
export [EMAIL PROTECTED]
export HOST=linsec.ca
export LOCAL_PART_SUFFIX=
export EXT=
export USER=vdanen
export EXTENSION=
export PWD=/
export QUALIFY_DOMAIN=hades.annvix.org
export DOMAIN=linsec.ca
export MESSAGE_ID=1Gg2l8-0005zi-Vr
export HOME=/srv/mail/linsec.ca/vdanen
export LOGNAME=vdanen
export LOCAL_PART=vdanen
cat msg|/usr/local/bin/tmda-filter
echo exit is $?


I'm really struggling to figure out what's going wrong here or at least
trying to figure out why, if there's an exitcode of 75, nothing is being
written that I can see; nothing is being written to my local debugfile
(/tmp/tmda.debug) to help figure out why tmda-filter is bailing on me.

Any ideas?  (Sorry for the long message, but I wanted to include as much
info as possible).

-- 
{FEE30AD4 : 7F6C A60C 06C2 4811 FA1C  A2BC 2EBC 5E32 FEE3 0AD4}
mysql> SELECT * FROM users WHERE clue > 0;
Empty set (0.00sec)

Attachment: pgpx2shdfwfhV.pgp
Description: PGP signature

_____________________________________________
tmda-users mailing list (tmda-users@tmda.net)
http://tmda.net/lists/listinfo/tmda-users

Reply via email to