13
Apr

solaris 9에서 sendmail access설정하기

   Posted by: poss   in ETC(기타)

solaris9의 sendmail의 기본 설정에서는 access화일에 스패머를 등록해도 동작하지 않는다.
다음과 같은 작업을 해줘서 받는 메일을 거부할 수 있도록 했다.

먼저,

cp /usr/lib/mail/cf/main.mc new.mc

new.mc 에 다음의 내용을 추가한다.
divert(0)dnl
VERSIONID(`@(#)main.mc 1.5 (Sun) 08/10/00′)
OSTYPE(`solaris8′)dnl
DOMAIN(`solaris-generic’)dnl
define(`DATABASE_MAP_TYPE’, `dbm’)
FEATURE(`access_db’)

MAILER(`local’)dnl
MAILER(`smtp’)dnl

위 화일로 cf화일을 생성한다.
/usr/ccs/bin/m4 ../m4/cf.m4 new.mc > new.cf

생성한 new.cf화일을
/etc/mail/sendmail.cf로 대체한다. 물론, 기존 화일은 백업을 해두는 것이 좋겠지.

마지막으로
/etc/mail/access화일을 편집한다

xxx@xxx.com REJECT
이처럼 하고

makemap dbm /etc/mail/access

This entry was posted on 화요일, 4월 13th, 2004 at 12:55 오전 and is filed under ETC(기타). You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a reply

Name (*)
Mail (will not be published) (*)
URI
Comment
*

Switch to our mobile site