LSB_MAILTO

Syntax

LSB_MAILTO=mail_account

Description

LSF sends electronic mail to users when their jobs complete or have errors, and to the LSF administrator in the case of critical errors in the LSF system. The default is to send mail to the user who submitted the job, on the host on which the daemon is running; this assumes that your electronic mail system forwards messages to a central mailbox.

The LSB_MAILTO parameter changes the mailing address used by LSF. LSB_MAILTO is a format string that is used to build the mailing address.

Common formats are:
  • !U: Mail is sent to the submitting user's account name on the local host. The substring !U, if found, is replaced with the user’s account name.
  • !U@company_name.com: Mail is sent to user@company_name.com on the mail server. The mail server is specified by the LSB_MAILSERVER parameter.
  • !U@!H: Mail is sent to user@submission_hostname. The substring !H is replaced with the name of the submission host. This format is valid on UNIX only. It is not supported on Windows.

All other characters (including any other ! characters) are copied exactly.

If this parameter is modified, the LSF administrator must restart sbatchd on all hosts to retrieve the new value.

Windows only: When a job exception occurs (for example, a job is overrun or underrun), an email is sent to the primary administrator set in the lsf.cluster.cluster_name file to the domain set in LSB_MAILTO. For example, if the primary administrator is lsfadmin and LSB_MAILTO=fred@company.com, an email is sent to lsfadmin@company.com. The email must be a valid Windows email account.

Default

!U

See also

LSB_MAILPROG, LSB_MAILSIZE_LIMIT