Sendmail Server

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

We will configure sendmail for accepting mails in maildir format for the domain fnettest.com.

Pre-request:
1.Fedora Core 3 must be installed. 2. User must have knowledge of using vi editor(If not please refer to vi manual in this KB).

Document Print
1.Login as root. 2.Go to /etc/mail directory Type "cd /etc/mail" 3.Edit sendmail.mc file Type "vi sendmail.mc" 4.Search for the word "Addr=127.0.0.1". 5.Change the line "DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl" to "dnl # DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl" & Change this line also, remove the ''dnl'' front of this line ''TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')''

6.Change the line "dnl MASQUERADE_DOMAIN(localhost)dnl" to "MASQUERADE_DOMAIN(fnettest.com)dnl" Save the file 7.Convert the sendmail.mc file to sendmail.cf file using m4\ Type "m4 sendmail.mc > sendmail.cf" 8.Edit local-host-names Type "vi local-host-names" Type fnettest.com save the file. 9.Go to the directory "/etc" Type "cd /etc" 10.Create and edit the file procmailrc Type "vi procmailrc" Type the following text in the file PATH=$HOME/bin:/usr/bin:/usr/ucb:/bin:/usr/local/bin:. MAILDIR=$HOME/mail DEFAULT=$MAILDIR/mbox LOCKFILE=$HOME/.lockmail 16. Save the file. 17.Go to the directory /etc/skel Type "cd /etc/skel" 18.Create a directory called "mail" Type "mkdir mail". 19.Go to the directory /etc/skel/mail Type "cd /etc/skel/mail"

20.Create an empty file named mbox.


Type "touch mbox"

21.Go to the directory /etc/skel Type "cd /etc/skel" 22.Create a link to the file mail/mbox Type "ln -s mail/mbox " 23.Start sendmail & saslauthd Type "/etc/init.d/sendmail start". Type ''/etc/init.d/saslauthd 24.Make sendmail to start by default whenever the system boots Type "chkconfig sendmail on".

Configuration of pop3 for sending mail.(DOVECOT CONFIGURATION)


1. Login as root. 2.Go to /etc directory.
Type "cd /etc"

Edit the file dovecot.conf


Type "vi dovecot.conf"

4.Change the line "protocols = imap" to "protocols = pop3 pop3s imap imaps". 5.Change the line "default_mail_env =" to "default_mail_env = mbox:~/mail/:INBOX=/%h/mail/ mbox". 6. Save file and exit

7.Start dovecot service Type "/etc/init.d/dovecot start" 8.Make the service dovecot to start by default whenever the server boots Type "chkconfig dovecot 9.Install The Squirrel mail rpm type ''rpm -ivh squirrelmail..'' 10.restart the http service type ''service httpd restart''

You might also like