Dave Sill wrote wrote:

> Fred Backman [EMAIL PROTECTED] wrote:
>
> >1. Exactly when does qmail append the default domain name
> >(control/defaultdomain?) to a local recipient?
>
> qmail-inject appends it before injecting the message.

Ok.

> >2. Can I force qmail to bounce if domain name is missing in
> >qmail-inject?
>
> No, but you can set it to something like "no_domain_specified", which
> will cause a bounce.

Will this affect anything else other than emails with missing domain?

> >I need qmail-inject (or any of the subsequent processes) to bounce
> >if the domain is missing, instead of appending defaultdomain. I think
> >it's being done on qmail-inject but does anyone know exactly how?
>
> How? Read the code. I can't imagine why you'd need to know that,
> though. Did you try reading the qmail-inject man page?

Basically, if you do

echo to:fred | /var/qmail/bin/qmail-inject

I want qmail to bounce saying something like "Missing domain." The only
solution I can see apart from what you suggested above is to hack the
code....

Thanks for the answer!
Fred

Reply via email to