It is possible to configure emails notifications on V3 so that when an event has to reported, the DDP can send a email with relevant details about the warning/error to the specified recipients.


This can be achieved in the GUI by going to the "emails" page and filling out a few fields.




The "from" field refers to the sender email address, which doesn't even need to exist as its purpose is only to inform the recipients that the notification comes from the DDP. That is why you should put something easy to identify like ddp@yourcompanyname.com.


The "SMTP" field refers to your SMTP server IP address on which the DDP relies on in order to send emails.

It is recommended to put an IP address rather than a domain name in order to avoid DNS resolution problems.

You can use an internal IP address as well as one from the internet as long as the DDP can reach it. 


As the DDP doesn't support SMTP servers which require authentication for sending emails, please make sure that your company one doesn't require it. A example of such servers are google ones for gmail, which hence cannot be used with the DDP.


At last you must make sure that there is not firewall blocking the communication between the DDP and your SMTP server.

Being able to ping your SMTP server from the DDP doesn't guarantee that they can communicate properly. If your firewall block the TCP port 25 in your network, no emails can be sent. A good test to determine if that is the case is to try to telnet your SMTP server from the DDP.


You can achieve that using the following command from the DDP: (replace the IP address with your SMTP server one, 25 represents the port to use)

$ telnet 172.16.5.10 25


If you can ping but cannot telnet your SMTP server from the DDP, it's likely that there is a firewall blocking the connection in your company.


Eventually in the 2 remaining fields, you need to specify the recipients email addresses. The DDP will send emails to all the specified recipients when it's got a notification to send.


By default the email object will be "root" but you can change it to "ddp" for example by connecting to the DDP by ssh and editing the /etc/passwd file with your favorite text editor.


The field to edit is the first line 5th one as show below:



If you want to change the email subject to "ddp", you can edit the file as following:


You might also want to change the domain name which is used when the DDP try to send emails, some SMTP servers can reject the default one which is localhost.localdomain. You can fix that by editing the /etc/hosts file with your favorite file editor after connecting to the DDP by ssh.


What you need to do is to add a field with your domain name. You must add it right after 127.0.0.1 and before localhost.localdomain as show below:


After sending the file, the DDP will send emails using that new domain name.