Post edited 1:10 am – January 17, 2012 by afif
Heylo to all,
To be honest i'm still new in Linux world and how to setup a mail server. I need to setup one mail server for my company using centos 6. First step that i do is install linux in virtual machine and start to install all the requirement to setup a new mail server such as postfix smtp server, dovecot pop3 and imap server and create one MX and domain name at other server (DNS server).
For postfix.conf file i used this configuration:
# line 75: uncomment and specify hostname
myhostname =mail.test.com
# line 83: uncomment and specify domain name
mydomain =test.com
myorigin = $mydomain
inet_interfaces =all
# line 119: change if you use only IPv4
inet_protocols =ipv4
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
# line 264: uncomment and specify your LAN
mynetworks = 127.0.0.0/8, 10.0.0.0/24
# line 419: uncomment (use Maildir)
home_mailbox = Maildir/
# line 545: uncomment, line 546: add
header_checks = regexp:/etc/postfix/header_checks
body_checks = regexp:/etc/postfix/body_checks
# line 571: add
smtpd_banner = $myhostname ESMTP
# add at the last line
# limit an email size 10M
message_size_limit = 10485760
# limit mailbox 1G mailbox_size_limit = 1073741824
# for SMTP-Auth settings
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_client_restrictions = permit_mynetworks,reject_unknown_client,permit
smtpd_recipient_restrictions = permit_mynetworks,permit_auth_destination,permit_sasl_authenticated,reject
For dovecot.conf:
/etc/dovecot/dovecot.conf
# line 31: change ( if not use IPv6 )
listen =*
protocols = pop3 imap lmtp
/etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir
/etc/dovecot/conf.d/10-auth.conf
# line 9: uncomment and change ( allow plain text auth )
disable_plaintext_auth = no
# line 97: add
auth_mechanisms = plain login
I can sent email and receive email between same domain but i cannot sent or receive email in different domain. I follow all this step refer to this
http://www.linuxmail.info/post…..-centos-6/ but i stuck during to check if we can sent it after authenticating. This error occur " 535 5.7.8 Error: authentication failed: "
I hope all admin or all my new members in this forum can assist me how to troubleshoot and solve this problem
All the good from all of u are most appreciated and thanked in advance
