DSpace/C2/Email-configuration-for-DSpace-on-Ubuntu-Linux-OS/English
Script : Email Configuration for DSpace
Author : Pankaj Patil
Keywords: DSpace Rebuild, DSpace Email Configuration, dspace.cfg, Rebuild script, DSpace gmail configuration
Visual Cue | Narration |
Slide: Title | Welcome to this Spoken Tutorial on Email Configuration for DSpace. |
Slide: Learning Objectives | In this tutorial, we will learn to * Configure an email for DSpace
|
Slide: System requirements | This tutorial is recorded using* Ubuntu Linux OS 18.04
However you may use any other text editor or browser of your choice. |
Slide: Pre-requisites | To practice this tutorial,* You should have installed DSpace 6.3 and
|
Slide: Pre-requisites | Pre-requisites:* You should have familiarity with basic Linux commands.
|
Slide : Code files | * The commands used in this tutorial are available in the Code Files link on this tutorial page.
|
Switch to gedit text editor and open the file | I have opened the code file in the gedit text editor on my machine.
|
Slide : Necessity of Email Configuration | In DSpace we have to configure the email settings to send emails from DSpace. |
Slide : Necessity of Email Configuration | DSpace sends emails to the users for various activities such as * Email verification during registration
|
Only Narration | Let us begin. |
Press Ctrl+Alt+T keys | Open the terminal by pressing Ctrl, Alt and T keys simultaneously on the keyboard.
|
Only Narration | Here onwards, please remember to press the Enter key after typing each command. |
[Terminal] type:
|
Now, we will login as user dspace.
|
[Terminal] type:
|
Type the command as shown to open dspace configuration file.
|
Point to Email settings | Scroll down and locate the Email settings section. |
Slide: SMTP Services | DSpace requires SMTP service to send and receive emails.
|
mail.server = smtp.gmail.com
|
In this demonstration, I will configure a Gmail SMTP mail server.
|
mail.server.username =dspace.u1@gmail.com
mail.server.password =d$pace2019* |
Next we have to enter a valid gmail ID for mail.server.username.
|
Comment
mail.server.port |
We will use gmail’s SMTP port (SSL): 465, to connect to the SMTP server.
|
From Address for mail | Now, give a valid email address for mail.from.address.
|
Feedback recipient email | Please type a valid email address for feedback.recipient
|
System administrator email | We have to give a valid email address for mail.admin.
|
Mail.extraproperties >> remove # symbol | Next, we will configure the SMTP port (SSL): 465.
|
Remove # symbol | Also, remove # symbol at the beginning of the next two consecutive lines, as shown. |
Save and close file | Save and close the file. |
Slide : Rebuild DSpace | Whenever we customize DSpace, it is necessary to rebuild DSpace.
Compilation of source code
We will prepare a shell script to rebuild DSpace, and use it whenever required. |
[Terminal] type:
sudo gedit $HOME/Rebuild-DSpace |
Open a new file named Rebuild-DSpace in a text editor. |
[Terminal] type:
|
Type the shell commands as shown in the text editor.
|
Press Ctrl+S keys | Save and close the file. |
[Terminal] type:
|
Type the command as shown to provide executable permissions to Rebuild-DSpace.
|
[Terminal] type:
$HOME/Rebuild-DSpace |
Let us rebuild DSpace by typing the following command.
|
[Terminal] Highlight
|
On successful completion, BUILD SUCCESSFUL message will appear on the screen. |
Narration only | This means we have deployed DSpace email configuration on Tomcat server. |
Narration only | Next we have to configure some settings in the Gmail account which we have used.
|
[browser] Login to gmail as dspace.u1@gmail.com | To do so, login to the respective gmail account which we have typed in the Email settings of DSpace. |
[browser] Type the url: | Then in the address bar, type the URL as shown.
|
[browser] Turn the toggle on for Allow less secure apps | Turn ON the toggle button for Allow less secure apps. |
Only narration | We have done the required configurations.
Now let us send a test mail.
|
[Terminal] type:
|
Then type this command to send a test email.
|
[Browser] Open the gmail account | Let us cross verify this.
|
[Browser] Point to the DSpace test mail | Here is the DSpace test email.
|
Logout from gmail | Once done, sign out from the gmail account. |
Only Narration | This brings us to the end of this tutorial.
|
Slide Summary
|
In this tutorial we learnt to* Configure email for DSpace
|
Slide : About Spoken Tutorial project | The video at the following link summarises the Spoken Tutorial project.
|
Slide : Spoken Tutorial workshops
|
The Spoken Tutorial Project team conducts workshops and gives certificates.
|
Slide: Answers for THIS Spoken Tutorial | Please post your timed queries in this Forum. |
Slide: Acknowledgement -I | Spoken Tutorial project is funded by MHRD, Government of India. |
Slide: Acknowledgement -II
|
DSpace spoken tutorial series is funded by the National Virtual Library of India, Ministry of Culture, Government of India. |
Narration only
|
This script and video for this tutorial was contributed by Pankaj Patil from IIT Bombay.
|