차이
문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| tech:postfix [2017/05/29 04:01] – [Postfix 설정] V_L | tech:postfix [2022/12/15 14:23] (현재) – [Mail 테스트] V_L | ||
|---|---|---|---|
| 줄 1: | 줄 1: | ||
| ====== Postfix ====== | ====== Postfix ====== | ||
| - | 메일서버들을 누구나 구축할 순 있지만 화이트 도메인으로 등록되지 않은 도메인 혹은 IP주소는 대부분 스팸메일로 처리된다. 이러한 경우 Gmail이나 아웃룩 등의 외부 [[SMTP]]를 사용해서 메일을 보내면 된다. [[ssmtp]]등도 있지만, 근래의 메일서버는 간단한 설정이 가능하고, | + | 메일서버들을 누구나 구축할 순 있지만 화이트 도메인으로 등록되지 않은 도메인 혹은 IP주소는 대부분 스팸메일로 처리된다. 이러한 경우 Gmail이나 아웃룩 등의 외부 [[SMTP]]를 사용해서 메일을 보내면 된다. [[ssmtp]]등도 있지만, 근래의 메일서버는 간단한 설정이 가능하고, |
| - | + | ||
| - | + | ||
| - | {{INLINETOC}} | + | |
| - | + | ||
| =====설치===== | =====설치===== | ||
| 줄 18: | 줄 13: | ||
| Postfix 메일서버 설치 | Postfix 메일서버 설치 | ||
| - | |||
| {{https:// | {{https:// | ||
| 줄 35: | 줄 29: | ||
| <file bash> | <file bash> | ||
| - | # enable SASL authentication | + | - enable SASL authentication |
| smtp_sasl_auth_enable = yes | smtp_sasl_auth_enable = yes | ||
| - | # disallow methods that allow anonymous authentication. | + | - disallow methods that allow anonymous authentication. |
| smtp_sasl_security_options = noanonymous | smtp_sasl_security_options = noanonymous | ||
| - | # where to find sasl_passwd | + | - where to find sasl_passwd |
| smtp_sasl_password_maps = hash:/ | smtp_sasl_password_maps = hash:/ | ||
| - | # Enable STARTTLS encryption | + | - Enable STARTTLS encryption |
| smtp_use_tls = yes | smtp_use_tls = yes | ||
| - | # where to find CA certificates | + | #where to find CA certificates |
| smtp_tls_CAfile = / | smtp_tls_CAfile = / | ||
| 줄 53: | 줄 47: | ||
| </ | </ | ||
| - | + | * 이름: smtp-mail.outlook.com | |
| - | 이름: smtp-mail.outlook.com | + | |
| - | 포트: 587 | + | |
| - | 암호화 방법: STARTTLS | + | |
| sasl_passwd 파일을 생성하고 이 파일에 gmail 계정과 패스워드를 생성 | sasl_passwd 파일을 생성하고 이 파일에 gmail 계정과 패스워드를 생성 | ||
| 줄 78: | 줄 70: | ||
| sudo / | sudo / | ||
| + | |||
| + | ====outlook==== | ||
| + | IMAP 서버 이름: outlook.office365.com | ||
| + | IMAP 포트: 993 | ||
| + | IMAP 암호화 방법: LS | ||
| + | |||
| + | POP 서버 이름: outlook.office365.com | ||
| + | POP 포트: 995 | ||
| + | POP 암호화 방법: LS | ||
| + | |||
| + | SMTP 서버 이름: smtp.office365.com | ||
| + | SMTP 포트: 587 | ||
| + | SMTP 암호화 방법: STARTTLS | ||
| + | |||
| =====Mail 테스트===== | =====Mail 테스트===== | ||
| [email protected]에 메일을 보낼주소를 입력 | [email protected]에 메일을 보낼주소를 입력 | ||
| 줄 86: | 줄 92: | ||
| [[http:// | [[http:// | ||
| , | , | ||
| - | [[http:// | + | [[http:// |
| + | |||
| + | 메일이 오면 /var/mail 에 아이디 파일명으로 저장된다. | ||
| + | |||
| + | 메일 로그 확인 | ||
| + | tail -f / | ||
| + | |||
| + | |||
| + | =====메일큐확인===== | ||
| + | 1. 메일 큐 전체 비우기 | ||
| + | |||
| + | # postfix flush | ||
| + | |||
| + | |||
| + | 2. 현재 쌓인 메일 확인 | ||
| + | |||
| + | # mailq | ||
| + | |||
| + | |||
| + | 3. 메일큐 전체 삭제 | ||
| + | |||
| + | # postsuper -d ALL | ||
| + | |||
| + | |||
| + | 4. 메일큐에서 deferred 된 메일만 삭제 | ||
| - | {{tag> | + | # postsuper -d ALL deferred |