ftp://ftp.isu.edu.tw/Linux/CentOS/5/os/i386/CentOS/dovecot-1.0-1.2.rc15.el5.i386.rpm
[dovecot rpm]
#vim /etc/dovecot.conf
----------------------------------------
17 #protocols = imap imaps pop3 pop3s
18 protocols = imap pop3
----------------------------------------------
[root@richard opt]# service dovecot restart
Starting Dovecot Imap: [ OK ]
[root@richard opt]# telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.
^]
telnet> q
Connection closed.
[root@richard opt]# telnet 127.0.0.1 143
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
* OK Dovecot ready.
^]
telnet> q
Connection closed.
[root@richard opt]# telnet 192.168.20.189 143
Trying 192.168.20.189...
Connected to localhost (192.168.20.189).
Escape character is '^]'.
* OK Dovecot ready.
^]
telnet> q
Connection closed.
[root@richard opt]# telnet 192.168.20.189 110
Trying 192.168.20.189...
Connected to localhost (192.168.20.189).
Escape character is '^]'.
+OK Dovecot ready.
^]
telnet> q
Connection closed.
# vim /etc/postfix/main.cf [Client]
62 # INTERNET HOST AND DOMAIN NAMES
63 #
64 # The myhostname parameter specifies the internet hostname of this
65 # mail system. The default is to use the fully-qualified domain name
66 # from gethostname(). $myhostname is used as a default value for many
67 # other configuration parameters.
68 #
69 #myhostname = host.domain.tld
70 #myhostname = virtual.domain.tld
71 myhostname = 192.168.20.xx
72 # The mydomain parameter specifies the local internet domain name.
73 # The default is to use $myhostname minus the first component.
74 # $mydomain is used as a default value for many other configuration
75 # parameters.
76 #
77 #mydomain = domain.tld
78 mydomain = rhce.com.tw
79 # SENDING MAIL
80 #
81 # The myorigin parameter specifies the domain that locally-posted
82 # mail appears to come from. The default is to append $myhostname,
83 # which is fine for small sites. If you run a domain with multiple
84 # machines, you should (1) change this to $mydomain and (2) set up
85 # a domain-wide alias database that aliases each user to
86 # user@that.users.mailhost.
87 #
88 # For the sake of consistency between sender and recipient addresses,
89 # myorigin also specifies the default domain name that is appended
90 # to recipient addresses that have no @domain part.
91 #
92 myorigin = $myhostname
93 #myorigin = $mydomain
95 # RECEIVING MAIL
96
97 # The inet_interfaces parameter specifies the network interface
98 # addresses that this mail system receives mail on. By default,
99 # the software claims all active interfaces on the machine. The
100 # parameter also controls delivery of mail to user@[ip.address].
101 #
102 # See also the proxy_interfaces parameter, for network addresses that
103 # are forwarded to us via a proxy or network address translator.
104 #
105 # Note: you need to stop/start Postfix when this parameter changes.
106 #
107 #inet_interfaces = all
108 #inet_interfaces = $myhostname
109 #inet_interfaces = $myhostname, localhost
110 inet_interfaces = all
152 # See also below, section "REJECTING MAIL FOR UNKNOWN LOCAL USERS".
153 #
154 mydestination = $myhostname, localhost
155 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
156 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
157 # mail.$mydomain, www.$mydomain, ftp.$mydomain
236 # Specify "mynetworks_style = host" when Postfix should "trust"
237 # only the local machine.
238 #
239 #mynetworks_style = class
240 mynetworks_style = subnet
241 #mynetworks_style = host
254 #mynetworks = 168.100.xx.0/28, 127.0.0.0/8
255 mynetworks = 127.0.0.0/8, 192.168.20.0/24
256 #mynetworks = $config_directory/mynetworks
257 #mynetworks = hash:/etc/postfix/network_table