>Ok, any constructive tips besides the mud-throwing?

Here's something simple, assuming you don't mind a little patch.  In 
qmail-smtpd.c, replace the addrallowed function with the following:

int addrallowed()
{
   int r;
   int i,seenAt = 0;

   r = rcpthosts(addr.s,str_len(addr.s));
   if (r == -1) die_control();

   if (r != 0) {
     for (i= 0; i< str_len(addr.s); i++) {
       if (addr.s[i] == '%') {
         r = 0;
         break;
       } else if (addr.s[i] == '@') {
         if (seenAt) {
           r = 0;
           break;
         } else seenAt = 1;
       }
     }
   }

   return r;
}

I haven't tested it extensively, but it should work. It just returns a "not 
in my rcpthosts" error message if there's a % or two @s in the "rcpt to" 
address.

regards,
Will
__________________________________________________________________________

  "I was going to be a Neo-Deconstructivist, but Mom wouldn't let me..."

multimedia laboratorium                              [EMAIL PROTECTED]
institut fuer informatik                        (pgp id)        F703D035
der universitaet zuerich                        (office) +41  1 635 4346
winterthurerstr. 190                            (fax)    +41  1 635 6809
ch-8057 zuerich                                 (mobile) +41 76 372 0913
switzerland                                     www.ifi.unizh.ch/~harris
__________________________________________________________________________

Reply via email to