smtp - Local mail server not working prpoperly in centos 6.5 -
i want setup local mail server want work in local environment. used sendmail , dovecot. have development server , in uses mantis tools. after resolving issue each developer got mail not getting in local intranet.
so need resolve problem installed sendmail server.
yum install sendmail* -y yum install m4* -y
changed in sendmail.mc
dnl # daemon_options(`port=smtp, addr=192.168.1.91, name=mta')dnl
then
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
then service sendmail restart
for receiving mail installed dovecot
yum install dovecot* -y
in changed
in dovecot.conf
uncomment pop3 imap
10-auth.conf
changed
disable_plaintext_auth = no
auth_mechanisms = plain login
in 10-mailconf
uncomment maildir.
in 10-master.conf
user , group left blank
everything works said ok. sendmail ok. dovecot ok. no error mail dosen't receive. nothing happened not able receive mail.
i need if have email user1@example.com , user2@example.com both using mantis user1 admin of mantis. if issue resolve user2 automatic mail user1.
for how configure mail server.
in sendmail.mc
change
dnl # daemon_options(`port=smtp, addr=192.168.1.91, name=mta')dnl
to
daemon_options(`port=smtp, addr=192.168.0.0, name=mta')dnl
to accept mail on port 25 local address 192.168.xxx.xxx
also add line in access file (to relay mail ip's):
connect:192.168 relay
don't forget type make
after editing.
Comments
Post a Comment