Install and configure Exim 4 mail server in Debian 8
One of friends ask me to configure mail in VPS to send messages via web form. He using Wordpress, and can't write custom PHP code to send mail directly via SMTP. Only one way is acceptable here: to use PHP mail() function. Okay, in this case we need a mail server on VPS. I like Exim. To install Exim, run: apt-get install exim4-base After this, run configuration tool: dpkg-reconfigure exim4-config Make selections with using arrow keys, select “Ok” with tab key (note again, server will setup only for send mail): Select: ‘internet site; mail is sent and received directly using SMTP’ Enter FQDN: yourdomain.tld SMTP Listener: enter 127.0.0.1; ::1 Mail destinations - yourdomain.tld, local hostname, localhost.localdomain, localhost Relay Options: Leave blank Follow up Screen to Relay Options: Leave blank DNS Queries: Keep DNS queries to a minimum? select “No” Delivery method: Select “Maildir format in home directory” Choose default unsplit config file by entering “No...