-
-
Notifications
You must be signed in to change notification settings - Fork 3
checkdomain.1
checkdomain - match domain in 822addr output
checkdomain dom ... where dom is a domain name.
checkdomain reads email addresses from standard input in the form output by 822addr(1), 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, it exits 100.
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, it exits 100.