Final Postfix dovcot Server configure & test
[root@server1 ~]# service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix: [FAILED]
Starting postfix: [ OK ]
[root@server1 Desktop]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid 3261) is running...
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix: [FAILED]
Starting postfix: [ OK ]
[root@server1 ~]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid 3261) is running...
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
yum install postfix dovecot squirrelmail -y
Loaded plugins: refresh-packagekit, security
other | 1.3 kB 00:00 ...
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package dovecot.x86_64 1:2.0.9-2.el6_1.1 will be installed
---> Package postfix.x86_64 2:2.6.6-2.2.el6_1 will be installed
---> Package squirrelmail.noarch 0:1.4.22-3.el6 will be installed
--> Processing Dependency: php for package: squirrelmail-1.4.22-3.el6.noarch
--> Running transaction check
---> Package php.x86_64 0:5.3.3-3.el6_2.8 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================
Installing:
dovecot x86_64 1:2.0.9-2.el6_1.1 base 1.9 M
postfix x86_64 2:2.6.6-2.2.el6_1 base 2.0 M
squirrelmail noarch 1.4.22-3.el6 base 4.1 M
Installing for dependencies:
php x86_64 5.3.3-3.el6_2.8 base 1.1 M
Transaction Summary
=============================================================================================================================
Install 4 Package(s)
Total download size: 9.2 M
Installed size: 39 M
Downloading Packages:
-----------------------------------------------------------------------------------------------------------------------------
Total 34 MB/s | 9.2 MB 00:00
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 2:postfix-2.6.6-2.2.el6_1.x86_64 1/4
Installing : php-5.3.3-3.el6_2.8.x86_64 2/4
Installing : squirrelmail-1.4.22-3.el6.noarch 3/4
Installing : 1:dovecot-2.0.9-2.el6_1.1.x86_64 4/4
Verifying : squirrelmail-1.4.22-3.el6.noarch 1/4
Verifying : 1:dovecot-2.0.9-2.el6_1.1.x86_64 2/4
Verifying : php-5.3.3-3.el6_2.8.x86_64 3/4
Verifying : 2:postfix-2.6.6-2.2.el6_1.x86_64 4/4
Installed:
dovecot.x86_64 1:2.0.9-2.el6_1.1 postfix.x86_64 2:2.6.6-2.2.el6_1 squirrelmail.noarch 0:1.4.22-3.el6
Dependency Installed:
php.x86_64 0:5.3.3-3.el6_2.8
Complete!
############################### STEP 02 ##################################
[root@server1 ~]# service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix: [FAILED]
Starting postfix: [ OK ]
[root@server1 ~]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid 3261) is running...
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
service postfix status;service postfix restart;chkconfig postfix on;
master is stopped
Shutting down postfix: [FAILED]
Starting postfix: [ OK ]
[root@server1 ~]# service postfix status;service postfix restart;chkconfig postfix on;
master (pid 3261) is running...
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
################################## STEP 03 #####################################
[root@server1 ~]# vim /etc/postfix/main.cf
Change
From
75 #myhostname = host.domain.tld
83 #mydomain = domain.tld
99 #myorigin = $mydomain
113 #inet_interfaces = all
116 inet_interfaces = localhost
164 mydestination = $myhostname, localhost.$mydomain, localhost
165 #mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 #home_mailbox = Maildir/
To
75 myhostname = mail.example.com
83 mydomain = example.com
99 myorigin = $mydomain
113 inet_interfaces = all
116 #inet_interfaces = localhost
164 #mydestination = $myhostname, localhost.$mydomain, localhost
165 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
419 home_mailbox = Maildir/
:wq save and quit
[root@server1 ~]# service postfix restart;chkconfig postfix on;service postfix status;
Shutting down postfix: [ OK ]
Starting postfix: [ OK ]
master (pid 3604) is running...
Read more