Install Exim For Local Emailing On Debian 12

This blog post will explain how to install and configure the exim smtp server for local mail sending and receiving.
Install mailutils and configure exim with the dpkg-reconfigure command.

apt install mailutils
dpkg-reconfigure exim4-config

Choose local delivery only/not on a network when asked for general type of mail configuration.

Put down localhost in the system mail name.

Put down IP address 127.0.0.1 when asked for what IP address to listen on.

For delivery method for local mail, choose Maildir format in home directory so it will work with dovecot.

Send mail with this command: echo “Email body text” | mail -s “Subject” user@localhost

Leave a Reply