리눅스 분류
외국으로 메일이 보내고 받기가 안됩니다;
작성자 정보
- 김대환 작성
- 작성일
컨텐츠 정보
- 2,332 조회
- 2 댓글
- 0 추천
- 목록
본문
아마도 sendmail.cf의 설정상태를 재확인해 볼 필요가 있을것 같습니다.
stat=Local configuration error이라고 메시지가 뜬다면 문제가 있습니다.
*** /etc/mail/sendmail.cf 재구성 방법 소개***
가. sendmail.mc를 열어 아래와 같이 두군데는 주석을 풀고 한군데는 주석을 처리합니다.
#vi /etc/mail/sendmail.mc
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
.
.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
실제 사용할 sendmail.cf를 생성합니다.
#m4 /etc/mail/sendmil.mc > /etc/mail/sendmail.cf
나. RELAY를 설정하기 위한 텍스트파일을 생성합니다.
[root@hv mail]# cat /etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
mail RELAY
mail.mydomain.co.kr RELAY
mydomain.co.kr RELAY
10.10. RELAY
RELAY설정을 위한 데이터베이스 파일을 생성합니다.
#makemap hash /etc/mail/access.db < /etc/mail/access
위에서 10.10.의 의미는 10.10.0.0네트웍을 사용중인 모든 클라이언트가 본 메일서버를 활용해 편지를 보낼 수 있다는 뜻입니다.
stat=Local configuration error이라고 메시지가 뜬다면 문제가 있습니다.
*** /etc/mail/sendmail.cf 재구성 방법 소개***
가. sendmail.mc를 열어 아래와 같이 두군데는 주석을 풀고 한군데는 주석을 처리합니다.
#vi /etc/mail/sendmail.mc
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')
.
.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
실제 사용할 sendmail.cf를 생성합니다.
#m4 /etc/mail/sendmil.mc > /etc/mail/sendmail.cf
나. RELAY를 설정하기 위한 텍스트파일을 생성합니다.
[root@hv mail]# cat /etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
mail RELAY
mail.mydomain.co.kr RELAY
mydomain.co.kr RELAY
10.10. RELAY
RELAY설정을 위한 데이터베이스 파일을 생성합니다.
#makemap hash /etc/mail/access.db < /etc/mail/access
위에서 10.10.의 의미는 10.10.0.0네트웍을 사용중인 모든 클라이언트가 본 메일서버를 활용해 편지를 보낼 수 있다는 뜻입니다.
관련자료
-
이전
-
다음
댓글 2
김경태님의 댓글
- 김경태
- 작성일
답변주셔서 정말 감사드립니다.
한가지 질문 좀 더 드릴께요 ^^;;;
10.10.0.0 은 현 네트웍을 사용중인 모든 클라이언트를 위미한다고 하셨는데
10.10. 이렇게 똑같이 설정을 하는건지...저희 네트웍 실정에 맞게 IP값을
다르게 넣어야 하는지 좀 알려주셧음 합니다 ^^;; 부탁 좀 드릴께요~~
다시한번 감사드립니다~
한가지 질문 좀 더 드릴께요 ^^;;;
10.10.0.0 은 현 네트웍을 사용중인 모든 클라이언트를 위미한다고 하셨는데
10.10. 이렇게 똑같이 설정을 하는건지...저희 네트웍 실정에 맞게 IP값을
다르게 넣어야 하는지 좀 알려주셧음 합니다 ^^;; 부탁 좀 드릴께요~~
다시한번 감사드립니다~
김대환님의 댓글
- 김대환
- 작성일
만일 192.168.1.0, 192.168.2.0, 10.10.10.0 이란 네트워크를 사용한다면
access 파일은 다음과 같이 만들어져야 합니다.
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
mail RELAY
mail.mydomain.co.kr RELAY
mydomain.co.kr RELAY
192.168.1. RELAY
192.168.2. RELAY
10.10.10. RELAY
-------------------------------------------------------------------
위와 같이 릴레이를 허용할(내 sendmail데몬을 이용하여 편지를 보낼) 클라이언트의 IP주소를 등록하여 주시면 됩니다.
access 파일은 다음과 같이 만들어져야 합니다.
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain RELAY
localhost RELAY
127.0.0.1 RELAY
mail RELAY
mail.mydomain.co.kr RELAY
mydomain.co.kr RELAY
192.168.1. RELAY
192.168.2. RELAY
10.10.10. RELAY
-------------------------------------------------------------------
위와 같이 릴레이를 허용할(내 sendmail데몬을 이용하여 편지를 보낼) 클라이언트의 IP주소를 등록하여 주시면 됩니다.