if you are interested to contribute your LAB PROGRAM Please send mail to jkumaron@gmail.com

Procmail Dovecot configuration Edit /etc/procmailrc in Red hat Rhel5

Procmail is used for Filter the mail and Maintain the Auto Reply
Step 1: Install and configure send mail or postfix and install procmail
#yum install procmail
Step 2: edit the procmail configuration file
#vim /etc/procmailrc
:0 c
* ^Subject.*rhce
#which procmail
#chmod g+s /usr/bin/procmail
Step 3: Postfix procmail configuration
#vim /etc/postfix/main.cf
mailbox_command = /usr/bin/procmaill
Sendmail procmail configuration
#vim /etc/mail/sendmail.mc
Line no:175
Step 4: restart the send mail or postfix service
#service sendmail restart (or) #service postfix restart
Step 5: create a empty file and change the permission
#touch /var/spool/mail/procmail.test
#chgrp mail /var/spool/mail/procmail.test
#chown 770 /var/spool/mail/procmail.test
Step 6: send email to any user subject is rhel5
#mail v
sample email for procmail testing
Step 6: check the email for man user
#su man
$mutt f

Install Configure Dovecot configuration Red hat rhel5
Dove cot is Open Source Imap Pop3 Server
Dovecot is used for imap and pop3 configuration
Step 1: install and configure sendmail or postfix
Step 2: install the dovecot
#yum install dovecot
Step 3: edit the dovecot.conf file
#vim /etc/dovecot.conf
enable the following lines
Line no:17
protocols = imap imaps pop3 pop3s
Line no: 87
ssl_cert_file = /etc/pki/dovecot/certs/dovecot.pem
Line no:88
ssl_key_file = /etc/pki/dovecot/private/dovecot.pem
Step 4: restart the sendmail or postfix and dovecot
#service postfix restart
#chkconfig dovecot on
#service dovecot restart
#netstat tulpn
|grep dovecot
Step 5: #mutt f imap://man@script.com
#mutt f imaps://man@script.com
#mutt f pop://man@script.com
#mutt f pops://man@script.com
succefully procmail and Dovecot configure Successfully .

Related post