I don't think you need to control for this at all (if I'm understanding 
your mail correctly).  The "percenthack", i.e. mails of the form 
[EMAIL PROTECTED], is disabled in qmail by default.  It will appear 
that qmail-smtpd accepts a percenthack mail, but qmail-send will reject it 
unless the domain is specifically listed in control/percenthack.  See the 
man page for qmail-send.

regards,
Will

At 13:44 11.05.2000, [EMAIL PROTECTED] wrote:
 >   I have  two lines in the "alias/.qmail-default", as follows:
 >
 >| if echo $LOCAL | grep -q "%" ; then echo "Not allowed"; exit 100; fi
 >| echo -n `date` >> duplicado; echo "; SENDER=$SENDER" >> duplicado
 >
 >     Well, when I receive an e-mail in the form:
 >
 >mail from: <user@[125.137.20.186]>
 >250 ok
 >rcpt to: <user2%domain@[125.137.20.186]>
 >250 ok
 >
 >     The line in the log file 'duplicado'  is:
 >
 >      Thu May 11 12:00:13 CEST 2000; SENDER=
 >
 >      However, in normal operation it appears:
 >
 >      Thu May 11 12:00:13 CEST 2000; SENDER=sender@domain
 >
 >      As the SENDER var isn't set when the "mail from:" is set to "
 ><user@[125.137.20.186]>" I can't refuse the email is this form.
 >
 >
 >      I have filled the "control/badmailfrom" file with information to
 >reject this email, but it doesn't work.
 >
 >      Please, help.
 >
 >      Thank in advance.
 >
 >
__________________________________________________________________________

   "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