SUNScholar/Prepare Ubuntu/S07/Testing

From Libopedia
Jump to navigation Jump to search
Back to Step 07

The following are not required and are optional.

Setup the email aliases

Now we need to forward any email sent to local accounts on the server to email accounts of persons responsible for the repository.

The "root" and "dspace user" email address forwarding are setup as follows.

Type the following.

sudo nano /etc/aliases

Add aliases as per example below:

# Added by installer for initial user
root:   me@my.edu.ac.za
dspace: me@my.edu.ac.za

Change the me@my.edu.ac.za to your email address.

To activate the new aliases type the following:

sudo newaliases

Send a test email to root

Install the command line mailer program as follows:

sudo apt-get install mailutils

Now we can send a test email to the root user by typing as follows:

mail -s "Test Email from root" root

Press the "Enter" key and type some message content. Press CTL+D twice and then Enter to send the mail.

Check the following log for any delivery errors as follows:

sudo tail -n 20 /var/log/mail.log

If there are no delivery errors then your mail server is setup.