Sendmail Server

download Sendmail Server

of 4

Transcript of Sendmail Server

  • 8/6/2019 Sendmail Server

    1/4

    We will configure sendmail for accepting mails in maildir formatfor 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 thisKB).

    Document Print1.Login as root.

    2.Go to /etc/mail directoryType "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 LOGINPLAIN')dnldefine(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5CRAM-MD5 LOGIN PLAIN') ''

  • 8/6/2019 Sendmail Server

    2/4

    6.Change the line"dnl MASQUERADE_DOMAIN(localhost)dnl " to"MASQUERADE_DOMAIN(fnettest.com)dn l"

    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-namesType "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 procmailrcType "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/mboxLOCKFILE=$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/mailType "cd /etc/skel/mail"

  • 8/6/2019 Sendmail Server

    3/4

    20.Create an empty file named mbox.Type "touch mbox"

    21.Go to the directory /etc/skelType "cd /etc/skel"

    22.Create a link to the file mail/mboxType "ln -s mail/mbox "

    23.Start sendmail & saslauthdType "/etc/init.d/sendmail start" .

    Type ''/etc/init.d/saslauthd

    24.Make sendmail to start by default whenever the system bootsType "chkconfig sendmail on".

    Configuration of pop3 for sending mail.(DOVECOTCONFIGURATION )

    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 = im ap" 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

  • 8/6/2019 Sendmail Server

    4/4

    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 dovecot9.Install The Squirrel mail rpm

    type ''rpm -ivh squirrelmail..''

    10.restart the http servicetype ''service httpd restart''