Sunday 20 May 2018

SendMail & Dovecot Configuration ...!!!!!!!!


Sendmail configuration----

Install these packages for sendmail

#yum install sendmail sendmail-cf dovecot -y
(# vim  “/etc/mail/sendmail.mc”
(comment the DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA'dnl))

#useradd usernamme
#passwd usernamme 
(create and set the smtp user's)
#vim /etc/mail/virtusertable
(usernamme@domainname      usernamme.domainname)
(@domainname               usernamme.domainname)

#/etc/mail/local-host-names    (domain name entry)
#/etc/mail/sendmail.mc
 (Add the three line )
     FEATURE(masquerade_envelope)
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/sendmail.gdf')

(Create these file and entry like that)

# /etc/mail/genericstable
(usernamme.domainname         usernamme@domainname)

(Create these file and entry the domainname)

#/etc/mail/sendmail.gdf 

#cd /etc/mail
#m4 /etc/mail/sendmail.mc /etc/mail/sendmail.cf
#make all

DoveCot Entry For sendmail

# yum install dovecot

vim /etc/dovecot/dovecot.conf

auth_mechanisms = plain login
mail_location = mbox:~/mail:INBOX=/var/mail/%u

vim /etc/dovecot/conf.d/10-auth.conf
disable_plaintext_auth = no   -  (Uncommitted this line and provide "yes")
auth_mechanisms = plain login
User Permission for mail sending and receving in Sendmail mail server

cd /home/username.domain/
mkdir mail
cd mail
mkdir .imap
cd .imap
mkdir INBOX
chown -R username.domain:username.domain /home/username.domain/mail/
chmod -R 700 /home/username.domain/





No comments:

Post a Comment