Huong Dan Thuc Hanh
Huong Dan Thuc Hanh
Huong Dan Thuc Hanh
[root@lserver3 ~]# alternatives --config mta // lựa chọn cơ chế mail nào
There are 2 programs which provide 'mta'.
Selection Command
-----------------------------------------------
*+ 1 /usr/sbin/sendmail.sendmail
2 /usr/sbin/sendmail.postfix
70 myhostname = mail.nhom10.com
71 data_directory=/usr/lib/postfix
77 mydomain = nhom10.com
93 myorigin = $mydomain
107 inet_interfaces = all
156 mydestination = $myhostname, localhost.$mydomain, localhost,$mydomain
255 mynetworks = 10.0.0.0/8, 127.0.0.0/8
//////////////// Thêm vào để///////////////////////////////////////////
relayhost = isp.smtpserver.com // gửi mail ra internet
message_size_limit = 1024000 // Giới hạn dung lượng gửi mail là 1 MB
smtpd_recipient_limit = 1 // Giới hạn số tin nhăn gửi cho 1 người,1 lần gửi
smtpd_client_restrictions = permit_mynetworks, reject // Allow connections
from trusted networks only.
smtpd_helo_restrictions = reject_unknown_helo_hostname // Don't talk to mail
systems that don't know their own hostname
smtpd_sender_restrictions = reject_unknown_sender_domain// Don't accept mail
from domains that don't exist.
smtpd_sender_restrictions // Reject MAIL FROM information
smtpd_recipient_restrictions // Reject RCPT TO information
///Xem thêm : postfix.org->Document-> SMTP Relay/access control/////
[root@lserver3 ~]# netstat -an | grep :25 //Kiểm tra cổng 25 đang chạy tcp
tcp 0 0 0.0.0.0:25 0.0.0.0:*
LISTEN
& exit
CẤU HÌNH MAIL DOVECOT POP-IMAP
28 $domain = 'nhom10.com';
Mở trình duyệt web của Client và đánh vào địa chỉ http://mail.nhom10.com/webmail
Tiến hành gửi và nhận mail để kiểm tra, có thể kiểm tra bằng MS outlook.