Hi,

When trying to send an email using TMDA-ofmipd I just get the following
error:

Error: failure delivering message to command "['/usr/bin/tmda-inject',
'[EMAIL PROTECTED]']" (command "['/usr/bin/tmda-inject',
'[EMAIL PROTECTED]']" exited 1  (Traceback (most recent call last):
  File "/usr/bin/tmda-inject", line 123, in ?
    from TMDA import Cookie
  File "/usr/lib/python2.2/site-packages/TMDA/Cookie.py", line 30, in ?
    import Defaults
  File "/usr/lib/python2.2/site-packages/TMDA/Defaults.py", line 68, in ?
    execfile(GLOBAL_TMDARC)
  File "/etc/tmdarc", line 16, in ?
    PENDING_DIR = "/home/vmail/%s/%s/Maildir/.tmda/pending/" %
(os.environ["HOSTn"],os.environ["USERn"])
  File "/usr/lib/python2.2/UserDict.py", line 14, in __getitem__
    def __getitem__(self, key): return self.data[key]
KeyError: HOSTn))
Data: 'QUIT'

I�ve tried to export the USERn and HOSTn vars using the vpopmail-vdir script
(a modified version) which is looking like this:

#!/bin/bash
echo "/home/vmail/$2/$1/Maildir"

USERn=$1
HOSTn=$2

export USERn
export HOSTn

The command I use to start tmda-ofmipd is:

su - vmail -c "tmda-ofmipd -R imap -f -d -S /usr/bin/vpopmail-vdir.sh"

How can I successfully get those two vars (USERn and HOSTn) exported so
tmda-inject can read them??

Med venlig hilsen / Best Regards,
Morten Trab
http://www.blackchart.dk
�



_____________________________________________
tmda-users mailing list ([email protected])
http://tmda.net/lists/listinfo/tmda-users

Reply via email to