Hitachi

JP1 Version 12 JP1/Automatic Job Management System 3 Linkage Guide


2.4.3 Setting up the mail delivery function

Before you can execute the email reception monitoring job, you must set up the mail delivery function. When the SMTP mail server receives emails, this function forwards them to mail files that JP1/AJS3 uses for receiving emails. The email reception monitoring job references the emails saved in those mail files, instead of the ones on the SMTP mail server. This is because direct access to the SMTP mail server might produce inconsistent results depending on when the emails are received.

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 JP1/Automatic Job Management System 3 Command Reference.

    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.