Google
 
2008-06
12

Sendmail+Dovecot on Fedora

Filed under: Tech articles — woojar @ 9:44 pm

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 RELAY
192.168.2    RELAY
Domain.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: , , ,

Related posts

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

36 queries. 0.303 seconds. Powered by WordPress
沪-ICP备07003363号 Stat.