[prev in list] [next in list] [prev in thread] [next in thread]
List: tmda-users
Subject: SOLVED Re: KeyError: 'dated_cookie'
From: Mark Jeftovic <markjr () easydns ! com>
Date: 2007-06-30 3:05:07
Message-ID: 4685C863.9020400 () easydns ! com
[Download RAW message or body]
We fluked into a fix.
Basically we deleted the templates in TEMPLATE_DIR, left TEMPLATE_DIR
set to where the templates *weren't*, and then I guess some global
setting kicked in, it started grabbing the template from /etc/tmda and
worked fine.
Not sure what that's about.
-mark
Mark Jeftovic wrote:
> We've got a problem as we had to migrate a tmda based system to a new
> server.
>
> As far as we can tell, we are using the same setup on the new box as the
> old, which is the tmda debian 1.0.3 package with python 2.4.4
>
> We are using custom templates and as far as we can tell have our config
> set up the same, the prblem is, no matter what we do we keep ending up
> with the inbound mail in the pending directory but no confirmation
> request is ever sent.
>
> The debug logs show:
>
> File "/usr/bin/tmda-rfilter", line 887, in main
> do_default_action(default_action, 'action_incoming', bouncetext)
> File "/usr/bin/tmda-rfilter", line 471, in do_default_action
> bouncegen('request')
> File "/usr/bin/tmda-rfilter", line 762, in bouncegen
> bounce_message = Util.maketext(templatefile, vars())
> File "/usr/lib/python2.4/site-packages/TMDA/Util.py", line 990, in
> maketext
> text = template % localdict
> KeyError: 'dated_cookie'
>
> Here's our config:
>
> MAIL_TRANSFER_AGENT = "postfix"
> DELIVERY = "|/home/myprivacy/outbound"
> TEMPLATE_DIR = "/usr/myprivacy/tmda-templates"
> ACTION_INCOMING = "confirm"
> ACTION_OUTGOING = "dated=1d"
> ACTION_FAIL_DATED = "bounce"
> DATED_TEMPLATE_VARS = 1
> CONFIRM_ACCEPT_NOTIFY = 1
> DATED_TIMEOUT = "24h"
> LOGFILE_DEBUG = os.path.expanduser("/home/myprivacy/.tmda/logs/debug")
> LOGFILE_INCOMING = os.path.expanduser("~/.tmda/logs/incoming")
> LOGFILE_OUTGOING = os.path.expanduser("~/.tmda/logs/outgoing")
>
> Any help appreciated
>
> -mark
>
--
Mark Jeftovic <markjr@easydns.com>
Founder & President, easyDNS Technologies Inc.
ph. +1-(416)-535-8672 ext 225
fx. +1-(866) 273-2892
_____________________________________________
tmda-users mailing list (tmda-users@tmda.net)
http://tmda.net/lists/listinfo/tmda-users
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic