基本的に備忘録として使います。 ほとんど更新はありませんのでご了承ください。
postfixのサイトのサイトからたどってソースを頂きます。
今回頂いたのは、postfix-2.5.1.tar.gz です。
postfix:*:10000: postdrop:*:10001:
postfix:*:10000:10000:Postfix owner:/nonexistent:/sbin/nologin
# tar zxvf postfix-2.5.1.tar.gz
# cd postfix-2.5.1 # make # make install
# mkdir -p /etc/skel/Maildir/{new,cur,tmp} # chmod -R 700 /etc/skel/Maildir/
# vi /etc/aliases postfix: root
# newaliases
# vi /etc/postfix/main.cf
#!/bin/bash # # postfix This shell script takes care of starting and stopping # postfix. # # chkconfig: 2345 80 30 # description: Postfix is a Mail Transport Agent, which is the program \ # that moves mail from one machine to another. # processname: postfix # config: /etc/postfix/main.cf # pidfile: /var/run/postfix.pid # Source function library. . /etc/rc.d/init.d/functions # Source networking configuration. [ -f /etc/sysconfig/network ] && . /etc/sysconfig/network # Check that networking is up. [ "${NETWORKING}" = "no" ] && exit 0 RETVAL=0 LOCKFILE=/var/lock/subsys/postfix prog="postfix" start() { # Start echo -n $"Starting $prog: " /usr/sbin/postfix start RETVAL=$? echo [ $RETVAL -eq 0 ] && touch $LOCKFILE return $RETVAL } stop() { # Stop . echo -n $"Shutting down $prog: " /usr/sbin/postfix stop RETVAL=$? echo [ $RETVAL -eq 0 ] && rm -f $LOCKFILE return $RETVAL } status() { # Status echo -n $"Status $prog: " /usr/sbin/postfix status RETVAL=$? return $RETVAL } # See how we were called. case "$1" in start) start ;; stop) stop ;; restart) stop start RETVAL=$? ;; status) status RETVAL=$? ;; *) echo $"Usage: $0 {start|stop|restart|status}" exit 1 esac exit $RETVAL
# chkconfig postfix on # chkconfig --list postfix
# chmod 755 /etc/init.d/postfix # service postfix start # netstat -ln # service postfix stop # netstat -ln # tail /var/log/maillog
アンチウィルスソフトとしてClam AntiVirusを導入します。