# man > whom(1)

[_WHOM_(1mh)](https://www.chedong.com/phpMan.php/man/WHOM/1mh/markdown)                                                                                  [_WHOM_(1mh)](https://www.chedong.com/phpMan.php/man/WHOM/1mh/markdown)

## NAME
       whom - show to whom an nmh message would be sent

## SYNOPSIS


       **whom **[**-help**] [**-version**] [**-alias _**aliasfile_] [**-check **| **-nocheck**] [**-draftfolder _**+folder_]
            [**-draftmessage _**msg_] [**-nodraftfolder**] [**-mts _**smtp_ | _sendmail/smtp_ | _sendmail/pipe_]
            [**-server _**servername_] [**-port _**port-name/number_] [**-sasl**] [**-saslmech _**mechanism_] [**-snoop**]
            [**-user _**username_] [**-tls**] [**-initialtls**] [**-notls**] [_file_] [**-draft**]

## DESCRIPTION
       **whom **is used to expand the headers of a message into a set of addresses and optionally verify
       that those addresses are deliverable at that time (if **-check **is given).

       The **-draftfolder _**+folder_ and **-draftmessage _**msg_ switches invoke the **nmh **draft folder facility.
       This is an advanced (and highly useful) feature.  Consult [_mh-draft_(5)](https://www.chedong.com/phpMan.php/man/mh-draft/5/markdown) for more information.

       The mail transport system default is provided in _/etc/nmh/mts.conf_ but can be overridden here
       with the **-mts **switch.

       If  nmh is using the SMTP MTA, the **-server **and the **-port **switches can be used to override the
       default mail server (defined by the _/etc/nmh/mts.conf_ _servers_ entry).  The **-snoop **switch  can
       be  used to view the SMTP transaction.  (Beware that the SMTP transaction may contain authen‐
       tication information either in plaintext or easily decoded base64.)

       If **nmh **has been compiled with SASL support, the **-sasl **switch will enable the use of SASL  au‐
       thentication  with  the  SMTP MTA.  Depending on the SASL mechanism used, this may require an
       additional password prompt from the user (but the _netrc_ file can be used to store this  pass‐
       word,  as described in [_mh-profile_(5)](https://www.chedong.com/phpMan.php/man/mh-profile/5/markdown)).  The **-saslmech **switch can be used to select a particu‐
       lar SASL mechanism, and the **-user **switch can be used to select a authorization userid to pro‐
       vide to SASL other than the default.  The credentials  profile  entry  in  [_mh-profile_(5)](https://www.chedong.com/phpMan.php/man/mh-profile/5/markdown)  de‐
       scribes the ways to supply a username and password.

       If SASL authentication is successful, nmh will attempt to negotiate a security layer for ses‐
       sion  encryption.  Encrypted data is labelled with `(encrypted)' and `(decrypted)' when view‐
       ing the SMTP transaction with the **-snoop **switch; see [_post_(8)](https://www.chedong.com/phpMan.php/man/post/8/markdown)'s description of **-snoop **for  its
       other features.

       If  **nmh  **has  been compiled with TLS support, the **-tls**, **-initialtls**, and **-notls **switches will
       require and disable the negotiation of TLS support when connecting  to  the  SMTP  MTA.   En‐
       crypted  data  is labelled with `(tls-encrypted)' and `(tls-decrypted)' when viewing the SMTP
       transaction with the **-snoop **switch; see [_post_(8)](https://www.chedong.com/phpMan.php/man/post/8/markdown)'s description of **-snoop **and the TLS flags for
       more details.

       The files specified by the profile entry “Aliasfile:” and any additional alias files given by
       the **-alias _**aliasfile_ switch will be read (more than one file, each preceded by **-alias**, can be
       named).  See [_mh-alias_(5)](https://www.chedong.com/phpMan.php/man/mh-alias/5/markdown) for more information.

## FILES
       $HOME/.mh_profile          The user profile

## PROFILE COMPONENTS
       Path:                To determine the user's nmh directory
       Draft-Folder:        To specify the default draftfolder
       Aliasfile:           For a default alias file
       postproc:            Program to post the message

## SEE ALSO
       [_mh-alias_(5)](https://www.chedong.com/phpMan.php/man/mh-alias/5/markdown), [_mh-draft_(5)](https://www.chedong.com/phpMan.php/man/mh-draft/5/markdown), [_mh-profile_(5)](https://www.chedong.com/phpMan.php/man/mh-profile/5/markdown), [_post_(8)](https://www.chedong.com/phpMan.php/man/post/8/markdown)

## DEFAULTS
       `**file**' defaults to <mh-dir>/draft
       `**-nocheck**'
       `**-alias**' defaults to  /etc/nmh/MailAliases

## CONTEXT
       None

## BUGS
       With the **-check **option, **whom **makes no guarantees that the addresses listed as  being  ok  are
       really  deliverable,  rather,  an address being listed as ok means that at the time that **whom**
       was run the address was thought to be deliverable by the transport service.   For  local  ad‐
       dresses,  this  is absolute; for network addresses, it means that the host is known; for uucp
       addresses, it (often) means that the **UUCP **network is available for use.

nmh-1.8                                      2022-12-22                                    [_WHOM_(1mh)](https://www.chedong.com/phpMan.php/man/WHOM/1mh/markdown)
