Kaspersky Industrial CyberSecurity for Networks

Configuring an Exim mail server to send email messages

March 22, 2024

ID 266344

This section describes the process of configuring the basic settings of Exim Mail Transfer Agent (MTA) version 4.92. You can use this mail server on a Server machine with Astra Linux Special Edition installed to send email messages through the email connector and to send reports by email.

To configure the mail server and enable the Exim service to start automatically:

  1. Open the operating system console.
  2. Open the Exim configuration window. To do so, enter the following command:

    sudo dpkg-reconfigure exim4-config

  3. On the mail configuration menu, select mail sent by smarthost; received via SMTP or fetchmail.
  4. At the next step, specify the sender name in System mail name field: for example, "serverkics".
  5. At the next step, keep the default "127.0.0.1" value in IP addresses to listen on for incoming SMTP connections.
  6. At the next step, keep the default value in Other destinations for which mail is accepted.
  7. At the next step, leave Machines to relay mail for blank.
  8. At the next step, specify the IP address or network name of the SMTP server on your corporate network: for example, "mail.example.com".
  9. At the next step, you can enable rewriting of outgoing mail headers if needed.
  10. At the next step, in Keep number of DNS-queries minimal (Dial-on-Demand), select No.
  11. At the next step, on the menu for selecting a local mail delivery method, select mbox format in /var/mail/.
  12. At the final step and if needed, enable splitting the configuration into separate files instead of saving to one file.
  13. After closing the configuration window, activate the Exim service and set it to run automatically. To do so, enter the following commands:

    systemctl enable exim4.service

    systemctl start exim4.service

  14. Grant the required permissions to access /var/mail/. To do so, enter the following command:

    chmod 3775 /var/mail/

Did you find this article helpful?
What can we do better?
Thank you for your feedback! You're helping us improve.
Thank you for your feedback! You're helping us improve.