On Sun, Nov 28, 1999 at 11:42:45AM +0100, Hans Sansdalen wrote:
> At 19:30 27.11.99 +0100, Magnus Bodin wrote:
> >On Sat, Nov 27, 1999 at 06:24:28PM +0100, Hans Sansdalen wrote:
> >> Hi
> >>
> >> I'm used to sendmail, the the response "We do not relay" when
> >> people use "%...@domain" in the to field. I have tried to
> >> make qmail give some response of the same kind, but I haven't
> >> succeded. Tried the wildmat-0.2-patch, but it was not for version
> >> 1.03?
> >
> >qmail does not support the percenthack per default.
> >You have to manually add support for it by creating
> >/var/qmail/control/percenthack. So no worries.
>
> I created the file. Is that all? I could not find it documented
> anywhere? Is an empty file enough?
>
> I want an email with a "to" address with ".*%.*@.*" to be rejected.
You should NOT create the file if you want these to be rejected.
As I said: "qmail does not support the percenthack per default."
So if you want to reject this, then remove the percenthack file.
(But if you want to support it, yes an empty file is enough).
If you want to REJECT the mails, then you must patch qmail. (I don't know
the patch you need).
But if you can live with just bouncing them, then look at my former
suggestion.
/magnus
--
http://x42.com/