"SSMTP"의 두 판 사이의 차이
1번째 줄: | 1번째 줄: | ||
이미 구축된 SMTP서버를 이용하여 메일을 전송 | 이미 구축된 SMTP서버를 이용하여 메일을 전송 | ||
− | == 설치 == | + | ==설치== |
sudo apt install ssmtp | sudo apt install ssmtp | ||
− | == 설정 == | + | ==설정== |
''/etc/ssmtp/ssmtp.conf'' | ''/etc/ssmtp/ssmtp.conf'' | ||
− | === gmail 예시 === | + | ===gmail 예시=== |
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
AuthMethod=LOGIN | AuthMethod=LOGIN | ||
16번째 줄: | 16번째 줄: | ||
AuthPass=password | AuthPass=password | ||
</syntaxhighlight> | </syntaxhighlight> | ||
+ | |||
+ | === 메일 전송 테스트 === | ||
+ | echo 'From: "계정"' | ssmtp 받는메일주소 -v |
2019년 3월 27일 (수) 06:05 판
이미 구축된 SMTP서버를 이용하여 메일을 전송
설치
sudo apt install ssmtp
설정
/etc/ssmtp/ssmtp.conf
gmail 예시
AuthMethod=LOGIN
UseTLS=YES
UseSTARTTLS=YES
mailhub=smtp.gmail.com:587
AuthUser=username@gmail.com
AuthPass=password
메일 전송 테스트
echo 'From: "계정"' | ssmtp 받는메일주소 -v