Kris Kelley <[EMAIL PROTECTED]> wrote:
> Is there a way to disable qmail-send's use of the envnoathost control file,
> so that any message bound for an address without an @ sign is simply
> refused?
Write a wrapper script around qmail-queue, perhaps, which checks that
a domain was specified for addresses. Exit with 100 or 111 if your
preconditions aren't met properly. Then rename qmail-inject to
real-qmail-inject and have your wrapper call it after its satisfied with
its input.
To save some work, you could use Bruce Guenter's QMAILQUEUE patch, and
insert your filter inbetween qmail-inject and qmail-queue instead. The
filter would be easier, as well, because you wouldn't have to parse the
message for recipient addresses. There's pointers to Bruce's work at
www.qmail.org, or have a look at http://em.ca/~bruceg/ .
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
-----------------------------------------------------------------------