host -t MX $i | egrep "mail1.thiscouldbeme.com|mail2.thiscouldbemetoo.com" 2>&1 || echo $i
done
Done- will echo everything that does not include your _expression_ in its MX record. If it has no matches, grep exits 1 and will trigger the echo. If it matches at least one, then you're set. You can make more complex expressions or do more tests if you'd like.
-M
Tom Collins <[EMAIL PROTECTED]> wrote:
On May 19, 2006, at 12:46 AM, Andy BIERLAIR wrote:
> How can I force vpopmail/qmail to deliver it to the right MX instead
> to a
> local zombie domain?
You can't.
You possibly need to write an auditing program that goes through the
domains in your rcpthosts and morercpthosts and makes a list of domains
that don't list you as an MX.
--
Tom Collins - [EMAIL PROTECTED]
QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/