Specify maximum number of e-mail retries (in all classes)

$email_retry_max line count

This command specifies the maximum number of e-mail transmission retries across all outcome classes. Without this command, retries are counted separately for each transmission outcome class, so that for example a single 'no answer' outcome does not affect the number of retries done of 'busy' outcomes.

If you request a manual retry operation, a retry will be done which may take the total number of retries above that specified in this command.  But after any failed attempt, if the specified maximum number of retries has been reached or exceeded, the FS will still be treated as failed.

If an 'immediate retry' (less than one minute delay) is specified for the attempt on which the maximum is attained, a further retry will be done (so the maximum could be exceeded).

Note that if you have no $email_retry_delays commands, so that $retry_delays commands are used instead, then $retry_max will also be used even if you have $email_retry_max defined.

The parameters on this command are used as follows:

line the line number or line group(s) affected, or * for all lines.
count the maximum number of retries to be done

Default: No limit, retries specified for each outcome class by $email_retry_delays or by $retry_delays if no e-mail delays commands are specified.

Example:

$email_retry_max * 7