Tim <[EMAIL PROTECTED]> writes:
> I would say the most reliable way would be to just parse
> /var/qmail/virtualdomains and compare the LHS with $HOST (although
> this is a problem while somebody has updated virtualdomains but
> haven't sent -HUP to qmail-send yet).
In this case, how about comparing $HOST with control/locals? Someone
suggested this in a private message since when qmail rewrites a
virtualdomain address into a local one, it changes $USER, but not
$HOST. If $HOST is in locals, then it's not a virtualdomain address.
Any exceptions to this?
> Do you just need to test for these three packages or does it need to
> handle all types (for example, maildrop has its own virtual users
> mechanism)?
All types, I just wasn't aware of maildrop's virtual users mechanism.
> How reliable does it need to be?
Wholly. If not, I'll just make the user set a configuration variable
to tell the application to expect a virtualdomain.
--
(TMDA - http://tmda.sourceforge.net/)
(A qmail-based SPAM reduction system)