Skip to content

checkdomain.1

Manvendra Bhangui edited this page Feb 25, 2024 · 4 revisions

NAME

checkdomain - match domain in 822addr output

SYNOPSIS

checkdomain dom ... where dom is a domain name.

DESCRIPTION

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.

SEE ALSO

822addr(1), checkaddr(1),

Clone this wiki locally