Install and configure Send-only Mail Server with Exim on Ubuntu with Screenshots

Below are the Steps to Install and configure Send-only Mail Server with Exim on Ubuntu Server.

Step 1. Install postfix mail-server with the following command.

apt-get -y install exim4-daemon-light mailutils

You may or may not popped up for Postfix setup wizard in this point. If it doesn’t happen manually run the following command and follow the instruction to install mail server with exim.

dpkg-reconfigure exim4-config
  • Select the option for internet site, and then select Ok to continue.

exim4_general

  • Enter your system’s FQDN (fully qualified domain name) in the mail name configuration screen.

exim4_system_mail_name

  • Enter 127.0.0.1 ; ::1 when asked which IP address to listen on for SMTP connections.

exim4_ip-address_to_listen

  • Make sure you list your FQDN, hostname, and localhost entries when you’re asked which destinations mail should be accepted for.

exim4_other_destination_for_mail_accept

  • Leave the relay domains and relay machines fields blank.

exim4_relay

  • Select No when asked whether to keep DNS queries to a minimum.

exim4_dns_queries

  • You may select either mbox or Maildir when asked about the delivery method used for incoming mail. While many utilities use mbox format, Maildir format can make handling individual locally delivered mail messages easier, and is widely supporting by a range of applications.

exim4_delivery_method

  • Accept the default non-split option for your mail configuration file. Enter at least one external email address (choose one that you check frequently) in addition to root when asked to specify postmaster mail recipients.

exim4_split_configuration

exim4_mail_recipient

Test Your Mail Configuration

Run the following command to send a test email to an external email address.

echo "This is a test." | mail -s Testing [email protected]

View more posts in this category !!!

LinuxTweaks

Linuxtweaks Blog helping Server Admin to Manage their servers, Desktop users for making more friendly with linux. Tutorials , guides and tips for linux server maintenance. Here you can learn how to tweak linux servers with code and how to manage it properly.

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *