삽질은 나의 힘 | 'specified user' 태그의 글 목록
삽질은 나의 힘 위치로그  |  태그  |  미디어로그  |  방명록
icon specified user 에 해당하는 글1 개
2014.11.03   PAM을 이용한 SMTP-auth 특정사용자 제한(disable SMTP-auth to specified user with PAM)


icon PAM을 이용한 SMTP-auth 특정사용자 제한(disable SMTP-auth to specified user with PAM)
Server/Linux | 2014. 11. 3. 20:50



참고(reference) : http://www.linux-pam.org/Linux-PAM-html/sag-pam_listfile.html





< 메일 수신을 되게 하면서 발신만 안되게 하고 싶은 경우 ( if specified users only want to receive a mail -> block a heavy mail-sender) >





- 파일 수정 (edit  /etc/alternatives/mta-pam)

#%PAM-1.0

auth      required      pam_listfile.so onerr=fail item=user sense=deny file=/etc/smauth_deny_user  // 한줄( one line )

auth       include      system-auth

account    include      system-auth





- 적용할 사용자파일 생성 ( create a file : /etc/smauth_deny_user )


ex) 

user1     // username

user2

user4





- pam 방식 인증여부 확인 ( confirm PAM  auth-mech )


ex)  if use saslauthd,

/usr/sbin/saslauthd -m /var/run/saslauthd -a pam









'Server > Linux' 카테고리의 다른 글

process memory 특정 주소 dump  (0) 2012.04.18
flush-[major]:[minor] process  (0) 2012.01.12
DSN : Return receipt  (0) 2009.12.07

arrow 트랙백 | 댓글



[PREV] [1] [NEXT]
관리자  |   글쓰기
BLOG main image
분류 전체보기 (27)
Server (4)
Network (3)
Packet Analysis (3)
Security (3)
TroubleShooting (8)
Algorithm (1)
ETC (2)
None (1)
Total :
Today :
Yesterday :
rss
위치로그 : 태그 : 방명록 : 관리자
minSoong-e's Blog is powered by Daum / Designed by plyfly.net