Sendmail+Dovecot on Fedora
Sendmail is a MTA(Mail Transport Agent) open source software. It’s built in the Fedora Core and many other GNU distribution.
In the Fedora, you just modify below line in the configuration file /etc/mail/sendmail.conf
DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA
to
DaemonPortOptions=Port=smtp,Addr=YOUR_Server_IP, Name=MTA
and then add your client IP address or network or domain in the file /etc/mail/access
192.168.3.45 RELAY192.168.2 RELAYDomain.com RELAY
Make the modification take effective with below command
service sendmail restart
After above process, you can use your server to send mail to other local mailbox. If you would like to use it to send mails to Internet mailbox, you need to get one public domain name.
Now we go to configure pop3 protocol software, through which we can receive our mail with MUA(such outlook express). By defualt Fedora has Dovecot which suports both IMAP and POP3. You just modify the follow lines in the configuration file /etc/dovecot.conf
mail_location = mbox:~/mail:INBOX=/var/spool/mail/%u
restart dovecot service
service dovecot restart
Please note, dovecot rejects the the user whose UID is 0, that means root user can not fetch mails from dovecot. You need to create other system user or virtual user as pop3 user.
Tags: dovecot, MTA, pop3, sendmail