![]() | :: | Software | :: | qtools |
checkdomain dom ...where addr is an email header name.
checkdomain reads email addresses from standard input, and compares the domain portion with each dom without regard to case. If no addr appears, checkdomain uses the domain part of the environment variable $RECIPIENT as dom. If it finds a match, checkdomain exits 0. Otherwise, checkdomain exits 100.
checkdomain reads addresses in the form output by 822addr. Each address appears as a null-terminated line with an introductory character. A + character introduces a delivery address, and a ( character introduces a comment. The introductory characters are not part of the address. checkdomain compares its arguments only with delivery addresses, and ignores comments.
If checkdomain finds an address matching dom, it exits 0. Otherwise, checkdomain exits 100.