Sendmail basic Installation




Step 1

yum install sendmail sendmail-cf dovecot cyrus-sasl cyrus-sasl-lib cyrus-sasl-plain cyrus-sasl-devel

Install Sendmail , SASL and Dovecot.

vi /etc/dovecot.conf

protocols = imap imaps pop3 pop3s

Uncomment this line

vi /etc/mail/sendmail.mc

## Uncomment this 2 line for SMTP Authenication
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

## Add this line for HELO
define(`confALLOW_BOGUS_HELO', `true')dnl

## Change to 0.0.0.0 for smtp connection
DAEMON_OPTIONS(`Port=smtp,Addr=0.0.0.0, Name=MTA')dnl

## Modified the domain name
LOCAL_DOMAIN(`abc.com')dnl

Modify and uncomment in the sendmail mc config file.

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Generate the configuration

vi /etc/mail/local-hostnames
abc.com

vi /etc/hosts
127.0.0.1 abc abc.com localhost




Step 2

chkconfig dovecot on
chkconfig saslauthd on
chkconfig sendmail on
/etc/init.d/dovecot start
/etc/init.d/saslauthd start
/etc/init.d/sendmail start

Start services and enable auto-startup.

Check the router / firewall / linux iptables to allow port 25,110.143

Setup linux account (mail account) and test in outlook / webmail.



Server is hosted by Alanstudio
Linux Operating System

Recommend screen resolution 1024 x 768 / IE / FireFox
Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved.