Unix/CentOS

CentOS 메일 설정

ForceCore 2006. 10. 25. 07:29

일반유저 (ldap 유저가 아닌 로컬 유저)가 메일을 보낼 수 없는 것이 확인되었다.

어차피 메일서버는 아니지만...

 

/etc/mail/access 에다가 도메인을 추가함. 자기 자신이라고

localhost.localdomain이 들어있는데 -_-...

xxx.yyy.ac.kr 을 추가 했다.

 

그 디렉토리 내에 MakeFile이 있어서 쉽더군...

make access.db 라고 치니까 db가 갱신되었다 (앗싸)

 

그래도 안 되더군. 컨닝교재...?

http://www.michael-and-mary.net/?q=node/1261

 

호.. 좋은 것이 낚인 듯. 후후후후후ㅜ.............

시간들 들여 따라 해볼 교재인것 같다.

 

http://www.superuser.co.kr/home/lecture/index.php?cateNo=&secNo=&theNo=&leccode=10471

 

실제로는 아래 세 작업만 해주니, CentOS에 터미널로 접속해서

mutt로 메일을 보내기가 되기 시작한다.

/etc/hostname 에 xxx.yyy.ac.kr

/etc/hosts에 xxx만 있는 것을 xxx.yyy.ac.kr도 추가

/etc/mail/local-host-names 에도 xxx, xxx.yyy.ac.kr추가

 

하지만 여전히 받기가 안 된다.

sendmail.mc를 에디트 해서

dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

굵은 글씨 부분에서 Addr=127.0.0.1을 없애고, make sendmail.cf를 했다. 이제 받기도 된다.

(yum install sendmail-cf를 해야 그게 가능하다.)

 

솔라리스에서는 메일이 "그냥" 되는 기능인데 음... -0-a

 

이번에는... -_-;;

일반 유저도 메일을 보낼 수 있게 되어버렸다;;;