[Vmail-discuss] Non-existent recipients and message rejection.

Manuel Giorgini Manuel Giorgini <giorgini at interlogica.net>
Wed, 21 Apr 2004 13:11:39 +0200


[2004-04-20 15:00:30] Manuel Giorgini,

MG> Due to massive amount of spam, I would like to set exim so that it will
MG> automatically reject (or even bury) a message in case at least one of the
MG> recipients does not exist. I found "receiver_verify" but I'm not sure this
MG> is what I need.

Ok, I found my own solution. I set this up as my very first director:

# reject
reject_bad_stuff:
  condition = ${if eq {${lookup mysql{select count(mbox_name) as c from popbox where domain_name = '$domain' and local_part = '$local_part'}{$value}fail}}{0} {yes}{no}}
  driver = smartuser
  verify_only
  fail_verify



Provided I set up receiver_[try_]verify = true and
receiver_verify_addresses, so far this seems to work as I wanted.

I was thinking about mentioning such solution in the vmail-sql's FAQ, but
I'm far too modest to propose that myself :-)


Cordialità / Best regards / Gxis la
------------------------------------------------------------------------
Manuel Giorgini <giorgini@interlogica.net>, Programmatore
INTERLOGICA e-business solutions -  http://www.interlogica.net
Via Fusinato, 27 - IT 30172 Mestre VE - Italia - Unione Europea
Tel +39 041 961392 - Fax +39 041 954201
------------------------------------------------------------------------