Install/Configure
From Joyrex Wiki
Contents |
[edit]
Install
- Install exim4:
apt-get install exim4
- Options:
- If Ubuntu (used on Edgy Eft)
- No local mail; smarthost
- local host name
- mail server host name
- If Debian (used on Etch)
- Split configuration
- mail sent by smarthost; no local mail
- System mail name: example.com
- Listen on 127.0.0.1
- Add other names if necessary
- Visible domain name: blah.example.com (current server's name)
- Outgoing Smarthost: mail.example.com (real mail server address)
- No, do not keep number of DNS queries minimal
- If Ubuntu (used on Edgy Eft)
[edit]
Config
- Edit /etc/aliases (if necessary)
- Good default:
root: YOUR-REAL-ACCOUNT-NAME postmaster: root daemon: root bin: root sys: root sync: root games: root man: root lp: root mail: root news: root uucp: root proxy: root www-data: root backup: root list: root irc: root gnats: root nobody: root hostmaster: root usenet: root news: root webmaster: root www: root ftp: root abuse: root noc: root security: root mailer-daemon: postmaster
- Run:
newaliases
- Edit /etc/mailname
- If not already set this way, change entry to the domain (no subdomains, e.g. instead of blah.example.com, use example.com)
- Restart exim4
[edit]
Testing
- As root:
echo "sending to root" | sendmail root echo "sending to user" | sendmail USERNAME
- Tail maillog on normal mail server
- Check mail
[edit]
Troublshooting
- exim4's log (/var/log/exim4/mainlog) is showing: TLS error on connection to MAILHOSTNAME [MAIL SERVER IP] (DH params import): Base64 decoding error.
- Run:
/etc/init.d/exim4 stop rm -f /var/spool/exim4/gnutls-params /etc/init.d/exim4 start

