게시물 223건
   
[RHEL7.4] sendmail 서버가 릴레이 허용 설정
글쓴이 : 더코 날짜 : 2019-02-28 (목) 10:41 조회 : 62
 # 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.
#
# If you want to use AuthInfo with "M:PLAIN LOGIN", make sure to have the
# cyrus-sasl-plain package installed.
#
# By default we allow relaying from localhost...
Connect:localhost.localdomain           RELAY
Connect:localhost                       RELAY
Connect:127.0.0.1                       RELAY
Connect:0.0.0.0                         RELAY
Connect:192.168.20                     RELAY    // C 클래스는 IP 3자리만넣는다.




- 등록후 DB작업

# makemap hash /etc/mail/access < /etc/mail/access

 

- DB작업후 DB에 확인

# strings access.db

이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

miwit.com sir.co.kr DNS Powered by DNSEver.com DNS Powered by DNSEver.com