1 / 16

Mail Server

Mail Server. Presented By Jawad -Ur- Rehman 037 Noman Iqbal 012. Mail Server. We want to configure the  send mail server  for your local LAN. By default sendmail server allows to connect to local host only.

felton
Télécharger la présentation

Mail Server

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mail Server Presented By Jawad-Ur-Rehman 037 NomanIqbal012

  2. Mail Server • We want to configure the send mail server for your local LAN. • By default sendmail server allows to connect to local host only. • So we should edit the /etc/mail/sendmail.mc file to allow connect to other hosts.

  3. Mail Server • The sendmail daemon is configured from a directory of files in /etc/mail and a directory of configuration files in/usr/share/sendmail-cf. • There are two basic configuration files: • sendmail.cf The main sendmail configuration file. • sendmail.mc A macro that's easier to edit, which can be used to generate a new sendmail.cf file.

  4. Configuration • # rpm –qasendmail • # rpm –qa postfix • # rpm –qasendmail-cf • # rpm –qasendmail-doc • # rpm –qasendmail-devel

  5. Configuration • yum install  sendmailsendmail-cfsendmail-doc • yum  install  sendmail-devel  telnet  mailx • Yum install postfix • service sendmail start • Service postfix start • chkconfigsendmail on • netstat -lnp | grep 25

  6. Configuration • # vi /etc/mail/sendmail.mc • dnl#  DAEMON_OPTIONS('Port=stmp,Addr=127.0.0.1,Name=MTA')dnl • m4 sendmail.mc > sendmail.cf

  7. Configuration • open /etc/mail/sendmail.mc for editing • By default, the following line limits sendmail access to connect local host only [line no 116] • dnl#  DAEMON_OPTIONS('Port=stmp,Addr=127.0.0.1,Name=MTA')dnl • You can allow other computers to use your sendmail server by commenting out this line.

  8. Configuration • In the sendmail.mc file , lines that begin with dnl, which stands for delete to new line, are considered comments. Some lines end with dnl, but lines ending in dnl are not comments • comment this line with dnl keyword followed by # sign • save this file with :wq and exit. • Now generate new sendmail.cf file by using m4 command as shown here.

  9. Configuration • Now restart sendmail service and also set it on with chkconfig • if sendmail service restart without any error means you have configured sendmail successfully. • Now create one user on each system noman on server • and umar on client system

  10. Configuration • Now send mail from user noman to umar and from umar to user noman and also check each others mail by mail command. • Use full user name to send mail. For example to send mail to umar use umar@client1.

  11. myhostname=server.jawad.com • Mydomain=jawad.com • # service postfix start • # sunoman • [noman]$ mail umar@server.jawad.com • $ ls • Maildir

  12. CdMaildir • Noman [Maildir ]$ ls • New cur tmp • Noman [Maildir]$ cd new • Noman [new]$ ls • Noman[new]$ cat 13456.f23654.localhost.localdomain

  13. iRedmail server • First we need to download the package of iRedmail from www.iredmail.org then we need to tar this file or unzip it. • Hostname setting: /etc/sysconfig/network • We can check our host through • $ hostname –f • demo.iredmail.org • Jawad.iredmail.org

  14. Enable all default yum repositories in  • /etc/yum.repos.d/CentOS-Base.repo • "enabled=1"

  15. # cd/root/ • # tar xjf iRedMail-x.y.z.tar.bz2 • # cd /root/iRedMail-x.y.z/ • # bash iRedMail.sh

  16. Webmail: http://your_server/mail/ • Admin panel: httpS://your_server/iredadmin/ • phpMyAdmin: httpS://your_server/phpmyadmin/

More Related