Hitachi

Job Management Partner 1 Version 10 Job Management Partner 1/Automatic Job Management System 3 Linkage Guide


2.4.3 Setting up the mail delivery function

The mail reception process may not monitor mail depending on the type and version of the mail server because exclusive control locks on mail files might not be correctly handled. To solve this problem, the mail delivery function secures exclusive control locks on mail files by obtaining mail by means of aliases in the SMTP mail server, creating unique mail files for mail reception monitoring, and performing exclusive control on them. JP1/AJS3 uses the mail delivery function to send and receive mail. The name of the mail file directory specified for reception is always /var/opt/jp1ajs2/tmp/mailbox. Be sure to specify /var/opt/jp1ajs2/tmp/mailbox as the mail file directory name in setting up the email reception monitoring job.

When setting up the mail delivery function, modify the alias file in the SMTP mail server so that you can receive mail from mail users to be monitored for mail reception.

To set up the mail delivery function:

  1. In the alias file in the SMTP mail server, define the mail users to be monitored and enter the jpomailrecv command for enabling the users to send and receive mail.

    Example: Specify mailuser for the mail user to be monitored and set the retry timeout to 10 minutes.

    mailuser: "|/opt/jp1ajs2/bin/jpomailrecv -u mailuser -t 10"

    For details about the jpomailrecv command, see jpomailrecv (UNIX only) in 2. Commands Used during Setup in the manual Job Management Partner 1/Automatic Job Management System 3 Command Reference 2.

    The alias file is usually named aliases. For further details regarding the alias file, see the SMTP mail system documentation.

  2. Execute the newaliases command or sendmail -bi command for the SMTP mail system.

    The alias file you edited becomes effective.

Cautionary note on typing the alias file

When you type the jpomailrecv command in the alias file, use up to 250 bytes excluding pipes. If the command you want to enter is longer than 250 bytes, create a script file, type the command in it, then code the name of the script file in the alias file.