데비안 버스터에 ssmtp 설치

데비안 버스터에 ssmtp 설치

ssmtpDebian 10.0을 설치 하려고 하는데 오류가 발생합니다.

Package ssmtp is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or is only available from another source

그러나 나는 결과 apt search ssmpt도 결과도 얻지 못했습니다.

$ apt-file search ssmtp
monitoring-plugins-basic: /usr/lib/nagios/plugins/check_ssmtp
sosreport: /usr/share/sosreport/sos/plugins/ssmtp.py

데비안 버스터에 ssmtp를 설치하는 방법은 무엇입니까?

답변1

apt install msmtp

ssmtp

패키지가 현재 유지 관리되지 않습니다.

이 패키지는 2019년 3월 19일부터 고아가 되었습니다. msmtp대안으로 사용할 수 있습니다.

데비안 위키: msmtp

msmtp:문서

맨페이지 msmtp

답변2

ssmtp는 현재 유지 관리되지 않지만 다음을 설치하고 구성할 수도 있습니다 msmtp.

Gmail(2단계 로그인 비활성화)의 경우 다음 구성을 사용하세요 /etc/msmtprc.

# Set default values for all following accounts.
defaults
port 587
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt

account gmail
host smtp.gmail.com
from <user>@gmail.com
auth on
user <user>
password <your password>

# Set a default account
account default : gmail

테스트하려면 실행하세요.

echo -e "Subject: msmtp test\nhello test." | msmtp _recipient_address_

잠시 후 수신자의 받은편지함에서 보낸 이메일을 찾을 수 있습니다.

답변3

이는 Debian 10에는 유용하지 않지만ssmtp 데비안 11에서 사용 가능.

관련 정보