Description
In situations where email cannot be sent by the email transmission function (because of a network fault, or because the SMTP server was stopped, for example) and then email transmission stops because the maximum number of retries is reached, this command resends the email that could not be sent.
Synopsis
swcfmg_retry_sendmail [-f <Output file path>] |
Options
This option is used to output the content of the standard output to the specified file rather than the standard output.
If the specified file does not exist, a new file will be created. If the file exists, additional data will be output to the existing file.
Return value
Return value | Meaning |
---|---|
0 | The command has terminated normally. |
1 | The retry folder does not exist. |
2 | The failure folder does not exist. |
4 | There are no files to be moved. |
5 | The configuration file does not exist. |
6 | The configuration file cannot be read. |
7 | A value in the configuration file is invalid. |
8 | A mandatory parameter has not been specified in the configuration file. |
10 | A parameter error has occurred. |
20 | The specified I/O path is incorrect. |
50 | Moving some emails has failed. |
100 | Systemwalker Software Configuration Manager is not running. |
101 | A command that cannot be executed at the same time as this command is already running. |
102 | You do not have the privileges required to execute this command. |
200 | Setup has not been performed. |
255 | A system error has occurred. |
Command location
Admin server
[Windows]
<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\bin |
[Linux]
/opt/FJSVcfmgm/bin |
Privilege required/execution environment
[Windows]
Administrator privileges are required. Execute as an administrator.
This command can be executed on the admin server.
[Linux]
This command can only be executed by the system administrator (superuser).
This command can be executed on the admin server.
Cautions
The email resend command targets the email files stored in the "Failed email storage directory".
Failed email storage directory
[Windows]
<Systemwalker Software Configuration Manager installation directory>\SWCFMGM\mail\failbox |
[Linux]
/opt/FJSVcfmgm/mail/failbox |
If there are any emails that must be excluded from being resent by the email resend command, this can be done by deleting the corresponding email files from the failed email storage directory. Email files are stored using the following format.
File name format
time stamp+ "_" + <Thread ID> + ".txt" |
Time stamp: The time (in seconds relative to a reference time) when the file was created
Thread ID: The ID for the thread that executed the email transmission processing
The content of email file (created using UTF-8 encoding)
1: to address 2: cc address 3: bcc address 4: subject 5: First line of the body text 6: Second line of the body text : :
This command cannot be executed at the same time as other commands. An exclusive control error will occur if a command is executed while another command is executing.
Example
Resending email that could not be sent because of an email transmission error
swcfmg_retry_sendmail |