Installing PostFix on Linux
Installing PostFix on Linux CentOS4.3
Postfix runs on AIX, BSD, HP-UX, IRIX, LINUX, MacOS X, Solaris, Tru64 UNIX, and other UNIX systems. It requires ANSI C, a POSIX.1 library, and BSD sockets. See below for the gory details of what Postfix expects from the file system. Gory details: the Postfix mail queue requires that (1) the file system can rename a file to a near-by directory without changing the file's inode number, and that (2) mail is safely stored after fsync() of that file (not its parent directory) returns successfully, even when that file is renamed to a near-by directory at some later point in time. Maildir delivery also requires that (3) a file can be hard linked between different near-by directories. Mailbox delivery introduces no additional requirements beyond what is already needed for Postfix queues. The following is a list of major Postfix features. Some features require third-party libraries (examples: LDAP, SQL, TLS). Other features are available only when the necessary operating system support exists and Postfix knows how to use it (examples: IP version 6, connection caching).
How to install of Postfix mail server?
-download postfix
downlad postfix2.4.3.tar.gz to /usr/local/scr
tar xzvf postfix2.4.3.tar.gz
-Install postfix
groupadd postfix
useradd -g postfix postfix
groupadd postdrop
make
make install
#inquiries are all defaults
-configure postfix, plain auth
in /etc/postfix/main.cf
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
default_privs = nobody
myhostname = mail.configureinstallsetup.com
mydomain = configureinstallsetup.com
inet_interface = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 172.16.160.0/24, 127.0.0.0/8
home_mailbox = Maildir/ #for Maildir format
/usr/sbin/postfix check #to check the configuration
-security
in /etc/postfix/main.cf
disable_vrfy_command = yes
smtpd_helo_required = yes
smtpd_sender_restrictions = permit_mynetworks, reject_unknown_sender_domain
smtpd_client_restrictions = permit_mynetworks, check_client_access hash:/etc/postfix/access
in /etc/postfix/access
yahoo.com.tw REJECT
/usr/sbin/postmap hash:/etd/postfix/access
/usr/sbin/postfix check #to check the configuration
reboot
-make user directory
mkdir /home/bobkevin/Maildir
mkdir /home/bobkevin/Maildir/new
mkdir /home/bobkevin/Maildir/cur
mkdir /home/bobkevin/Maildir/tmp
chown -R bobkevin.bobkevin /home/bobkevin/Maildir
chmod -R 700 /home/bobkevin/Maildir
-make skelton directory
mkdir /etc/skel/Maildir
mkdir /etc/skel/Maildir/new
mkdir /etc/skel/Maildir/cur
mkdir /etc/skel/Maildir/tmp
chmod -R 700 /etc/skel/Maildir
-start postfix
in /etc/rc.d/rc.local
/usr/sbin/postfix start
# ps ax –> /usr/libexec/postfix/master
–> qmgr -l -t fifo -u
–> pickup -l -t fifo -u
-online test postfix
at the server
telnet 127.0.0.1 25
-mail forward
make /home/napster/.forward as
~/.Maildir/ #preserve the mail in the server
napster@dummy.com #forward one to this address
napster@dummy.com #forward another to this address
- 287 reads
Recent popular content



















