Plan 9 from Bell Labs’s /usr/web/sources/plan9/mail/lib/validateaddress
#!/bin/rc mail -x $1 | grep -vs '^unknown user|^Invalid address'