I have been looking at this and I can't figure it out. I am using
qmail,tmda, and tmda-cgi.
The problem lies in the fact that I have an outgoing program(qfilter-tmda)
on qmail as done by someone in the mailing list.
It seems that the only way I can get the outgoing program to work is by
specifying crypt_key_file or the datadir. Either way seems to work.
However, when I specify either, I can't have TMDA-CGI create new users!
When I comment out either of those options, I am able to auto install just
fine. I need the outgoing program so the mail is tagged properly however I
need tmda-cgi for the users. The tmda error will then give Permission
denied:/root/.tmda/crypt_key . Creating that file doesn't do anything. For
some reason it needs to be specified in the tmdarc.
Thanks
tmda-cgi error:
IOError: [Errno 13] Permission denied: '/var/spool/tmda/crypt_key'
__doc__ = 'I/O operation failed.'
__getitem__ = <bound method IOError.__getitem__ of
<exceptions.IOError instance>>
__init__ = <bound method IOError.__init__ of <exceptions.IOError
instance>>
__module__ = 'exceptions'
__str__ = <bound method IOError.__str__ of <exceptions.IOError
instance>>
args = (13, 'Permission denied')
errno = 13
filename = '/var/spool/tmda/crypt_key'
strerror = 'Permission denied'
qfilter-tmda:
#!/bin/sh
export -n QMAILQUEUE # Muy importante to avoid infinite loop!
if [ $TCPREMOTEINFO ] && [ -r /home/$TCPREMOTEINFO/.tmdarc ]; then
exec /var/qmail/bin/qmail-qfilter /opt/tmda/bin/tmda-inject -q \
-c /home/$TCPREMOTEINFO/.tmdarc
else
exec /var/qmail/bin/qmail-qfilter /opt/tmda/bin/tmda-inject -q -c
/etc/tmdarc
fi
/etc/tmdarc:
CONFIRM_APPEND = "/var/spool/tmda/lists/confirmed"
BARE_APPEND = "/var/spool/tmda/lists/whitelist"
#CRYPT_KEY_FILE = "/var/qmail/alias/.tmda/crypt_key"
ALLOW_MODE_640 = "1"
LOGFILE_DEBUG = "/var/spool/tmda/logs/debug"
LOGFILE_INCOMING = "/var/spool/tmda/logs/incoming"
LOGFILE_OUTGOING = "/var/spool/tmda/logs/outgoing"
RESPONSE_DIR = "/var/spool/tmda/responses/"
PENDING_DIR = "/var/spool/tmda/pending/"
FILTER_INCOMING = "/var/spool/tmda/filters/incoming"
FILTER_OUTGOING = "/var/spool/tmda/filters/outgoing"
DATADIR = "/var/spool/tmda"
PENDING_BLACKLIST_APPEND = "/var/spool/tmda/lists/blacklist"
PENDING_WHITELIST_APPEND = "/var/spool/tmda/lists/whitelist"
#TEMPLATE_DIR = "%(Home)s/.tmda/templates/"
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users