Hi folks,
I would check the pending messages with a script for each user.
I've vpopmail with virtualdomains.
My script is something like that:
check-pending-queue.sh
chown vpopmail:vchkpw
chmod 755
#!/bin/sh
MAILTO="[EMAIL PROTECTED]"
CONF="/home/vpopmail/domains/nesys.it/test/.tmda/conf"
/usr/local/tmda-1.0/bin/tmda-pending -c $CONF -bs -O 1h
mail -s "TMDA pending: Date +%d-%m-%Y" $MAILTO
When I run this script, from root or from vpopmail user, I receive an error:
observe# ./check-pending-queue.sh
Traceback (most recent call last):
File "/usr/local/tmda-1.0/bin/tmda-pending", line 271, in ?
from TMDA import Pending
File "./TMDA/Pending.py", line 34, in ?
File "./TMDA/Defaults.py", line 1534, in ?
TMDA.Errors.ConfigError: Can't find key file: /root/.tmda/crypt_key
% ./check-pending-queue.sh
Traceback (most recent call last):
File "/usr/local/tmda-1.0/bin/tmda-pending", line 271, in ?
from TMDA import Pending
File "./TMDA/Pending.py", line 34, in ?
File "./TMDA/Defaults.py", line 1534, in ?
TMDA.Errors.ConfigError: Can't find key file: /home/vpopmail/.tmda/crypt_key
Where is my mistake? The crypt_key is in
/home/vpopmail/domains/nesys.it/test/.tmda, and I've the correct link in my
config file:
CRYPT_KEY_FILE = "/home/vpopmail/domains/nesys.it/test/.tmda/crypt_key"
Thanks for all
Regards
Andrea
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users