Configure Email Server using PostFix, Dovecot and Squirrel Mail in RHEL 7 (CentOS 7)| Nehra Classes

Nehra Classes
Nehra Classes
13.6 هزار بار بازدید - 4 سال پیش - Configure Webmail/Dovecot Mail Server in
Configure Webmail/Dovecot Mail Server in RHEL 7 (CentOS 7): ================================================== POSTFIX for SMTP (Simple Mail Transfer Protocol): Used for Sending the Emails. DOVECOT for POP3 (Post Office Protocol): Used for Receiving the Emails. SQUIRRELMAIL for IMAP (Internet Message Access Protocol): Used for Front Web End Mail Client. === Server Configuration: RHEL 7 IP Address: 192.168.1.104 === 1. Set the hostname in the machine. hostnamectl set-hostname rhel7.nehraclasses.local Add hostname entries in /etc/hosts file as shown below: vim /etc/hosts Add the following 192.168.1.104 rhel7.nehraclasses.local rhel7 2. Disable or make permissive the SELINUX setenforce 0 getenforce 3. Install EPEL Repository: wget dl.fedoraproject.org/pub/epel/epel-release-latest-… rpm -ivh epel-release-latest-7.noarch.rpm yum install -y epel-release 4. Allow the Apache default port 80 through your firewall/router: firewall-cmd --permanent --add-port=80/tcp Reload firewall using command: firewall-cmd --reload 5. Install the Postfix Package. yum install postfix -y 6. Configuring PostFix vim /etc/postfix/main.cf Line no 77 - Uncomment and set your mail server FQDN ## myhostname = rhel7.nehraclasses.local Line 85 - Uncomment and Set domain name ## mydomain = nehraclasses.local Line 101 - Uncomment ## myorigin = $mydomain Line 115 - Uncomment and Set ipv4 ## inet_interfaces = all Line 121 - Change to all ## inet_protocols = all Line 166 - Comment ## #mydestination = $myhostname, localhost.$mydomain, localhost, Line 167 - Uncomment ## mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain Line 266 - Uncomment and add IP range ## mynetworks = 192.168.1.0/24, 127.0.0.0/8 Line 421 - Uncomment ## home_mailbox = Maildir/ Save and exit the file. Start/restart Postfix service now: systemctl restart postfix systemctl enable postfix 7. Test the Postfix Server: Add the user account. useradd nehra passwd nehra Install Telnet Package yum install -y telnet Check telnet telnet localhost smtp Type the commands: ehlo localhost mail from:nehra rcpt to:vikasnehra data welcome to Postfix Mail Server . quit ll /home/vikasnehra/Maildir/new/ Open the file with name using cat. 8. Install Dovecot Package yum install -y dovecot Configure Dovecot vim /etc/dovecot/dovecot.conf Line 24 - umcomment ## protocols = imap pop3 lmtp Edit file /etc/dovecot/conf.d/10-mail.conf file vim /etc/dovecot/conf.d/10-mail.conf Line 24 - uncomment ## mail_location = maildir:~/Maildir Edit /etc/dovecot/conf.d/10-auth.conf vim /etc/dovecot/conf.d/10-auth.conf And make the changes as shown below: line 10 - uncomment## disable_plaintext_auth = yes Line 100 - Add the word: "login" ## auth_mechanisms = plain login Edit file /etc/dovecot/conf.d/10-master.conf, vim /etc/dovecot/conf.d/10-master.conf Make changes as shown below: Line 91, 92 - Uncomment and add "postfix" #mode = 0600 user = postfix group = postfix [...] Start Dovecot service: systemctl start dovecot systemctl enable dovecot Testing Dovecot telnet localhost pop3 user vikasnehra pass retr 1 . quit 9. Install Squirrel mail Package yum install squirrelmail Configuring Squirrel-Mail cd /usr/share/squirrelmail/config/ ./conf.pl Enter 1 Enter 1 and change the organization Name Press S Press R for previous menu Enter 2 for Server settings Press 1 and type: rhel7.local (Name of Domain) Press 3 Press 2 for switching from Send Mail to SMTP Type S and Press Q for quit 10. Create a squirrelmail vhost in apache config file: vim /etc/httpd/conf/httpd.conf Enter the following: Alias /webmail /usr/share/squirrelmail Directory /usr/share/squirrelmail Options Indexes FollowSymLinks RewriteEngine On AllowOverride All DirectoryIndex index.php Order allow,deny Allow from all /Directory systemctl restart httpd systemctl enable httpd Enter the following command: setsebool httpd_can_network_connect=1 Open Web Browser and type in address bar the following. And Use User Credentials to Login. http://192.168.1.104/webmail Your Dovecot Server is working. === Visit FB Page for Complete Steps: www.facebook.com/nehraclasses/ === Thanks for watching the video. Please like our videos, share with your friends and feel free to ask anything, post your queries in comments section. We will be glad to answer your queries. Don't forget to subscribe the channel & turn on the bell notifications. =============== Our Some Popular Videos: Yum Server Configure in RHEL 7:    • Configure Local Yum Repository in RHE...   Learn Linux Fundamentals:    • Learn Linux Fundamentals (Linux Basic...   Concept of All RAID Levels:    • Session-31 | Concept of RAID & Differ...   LVM Snapshot:    • Session-30 | Logical Volume (LVM) Sna...   ============ ©COPYRIGHT. ALL RIGHTS RESERVED. #NehraClasses #LinuxTraining #MailServer
4 سال پیش در تاریخ 1399/02/22 منتشر شده است.
13,666 بـار بازدید شده
... بیشتر