Well, just out of curiousity, I threw in my old solution and it works as
expected, the .qmail file is being found, and everything is working as
expected, when I use tmda-filter instead, then I get problems... so I
mean, I believe this can at least be said to verify that I have a
problem with TMDA.
Can I be helped in finding the location of this problem?
In a previous mail I mentioned a lot of specifics about my TMDA setup
which should show I have made it very simple and that at the very least
I should be able to see why there is a soft error, apparently, on the
tmda-filter line.
However, as it is now, I must assume there is a soft error, because,
after removing/commenting/replacing the tmda-filter line the mail that
was trying to be delivered during it's use will finally be delivered.
I send mail, nothing happens. I get no errors in return, the mail is not
sent, and the tmda incoming and debug logs do not change.
If for some reason everyone thinks this is not a problem I am having
with tmda, please please please tell me what you think the source of
the problem actually is... because, I can only imagine it is tmda.
And, given the way I have simplified the tmda filters and all, I
am really lost. It has been 15 hours now...
Does anyone have any ideas? Do you think I am asking my question wrong?
Do you not have an idea? I'd like to hear that as well if it's the case.
There's no good way to ask a question about something which totally
confuses me. I can only throw out more and more details which MIGHT
be relevant, because I have no idea.
Here's my old simple script, used before I found TMDA. I just switched
this out with the tmda-filter line in my .qmail file and it works.
#!/usr/local/bin/python
# my spam prog... dun dun dun!
import os, sys, time
def log(msg):
print '[%s] %s' % (time.ctime(),msg)
def proc(input,site):
if os.environ.has_key('RECIPIENT'):
to = os.environ['RECIPIENT']
else:
to = 'kai-kaishaku:[EMAIL PROTECTED]'
# kai-kaishaku:[EMAIL PROTECTED]
# assumes no '-' in email address anywhere
address = to.split('-')[-1]
user,domain = address.split('@')
log(address)
whitelist = [line.strip() for line in file(site+'ToWhitelist.txt').readlines()]
if user in whitelist:
return 0
else:
log('bouncing : '+address)
return 100
if __name__=='__main__':
# usage : kproc.py kaishaku
input = sys.stdin.read()
result = 1 # assume soft error
if len(sys.argv)==2:
site = sys.argv[1]
try:
result = proc(input,site)
except Exception, e:
log('KPROC EXCEPTION *** '+str(e))
result = 1
else:
log('invalid arguments :'+repr(sys.argv))
result = 1
sys.exit(result)
_____________________________________________
tmda-users mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-users