PostfixThere are many advantages: free, faster, compatible, strong, flexible, and secure. Read the following to learn how to install Postfix and use it as soon as possible.
Install Postfix-2.6.2
Uninstall sendmail before installation.
#/Etc/init. d/sendmail stop
# Rpm-qa | grep sendmail | xargs rpm-e -- nodeps
1. Install
# Groupadd-g 2525 postfix
# Useradd-g postfix-u 2525-s/sbin/nologin-M postfix
# Groupadd-g 2526 postdrop
# Useradd-g postdrop-u 2526-s/bin/false-M postdrop
# Tar zxvf postfix-2.6.2.tar.gz
# Cd postfix 2.6.2
# Make makefiles 'ccargs =-DHAS_MYSQL-I/usr/local/mysql/include/mysql-DUSE_SASL_AUTH-DUSE_CYRUS_SASL-I/usr/local/include/sasl-I/usr/local /BerkeleyDB/include-DUSE_TLS-I/usr/local/ssl/include/openssl ''AUXLIBS =-L/usr/local/mysql/lib/mysql-lmysqlclient-lz-lm -L/usr/local/lib-lsasl2-L/usr/local/BerkeleyDB/lib-L/usr/local/ssl/lib-lssl-lcrypto'
# Make
# Make install
Follow the prompts below to enter the relevant path ([] indicates the default value, "]" indicates the input value)
Install_root: [/]/
Tempdir: [/root/postfix-2.6.2]
Config_directory: [/etc/postfix]
Daemon_directory: [/usr/libexec/postfix]
Command_directory: [/usr/sbin]
Queue_directory: [/var/spool/postfix]
Sendmail_path: [/usr/sbin/sendmail]
Newaliases_path: [/usr/bin/newaliases]
Mailq_path: [/usr/bin/mailq]
Mail_owner: [postfix]
Setgid_group: [postdrop]
Html_directory: [no]
Manpages: [/usr/local/man]
Readme_directory: [no]
Note: All of the above are installed by default, which makes it easier to use;
Generate an alias binary file. If this step is ignored, the postfix efficiency will be extremely low:
# Newaliases
2. Perform some basic configurations, test and start postfix, and send emails.
# Vi/etc/postfix/main. cf
Modify the following configurations
Myhostname = mail.gdc8888.com
Myorigin = gdc8888.com
Mydomain = gdc8888.com
Mydestination = $ myhostname, localhost. $ mydomain, localhost
Mynetworks = 192.168.1.0/24,127.0 .0.0/8
As described in the above article, you can install Postfix for a newbie. How can I try it!
- 11.3.3 basic configuration of the Postfix Service 2)
- 11.3.7 start and stop the Postfix Service
- Postfix-based large-scale email system
- Install CentOS postfix, create rpm, and switch mta
- Configure the system to automatically start postfix upon each startup
- Perfect four steps for configuring Postfix in RHEL 4
- Install Postfix on the mail server