sendmail.mc 파일에서
DAEMON_OPTIONS(Port=smtp,Addr=127.0.0.1, Name=MTA')
요부분을
DAEMON_OPTIONS(Port=smtp,Addr=0.0.0.0, Name=MTA’) 으로 처리한다
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
메일 보낼 때 사용자 인증 처리
sendmail.cf 파일에서
#O AuthMechanisms=EXTERNAL GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
다음 처럼 처리
O AuthMechanisms=DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
access 파일에서
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
192.168.0.0 RELAY
domain.com RELAY
makemap hash /etc/mail/access < /etc/mail/access
[root@mail mail]# cat local-host-names# local-host-names – include all aliases for your machine here.
rootman.co.kr
dvc.dongeui.ac.kr
dvc.sarang.net
rootman.org
위의 설정 방법은 아주 간단하다. 그냥 메일 수신자에 해당하는 도메인을 한줄에 추가하면 된다.
주의할 것은 local-host-names 파일을 수정한 후에는 반드시 sendmail을 restart 해야지 수정 사항이 적용된다.
설치한 메일 서버 동작확인
[root@mail mail]# telnet 192.168.0.1 25Trying 192.168.0.1…
Connected to cattoeic.com (192.168.0.1).
Escape character is ‘^]’.
220 cattoeic.com ESMTP Sendmail 8.13.1/8.13.1; Tue, 25 Jan 2005 17:29:55 +0900
Mail from : indus96@cattoeic.com
250 2.1.0 indus96@cattoeic.com… Sender ok
rcpt to : indus96@csniper.com
250 2.1.5 indus96@csniper.com… Recipient ok
data
354 Enter mail, end with “.” on a line by itself
hello
my name is park
.
250 2.0.0 j0P8TtRl004337 Message accepted for delivery
quit
221 2.0.0 mail.local.com closing connection
Connection closed by foreign host.
4. DB작업후 DB에 spammer등록확인
[root@mail mail]# strings access.db | grep domaindomain.com
does anyone knows if there is any other information about this subject in other languages?