Postfix 셋팅하기

imap/pop3 서비스를 쓰지 않는다면, sendmail보다는 postfix를 쓰는게 좋다.

게다가 요즘 대부분 gmail을 베이스로 쓰니..  간단한 셋팅에 다양한 매쉬업들이 가능하다.

(물론 centos기준)

yum remove sendmail
yum install postfix

/etc/postfix/main.cf 수정
myhostname = test.com
mydomain = test.com
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 127.0.0.0/8


도메인 별 alias 설정은 ··· http%3A%2F%2Fwww.postfix.org%2Fvirtual_readme.html 참조
스팸체크 및 한글설명서는 ··· http%3A%2F%2Fwiki.kldp.org%2Fwiki.php%2Fpostfix-sasl-howto 참조

외부로 smtp 서버를 열었을 경우 스팸들의 습격을 받을수도 있으니..
malware urls를 참고 해서 /etc에 다음과 같은 스크립트를 만든다
vi /etc/fetch.postfixmalware.sh

#!/bin/bash
# Script to update malware urls
/usr/bin/wget -O - http://www.malware.com.br/cgi/submit?action=list_postfix > /etc/postfix/mbl-body-deny
/usr/sbin/postmap /etc/postfix/mbl-body-deny
/etc/init.d/postfix reload

crontab에 다음과 같은 구문을 추가하면 보통의 스팸들은 막을수 있다
40 4 * * * /etc/fetch.postfixmalware.sh >/dev/null 2>&1

더해서 스팸을 막는 다양한 방법들은 다음 링크 참조 : ··· http%3A%2F%2Fwww.howtoforge.com%2Fvirtual_postfix_antispam

크리에이티브 커먼즈 라이센스
Creative Commons License
Writer profile
test

Posted by 엽기민원

2009/11/25 12:25 2009/11/25 12:25
Response
No Trackback , No Comment
RSS :
http://yupmin.com/rss/response/171

Trackback URL : http://yupmin.com/trackback/171

Leave a comment
[로그인][오픈아이디란?]
« Previous : 1 : ... 6 : 7 : 8 : 9 : 10 : 11 : 12 : 13 : 14 : ... 109 : Next »

블로그 이미지

엽기민원의 옴팡진 공간

- 엽기민원

Notices

Archives

Calendar

«   2010/09   »
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Site Stats

Total hits:
72360
Today:
122
Yesterday:
291