ក្រុមការងារយើងខ្ញុំនិងខិតខំសិក្សារស្រាវជ្រាវចំនេះដឹងបន្ថែមទៀតសំរាប់លោកអ្នក សូមអរគុណសំរាប់ការគាំទ្រ !

Linux Mail Server Configuration

Configure Postfix : Mail server in centos

#yum -y install postfix
#yum listed installed |grep postfix
#cd /etc/postfix/
#ll
#cp main.cf main.cf.bk
#vi /etc/postfix/main.cf
search /myhostname enter
myhostname = test.local
mydomain = test.local  (# is delate for enable)     ESC /myorigin shearch
myorigin = $mydomain  (# is delate for enable) ជាកន្លែង diskplay domain name
search /mydestination ថែម $mydomain
search /mynetwork
mynetworks = 192.168.1.0/24, (# is delate for enable) 
search /inet_interfaces
 inet_interfaces = all (# is delate for enable)
search/home_mailbox
home_mailbox = maildir/  (# is delate for enable)
#service postfix restart
#service postfix status
#chkconfig postfix on
#userdd john
#passwd 123
#telnet localhost smtp        is not work
#yum -y install telnet
#telnet localhost smtp
hello localhost - >enter
mail from: john
rcpt to : john
subject : test
.    ( . is save )
quit      ( enter for exit )
#cd /home/john
#ll
#cd Maildir/
#ll
#cd new
#ll
#cat 1 hz tab
open cmd
telnet test.local smtp
#firewall-cmd --add-service=smtp --permanent --zone=public
#firewall-cmd --reload
open cmd again : telnet test.local ESMTP Postfix
hello test.local
mail from: john
rcpt to: vuthy
subject: test2
.
quit
#cd /home/vuthy
#ll
#cd Maildir/
#ll
#cd new
#ll
#cat 14 -> tab

========================================================================

Configure Dovecot : Revice mail

1/ install Dovecot Package
#yum install devecot -y
2/ Configure Dovecot
#vi /etc/dovecot/dovecot.conf
  protocols = pop3 imap
mail_location = maildir:~/maildir


3/ Disable SSL & Plaintext Authentication
#vi /etc/dovecot/conf.d/10-auth.conf
Disable_plaintext_auth = no
#vi /etc/dovecot/conf.d/10-ssl.conf
ssl=no
4/ Restart/verify Service
#service dovecot restart
#service dovecot status
#chkconfig dovecot on
5/ Allow SMTP/POP3 in firewall
#firewall-cmd --add-service=pop3 --permanent --zone=pubic
#firewall-cmd --reload
6/ Test check Mail
#telnet localhost 110
user dara
pass 123
retr 1
quit
7 Test setup on outlook
#telnet test.local
or telnet 192.168.1.2
-POP3 Server: mail.test.local
-SMTP Server: mail.test.local

View Video : link 


EmoticonEmoticon