Showing posts with label postfix. Show all posts
Showing posts with label postfix. Show all posts
2012/07/16
Postfix 綁上多個IP
vi /etc/postfix/main.cf
inet_interfaces = $myhostname, localhost
vi /etc/postfix/master.cf
#IP前面不能有任何空白
192.168.1.6:25 inet n - n - - smtpd -o content_filter=
192.168.1.7:25 inet n - n - - smtpd -o content_filter=
192.168.1.8:25 inet n - n - - smtpd -o content_filter=
#IP前面不能有任何空白
service postfix reload
netstat -tnlp
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 7008/master
tcp 0 0 192.168.1.6:25 0.0.0.0:* LISTEN 7008/master
tcp 0 0 192.168.1.7:25 0.0.0.0:* LISTEN 7008/master
tcp 0 0 192.168.1.8:25 0.0.0.0:* LISTEN 7008/master
Postfix install
yum -y update
yum -y install wget gcc make man db*-devel telnet
wget ftp://ftp.porcupine.org/mirrors/project-history/postfix/experimental/postfix-2.9-20110130.tar.gz
mv postfix-2.9-20110130.tar.gz /tmp
cd /tmp/
tar -xf postfix-2.9-20110130.tar.gz
cd postfix-2.9-20110130
chmod 755 postfix-install
make
make install
groupadd postfix -g 1000
groupadd postdrop
useradd postfix -u 1000 -g postfix -G postdrop
postalias hash:/etc/aliases
#這個aliases檔案有可能出現在/etc/postfix/aliases內
開機啟動
vi /etc/rc.d/rc.local
加上 /usr/sbin/postfix start
2012/04/09
Spamassassin
vi /etc/mail/spamassassin/local.cf
# These values can be overridden by editing ~/.spamassassin/user_prefs.cf
# (see spamassassin(1) for details)
# These should be safe assumptions and allow for simple visual sifting
# without risking lost emails.
required_hits 5
report_safe 0
rewrite_header Subject [SPAM]
whitelist_from *@watchdata.com
whitelist_from *@watchdata.com.cn
#whitelist_from *@gmail.com
header LOCAL_RCVD From =~ /(119.255.1.60|watchdata|.watchdata\.com.cn)/(mail.domain.com|ip address)/
describe LOCAL_RCVD Received from local machine
score LOCAL_RCVD -1000
service spamassassin restart
service postfix restart
2012/01/18
Client host [209.85.214.172] blocked using bl.spamcop.net; Blocked
vi /etc/postfix/main.cf:
/
reject_rbl_client
remove list
/
reject_rbl_client
remove list
2011/10/26
2011/10/25
Linux add user userdel
useradd -s /sbin/nologin username
passwd username
userdel -r username
find / -user username
https://sites.google.com/site/hcsvieken/fedora-xue-xi/usermod
2011/10/06
Subscribe to:
Posts (Atom)