Documentations

Configuring a ServiceNav Box to use an authenticated mail server

On the page

Need some help?

A client or partner does not use an internal mail server and/or its server requires authentication.

ServiceNav must be configured to use an authenticated SMTP relay.

 

Step-by-step guide

The client must provide an email address, along with the account and password.

  • in the rest of the document we will use user@partenaire.dom  as email address / login and password as password
  • in the examples the box (SNB or SNP) will have for hostname hostname
  • in the examples the name of the local network will be client.lan

 

Edit /etc/exim4/exim4.conf.template

  • Add at the beginning of the file, after the following line
# Macro defining the main configuration directory.
# We do not use absolute paths.
.ifndef CONFIDER
CONFIDER = /etc/exim4
.endif

The line:

disable_ipv6 = true

 

Configure EXIM4 in the traditional way : 

sudo su - cd /root/vsb_installation
./vsb_installation.pl

Then follow the instructions on the screen:

############################################################
 ####### VSB INSTALLATION ########
 ############################################################
 Copyright CoServIT 2012-2013. All rights reserved.
 ## Welcome in the VSB Installation script - VSB/VSM side. ## This tool will allow you to: ## - Configure your network ## - Contact the Vsb Installation API to get your synchronization parameters ## - Configure the mail ## Note : You can exit this program with Ctrl+C
Press any key to continue

Press any key to continue

To switch to the ServiceNav Box network configuration: Tap directly on the key Enter

###### NETWORK CONFIGURATION #############
Do you want to configure the Network (y/n) [default: n] :

To switch to the "Provider" configuration of the ServiceNav Box: Tap directly on the key Enter

###### CONTACTING INSTALLATION PROVIDER #############
Do you want to retrieve configuration by HTTP/HTTPS api (y/n) [default: n] :

 

The last step is to configure the sending of emails with the Exim4 email service located on the ServiceNav Box. To configure the sending of notification emails, type "y" and press the "Enter" key:

###### MAIL CONFIGURATION (EXIM4) #############
Do you want to configure the Mail (y/n) [default: n] : y
--> Launching exim4 config. do not interrupt!

The Exim4 configuration tool is launched:

  • Here's what you need to answer the questions:Type of configuration:
      • Sending via relay (smarthost) - no local mail

    System email name:

    List of IP addresses at Exim will be waiting for incoming SMTP connections:

    • 127.0.0.1

    Other destinations for which email must be accepted:

    • (blank)

    Domain name visible to local users :

    Network name or IP address of the smarthost system :

    • adresserelais::portrelais

    Areas to be relayed:

    Relay machines:

    • 127.0.0.1

    Should DNS queries (connections on demand?) be minimized?

    • No

    Is it necessary to separate the configuration into several files?

    • No

    Once the configuration is complete, the service restarts:

    * Stopping MTA for restart [ OK ]
    * Restarting MTA [ OK ]
    --> Exim4 config finished

     

Change /etc/email-addresses

    • Add the following lines :
    • nagios: user@partenaire.dom
    • root: user@partenaire.dom
  • Change /etc/aliases
    • Change the line for the root user : root: :blackhole:
  • Change /etc/exim4/passwd.client
    • Add the line *:user@partenaire.dom:motdepasse
  • Restart exim4

exim4 restart service

 

To test the sending of emails, type the following command and adapt it to your needs:

mail -s "Hello World" mail@domaine.com Cc: Text 

This may also be of interest to you

Ensure and maintain the availability of its ServiceNav Box fleet

Ensuring the PRA of a ServiceNav Box

Replacing a Ubuntu 12.04 ServiceNav Box with a Ubuntu 4.0 ServiceNav Box 16.04

Welcome to ServiceNav!

Need help? More information about our products? Write to us!
You have taken note of our privacy policy.

[COVID - 19 ] - TELEWORKING, TARGET AVAILABILITY 100% !

While the epidemic lasts, ensure the availability and performance of your IT services for teleworking, with ServiceNav!

Following the government's call to mobilize to help businesses overcome the current health and economic context, we help you, free of charge, to ensure the complete monitoring of your teleworking environments: VPN, VDI, Teams, Skype Enterprise, Citrix... Objectives: collection, availability and usage indicators, dashboards to support your communication.
We use cookies to ensure that you have the best possible experience on our site, and if you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.