Simeon Vlahov <[EMAIL PROTECTED]> writes: > Any particular reason why the blacklist filtering is not working?
But it does work. Perhaps you have a configuration problem? > After recompiling vpopmail it seemed to start working but 1. no > matter what address is put in the blacklist it is ignored for user > gets confirmation request anyway (rather than rejection message) > > Here is what I have in my users' config file > for example [EMAIL PROTECTED] > > DATADIR = "/home/vpopmail/domains/monivlahov.net/moni/.tmda/" > FILTER_INCOMING = > "/home/vpopmail/domains/monivlahov.net/moni/.tmda/filters/incoming" > FILTER_OUTGOING = > "/home/vpopmail/domains/monivlahov.net/moni/.tmda/filters/outgoing" > FULLNAME = "moni" > > this is in the incoming filter: > > from-file > /home/vpopmail/domains/monivlahov.net/moni/.tmda/lists/whitelist ok > from-file > /home/vpopmail/domains/monivlahov.net/moni/.tmda/lists/blacklist drop Two points, neither of which explains the problem you're having: 1) The first match in the filter "wins". Therefore, you should generally put your blacklist first, before your whitelist. In your incoming filter as written above, if you have '[EMAIL PROTECTED]' in your whitelist and '[EMAIL PROTECTED]' in your blacklist, the whitelist will match first and the blacklist won't even be searched. 2) Above, you comment that you expect a "rejection message" if an address is matched in the blacklist, but your incoming filter says 'drop'. If you drop the mail, no message is generated at all. The email is just thrown away. > This is in the .qmail-username-default file: > > |preline -f /usr/local/tmda/bin/tmda-filter -c > /home/vpopmail/domains/monivlahov.net/moni/.tmda/config -t > /home/vpopmail/domains/monivlahov.net/moni/.tmda/templates/ > |/home/vpopmail/bin/vdelivermail '' /home/vpopmail/domains/monivlahov.net/moni Where is this file? > I put into the blacklist some email, for example [EMAIL PROTECTED] > then tried to send email from [EMAIL PROTECTED] to [EMAIL PROTECTED] > and instead of receiving rejection message got confirmation one If you put '[EMAIL PROTECTED]' in the whitelist, does that work? In other words, I'm asking if your incoming filter is being found at all. 'confirm' is the default action if TMDA can't match anything in your filter or can't find your filter, which is what seems to be happening. > 2. How can I prevent the fact that when tmda is running every time i send mail > from someone to someone else the mail is send from the expanded email address > thus making every time the address unique and resulting in every time "first" > confirmation requests See FAQs 4.5, 5.4 and 5.5. http://tmda.net/faq.cgi?req=show&file=faq04.005.htp http://tmda.net/faq.cgi?req=show&file=faq05.004.htp http://tmda.net/faq.cgi?req=show&file=faq05.005.htp I always add an X-Primary-Address field to outgoing mail (FAQ 4.5) and I use the default "catch-all" rule given in FAQ 5.5 at the end of my outgoing filter, for mail to new addresses. Tim _____________________________________________ tmda-users mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-users
