Starting the Message Return cron Job

The UUCP message return job should be scheduled by cron. To submit commands to the cron daemon, first become administrator, inetmail:

 
# su inetmail
 

To edit the crontab entries, issue the command:

 
% crontab -e
 

Add an entry similar to the following:

 
30 1 * * * /opt/SUNWmail/imta/lib/return_uucp.sh 
</var/opt/SUNWmail/imta/log/return_uucp.log-\Q/opt/SUNWmail/imta/lib/unique_id\Q 2>&1
 

The example entry shown above would be used to run the UUCP return job at 1:30 am and create the log file /var/opt/SUNWmail/imta/log/return_uucp.log-uniqueid, where uniqueid will be a unique string disambiguifying the file name, allowing for multiple versions of the file. The first value specifies the minutes after the hour, and the second value specifies the hour--you may wish to specify other values according to the needs of your site. You should use the return_uucp shell script as shown above, which itself calls the program /var/opt/SUNWmail/imta/bin/return_uucp, rather than the UUCP cleanup command, since return_uucp will honor the notices channel keyword and understand the MIME format of the messages.




Copyright © 1999 Sun Microsystems, Inc. All Rights Reserved.