게다가 요즘 대부분 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 reloadcrontab에 다음과 같은 구문을 추가하면 보통의 스팸들은 막을수 있다
40 4 * * * /etc/fetch.postfixmalware.sh >/dev/null 2>&1더해서 스팸을 막는 다양한 방법들은 다음 링크 참조 : ··· http%3A%2F%2Fwww.howtoforge.com%2Fvirtual_postfix_antispam
Posted by 엽기민원


