Linux Podtfix mail Server deployment

Source: Internet
Author: User
Tags dovecot squirrelmail

RPM-IHV postfix-2.6.6-2.el6.i686.rpm

Vim/var/named/chroot/etc/named.conf

Vim/var/named/chroot/var/named/winsnet.com.zone

$TTL 3H

@ in SOA @ rname.invalid. (

0; Serial

1D; Refresh

1H; Retry

1W; Expire

3H); Minimum

NS ns.winsnet.com.

MX 5 mail.winsnet.com

Mail in A 192.168.0.111

NS in A 192.168.0.111

FTP in A 192.168.0.111

www in A 192.168.0.111


Service named restart

Nslookup

Mail.winsnet.com

Set TYPE=MX

Winsnet.com


Vim/etc/postfix/main.cf

#inet_interfaces = All

#inet_interfaces = $myhostname

#inet_interfaces = $myhostname, localhost

Inet_interfaces = All


Myhostname = mail.winsnet.com

#myhostname = Virtual.domain.tld


MyDomain = winsnet.com


#myorigin = $myhostname

Myorigin = $mydomain


mydestination = $myhostname, localhost. $mydomain, localhost, $mydomain

#mydestination = $myhostname, localhost. $mydomain, localhost, $mydomain

#mydestination = $myhostname, localhost. $mydomain, localhost, $mydomain,

# Mail. $mydomain, www. $mydomain, ftp. $mydomain


#home_mailbox = Mailbox

Home_mailbox = maildir/


Postfix start


RPM-IHV telnet-0.17-46.el6.i686.rpm

Telnet mail.winsnet.com 25



Useradd-s/sbin/nologin Dovecot

Useradd-s/sbin/nologin Dovenull


Tar zxvf dovecot-2.0.16.tar.gz

./configure--sysconfdir=/etc--with-pam

Make && make install


Cp/usr/local/share/doc/dovecot/example-config/dovecot.conf/etc/dovecot/dovecot.conf

Cp-r/usr/local/share/doc/dovecot/example-config/conf.d/etc/dovecot



Vim/etc/dovecot/dovecot.conf

# protocols We want to be serving.

protocols = IMAP POP3 LMTP


Vim/etc/dovecot/conf.d/10-ssl.conf

# SSL/TLS Support:yes, no, required. <doc/wiki/SSL.txt>

SSL = No


#ssl_cert = </etc/ssl/certs/dovecot.pem

#ssl_key = </etc/ssl/private/dovecot.pem


Vim/etc/dovecot/conf.d/10-auth.conf

Disable_plaintext_auth = No


Vim/etc/dovecot/conf.d/10-mail.conf

#

Mail_location = Maildir:~/maildir

# mail_location = Mbox:~/mail:inbox

=/var/mail/%u

# mail_location = mbox:/var/mail/%d/%1n/%n:index=/var/indexes/%d/%1n/%n


Cp/etc/pam.d/passwd/etc/pam.d/dovecot

Vim/etc/pam.d/dovecot

Session include System-auth


Dovecot



Tar zxvf squirrelmail-webmail-1.4.22.tar.gz-c/usr/local/apache/htdocs/winsnet/

cd/usr/local/apache/htdocs/winsnet/

MV Squirrelmail-webmail-1.4.22/mail

CD mail/

./configure

1,2,4,10 to change.

Mkdir-p/var/local/squirrelmail/data

Mkdir-p/var/local/squirrelmail/attach

Chown Daemon-r/var/local/squirrelmail/

Note: Apache not installed with source code should change daemon to Apache

Tar xfj zh_cn-1.4.13-20071220.tar.bz2-c/usr/local/apache/htdocs/winsnet/mail/

Service Apachectl Restart



Vim/var/named/chroot/etc/named.conf

Forwarders {202.96.128.68;};


Vim/usr/lib/sasl2/smtpd.conf

Pwcheck_method:saslauthd

Service SASLAUTHD Start


Vim/etc/postfix/main.cf

Smtpd_sasl_auth_enable = yes

Smtpd_sasl_security_options = noanonymous

Mynetworks = 127.0.0.1

Smtpd_recipient_restrictions = Permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination


Postfix Reload

Telnet 127.0.0.1 25


Linux Podtfix mail Server deployment

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.