Tuesday, November 22, 2011

Configuration of POP3 and IMAP ,Digital Certification


Configuration of POP3 and IMAP 

IMAP is used for the authentication and POP3 is used for mailing
We need to configure
#vi /etc/dovecot.conf
Uncomment line No. 14
Protocols = imap imaps pop3 pop3s
Save and exit
Start the service
#service dovecot restart
#chkconfig dovecot on
#chkconfig xinetd on
Now in order to provide security
Allowing local network to access the pop3 and imap and disallowing other
#vi /etc/hosts.allow
Ipop3d                        :           172.24.0.0/255.255.0.0
Imapd             :           172.24.0.0/255.255.0.0

#vi /etc/hosts.deny
Ipop3d                        :           ALL
Imapd             :           ALL

These permission are set when host from local network can access pop3 and imap and hosts from other network does’nt allow

In order to disallow outside network say 172.25.0.0
Ipop3d                        :           172.25.0.0/255.255.0.0
Imapd             :           172.25.0.0/255.255.0.0

To check the status
#nmap stationx
Or
#namp localhost

 Digital Certification

Certificate is used for the purpose of authentication
Steps
  1. Check for devecot.pem file in
#cd /usr/share/ssl/certs
#rm dovecot.pem
#make dovecot.pem
In this we have to make the following entries
  1. country
  2. state
  3. street
  4. company and unit name
  5. station name
  6. email address
after making all those entry we need to copy this file
#cp dovecot.pem /usr/share/ssl/private/dovecot.pem
Overwrite : yes
To check the status or entry
#openssl x509 –noout-subject </usr/share/ssl/private/dovecot.pem


Thanks,

No comments:

Post a Comment