exim mail server
# emerge exim
In /etc/exim there should be a file exim.conf.dist. Copy this file to /etc/exim/exim.conf. I have my mail server setup on a home computer with a domain say www.domain.com and my router has an IP range of say 192.168.0.1 to 192.168.0.255. My mail directory is setup to be /var/mail or /var/spool/mail -- one is a symbolic link. If your username is foobar you will have to create a mail box if it doesn't exist and make sure you are a member of the group wheel.
# cd /var/spool/mail # touch foobar # chown foobar:wheel foobar
Edit /etc/group and at the end of the group wheel add your user name like:
wheel::10:root,foobar
Change the following lines in exim.conf.
domainlist local_domains = @
to
domainlist local_domains = @:domain.com
hostlist relay_from_hosts = 127.0.0.1
to
hostlist relay_from_hosts = 127.0.0.1:192.168.0.1/255
# file = /var/mail/$local_part directory = /home/$local_part/.maildir
to
file = /var/mail/$local_part # directory = /home/$local_part/.maildir
If you don't make the last change, each email will be stored as a seperate file in /home/yourusername/.maildir/new or cur ... etc.
Start exim with
# /etc/init.d/exim start
One thing to note is that if you are using procmail with a .forward file, exim currently doesn't support the "\|IFS=' '. I've read that you should use /bin/sh -c "\|IFS=' ' but I haven't got that to work yet.
To allow exim style filtering uncomment the line in /etc/exim/exim.conf
#allow_filter
[Click to add or edit comments])
Please prepend comments below including a date