Configure e-mail delivery

Article Details
URL: http://www.archiware.com/support/index.php?_m=knowledgebase&_a=viewarticle&kbarticleid=2
Article ID: 2
Created On: 16 Apr 2007 09:27 AM

Answer Mail Recipient configuration

For each executed job PresSTORE sends an e-mail with the job's result to the designated owner of the job. When a job is executed from the web browser, the owner of the job is the user logged in the GUI. When a job is executed automatically by the scheduler, the owner of the job is the root user. For each user, a different recipient or a list of recepients may be defined.

To configure e-mail recepient(s) for the given user, move to the user preferences configuration area:

Administration / General Setup / user preferences

double-click on the user who will be receiving the e-mails and change to the Reporting page. In the E-Mail field enter a list of valid email addresses separated by a comma.

PresSTORE forwards the e-mail to the SMTP server running on the same machine. That server takes care to deliver the message to all recepients. An e-mail server is usually available on Solaris or Linux hosts. There is usually no e-mail server available on Windows or Max OS X workstations. In such cases you need to tell PresSTORE which external e-mail server to use.

Mail-Server configuration with PresSTORE 2.3

To configure another mail server, add the following three lines to the master configuration file /usr/local/aw/conf/lexxsrv.8000 (assuming the default port 8000, else the filename contains the configured port number):

ns_section ns/server/$server/module/utility/mail
ns_param mailServer IP-address-or-domain-name
ns_param mailSender user@domain


where IP-address-or-domain-name refers to the host running the e-mail server software and user@domain is the default sender of the message. The latter is important as some e-mail servers will double-check the sender to be a known user, and will discard the message if not.

Mail-Server configuration with PresSTORE 3.x

In PresSTORE 3.x, the mail server configuration is done through the user interface.
Navigate to Administration > General Setup > Clients and double click the client Localhost.
In the section E-Mail-Server, please configure the host running the e-mail  sender address of the message.

Using Mail Scripts

In case your mail server requires authentication, e.g. because that is an internet base mail server, you cannot connect to that server directly. Instead, PresSTORE can call an external script to send the mail, e.g. to use the mail or heliosmail utility to send the mail via an external server, or to use whichever tool you like to forward the message.
The external script can be configured in /usr/local/aw/conf/lexxsrv.8000 :

ns_section ns/server/$server/module/utility/mail
ns_param mailScript absolute_path_to_script_file

where absolute_path_to_script_file  refers to the script you want to call.
The script is called with the following parameters:
Using the sendmail.applescript on Macs

Starting with PresSTORE 3.0.4,  PresSTORE contains the script etc/sendmail.applescript that can be used on Workstations.
The scripts selects the Mail.app application and uses the first configured E-mail account of the logged in user.
Please note that a user must be logged in in order to use this feature.

Update 05/2009
A customer reported that there is a very useful small program that can handle TLS autoentification to send email to internet mail servers.
The sendEMail utility is available for many operating systems at
http://caspian.dotconf.net/menu/Software/SendEmail/