차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
| postfix_-_sasl_authentification_설정 [2016/08/26 02:55] – [오류 해결] koov | postfix_-_sasl_authentification_설정 [2016/08/26 11:16] (현재) – [참조링크] koov | ||
|---|---|---|---|
| 줄 7: | 줄 7: | ||
| ===== main.cf 내용 수정 ===== | ===== main.cf 내용 수정 ===== | ||
| + | ==== localhost 발송 전용 ==== | ||
| 아래 내용을 / | 아래 내용을 / | ||
| 줄 13: | 줄 14: | ||
| smtpd_sasl_path = smtpd | smtpd_sasl_path = smtpd | ||
| smtpd_sasl_auth_enable = yes | smtpd_sasl_auth_enable = yes | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== 어떤곳에서든 접속해서 어느곳으로나 보내길 원할때 ==== | ||
| + | 아래 설정상 mynetworks가 any이므로 스팸메일이나 무작위 릴레이 서버로 이용될 수 있으므로 | ||
| + | restrictions 설정을 통해 sasl 인증받은 요청에 한해서만 허용하며 나머지는 모두 거부하는 형태로 설정 | ||
| + | |||
| + | <WRAP prewrap> | ||
| + | <code vim / | ||
| + | smtpd_sasl_path = smtpd | ||
| + | smtpd_sasl_auth_enable = yes | ||
| + | |||
| + | smtpd_client_restrictions = permit_sasl_authenticated, | ||
| + | smtpd_relay_restrictions = permit_sasl_authenticated, | ||
| + | |||
| + | mynetworks = 0.0.0.0/0 | ||
| </ | </ | ||
| </ | </ | ||
| 줄 109: | 줄 126: | ||
| ===== 참조링크 ===== | ===== 참조링크 ===== | ||
| * https:// | * https:// | ||
| + | * http:// | ||