for i in `cat /var/qmail/control/{more,}rcpthosts`; do
  host -t MX $i | egrep "|" 2>&1 || echo $i

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.


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.

QmailAdmin: Vpopmail:

Reply via email to