SOLVED Re: KeyError: 'dated_cookie'

Mark Jeftovic <[email protected]>
Newsgroups gmane.mail.spam.tmda.user
Message-ID <[email protected]>
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 <[email protected]>
Founder & President, easyDNS Technologies Inc.
ph. +1-(416)-535-8672 ext 225
fx. +1-(866) 273-2892
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.