jpomailrecv (UNIX only)
- Organization of this page
Format
jpomailrecv -u monitor-user-name [-t retry-timeout-period]
Description
Sets the email distribution feature that acquires mail using the alias of the SMTP mail server, creates an email file specific to mail reception monitoring, and then controls exclusive lock.
Execution privileges
None
Arguments
-u monitor-user-name
Specify the user name specified for the UserName environment setting parameter.
You can specify 1 to 256 characters (bytes).
-t retry-timeout-period
Specify the retry timeout period for editing when the email file that you have attempted to edit is locked.
You can specify 1 to 1,440 (minutes). If you omit this option, the system assumes an unlimited number of retries.
Notes
-
To execute the jpomailrecv command, you must first start the JP1/AJS3 service.
-
For the UserName environment setting parameter, specify the same user name as the monitoring user name of the command. In addition, before executing the command, use the jajs_config command to apply the contents of the UserName environment setting parameter to the system. For details about the UserName environment setting parameter and the setting procedure with the jajs_config command, see 2.4.2 Setting up the environment for an email reception monitoring job in the JP1/Automatic Job Management System 3 Linkage Guide.
-
If an error occurs during command execution or if edit retry is timed out, the received email is returned to the sender (except for the case where the locked file cannot be deleted).
-
Code this command in the alias file and start it from the SMTP mail server. The system does not guarantee the operation of this command if it is started manually.
-
When coding this command in the alias file, enclose it in double quotation marks (").
Example 1
When mailuser is specified for the UserName environment setting parameter, the retry timeout period is set to 10 minutes.
mailuser:"|/opt/jp1ajs2/bin/jpomailrecv -u mailuser -t 10"
Example 2
When user1 is specified for the UserName environment setting parameter, the retry period never times out.
user1:user1,"|/opt/jp1ajs2/bin/jpomailrecv -u user1"