Mail Server

Rodolfo Alcázar rodolfo.alcazar at padep.org.bo
Thu Oct 6 20:00:29 UTC 2005


On Thu, 2005-10-06 at 14:42 -0400, Ki Il Song wrote:
> I am pretty new to Fedora.
> 
> I am trying to setup a dedicated mail server on our company network.
> 
> Is there a HOWTO on how to accomplish this?

Yea, a lot on Internet. Here is an excerpt of a class I dictated:

Server Linux Fedora Core  4
=============================

Install Fedora Core 4

Do Not install SELINUX.

Type: Custom. No additional packages

Hostname=www.mysite.org.bo

Partitions
sda1            100             /boot
sda2            16747           /
sda3            509             /swap

That is on my server. You must configure server to connect to internet.
If ping www.google.com works, you're done. Must make this configuration
from the command line as root.

Config firewall with IP Tables
=================================

Add to /etc/sysconfig/iptables:
        -A RH-Firewall-1-INPUT -p tcp --dport 22 -j ACCEPT
        -A RH-Firewall-1-INPUT -p tcp --dport 25 -j ACCEPT
        -A RH-Firewall-1-INPUT -p tcp --dport 80 -j ACCEPT
        -A RH-Firewall-1-INPUT -p tcp --dport 110 -j ACCEPT

# service iptables restart

Create yum repository
=====================

Install rpm createrepo:
# yum -y install createrepo

Create basedir
# mkdir -p /rpm/Fedora/RPMS
# cd /rpm/Fedora/RPMS

Put every disk on the server and:
# mount /media/cdrom; cp -v /media/cdrom/Fedora/RPMS/*.rpm . ; eject

On /etc/yum.repos.d/fedora.repo comment baseurl=, mirrorlist, gpg...,
and add
        baseurl=file:///rpm/

Create repo:
# createrepo /rpm

Config Apache web server
============================

# yum -y install httpd
# service httpd start
# chkconfig httpd on

Config Pop3 server with Dovecot
==================================

# yum -y install dovecot
# service dovecot start
# chkconfig dovecot on

Config SMTP server with Sendmail
===================================

# yum install sendmail-cf
# cd /etc/mail/

# vi sendmail.mc

Uncomment (erase dnl) on:
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
LOGIN PLAIN')dnl

Comment (put dnl):
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Generate sendmail config file:
# m4 sendmail.mc > sendmail.cf

Add domains served by server:
# echo mysite.org.bo >> local-host-names

Add networks from whom we accept sending mail:
# echo 10.0.0 RELAY >> access

Regenerate hash tables by restarting service
# make
or
# service sendmail restart

Webmail with SquirrelMail
=============================================

# yum install squirrelmail

Complete data on:
# /usr/share/squirrelmail/config/conf.pl
Required: 1, 7 (Motd) and 10 (languaje, I use es_ES)

> 
> Thanks!
> 
--
Rodolfo Alcazar rodolfo.alcazar at padep.org.bo
Netzmanager Padep, GTZ
591-70656800, -22417628
LA PAZ, BOLIVIA

-- Emperor Palpatine:
Everything that has transpired has done so according
to my design.






More information about the fedora-list mailing list