Hi Michelle, On 16/Dec/10 17:05, Michelle Konzack wrote: > I have a weird problem with your "rcptfilter" because it hit a blacklist > but the message is delivered.
Hm... there was nothing about blacklists in the version of rcptfilter I posted in 2006. BTW, I haven't been able to find it any more in the archives. I've put a copy in http://www.tana.it/sw/rcptfilter/ so that we know what we're talking about. (It is not my current version, but is good as an example because it's simpler. Maybe I'll add an update...) > Can it be, that RCPTFILTER does not work, if the mail is send local? It _only_ works if the mail is local :-) > ----[ '/var/log/mail.log' ]--------------------------------------------- > Dec 16 16:54:51 samba3 courieresmtpd: started,ip=[::ffff:192.168.0.65] > Dec 16 16:54:51 samba3 rcptfilter[24277]: > /home/michelle.konzack/rcptfilter.sh with exited 1, rtc=0 The script shouldn't exit 1, but 64 or 99 for rejecting. They would only different if the script is run in delivery mode --which normally does not happen after rejection. rcptfilter returns 1 when the script return code is > 50 (see code line 222 in the web page above.) > My Filterlog show me: > > ----[ '~/log/rcptfilter/20121216165451.log' ]--------------------------- > RCPT router.private.tamayXdogan.net ::ffff:192.168.0.65 > electron...@tamayxdogan.net > > ######################################################################## > > ACCESSFILE=/etc/courier/smtpaccess-msa > ADDRESS=192.168.0.70 > AUTH_REQUIRED=1 > BLACKLISTS= > BLOCK= There seem to be no blocks here. You could set a BLOCK2 variable as explained in [DOC], and then output its value and exit 64 from the script, or do that in C inside rcptfilter.c. [DOC] http://www.courier-mta.org/couriertcpd.html#id539651 > [...] > PORT=587 > RELAYCLIENT= > SENDERAUTH=LOGIN michelle.konzack The log you attached belongs to a message that you sent yourself. ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users