比较来自世界各地的卖家的域名和 IT 服务价格

msmtp 和 OVH 邮件

当用户在服务器上进行身份验证时,我想发送电子邮件 Debian 9. 我使用邮件服务器 OVH. 我成立了 msmtp 所以:

account myaccount
tls_starttls off
logfile ~/.msmtp.log

host ssl0.ovh.net
port 465
from user@mydomain.com
auth on
user user@mydomain.com
password XXXXXXXXXXXXXXXX

account default : myaccount

我试图发送一封信:

echo "Hello this is sending email using msmtp" | msmtp otheruser@mydomain.com

但它没有出来,没有什么发生的。 团队也是如此:

msmtp --serverinfo --tls --tls-certcheck=off --host ssl0.ovh.net --port 465

改变 1

我试过了团队提出的 @Anfi 在评论中,并得到:

-bash: subject:: command not found
ignoring system configuration file /etc/msmtprc: No such file or directory
loaded user configuration file /home/myuser/.msmtprc
falling back to default account
using account default from /home/myuser/.msmtprc
host = ssl0.ovh.net
port = 465
proxy host = (not set)
proxy port = 0
timeout = off
protocol = smtp
domain = localhost
auth = choose
user = user@mydomain.com
password = *
passwordeval = (not set)
ntlmdomain = (not set)
tls = off
tls_starttls = off
tls_trust_file = (not set)
tls_crl_file = (not set)
tls_fingerprint = (not set)
tls_key_file = (not set)
tls_cert_file = (not set)
tls_certcheck = on
tls_min_dh_prime_bits = (not set)
tls_priorities = (not set)
auto_from = off
maildomain = (not set)
from = user@mydomain.com
add_missing_from_header = on
add_missing_date_header = on
remove_bcc_headers = on
dsn_notify = (not set)
dsn_return = (not set)
logfile = /home/myuser/.msmtp.log
syslog = (not set)
aliases = (not set)
reading recipients from the command line
msmtp: the server sent an empty reply
msmtp: could not send mail (account default from /home/myuser/.msmtprc)
已邀请:

二哥

赞同来自:

好,我明白了。 我需要将它添加到文件中 conf:

tls on
tls_certcheck off

邮件工作,但我得到了

<-- 250-AUTH LOGIN PLAIN

不确定它是否真的安全,那么

要回复问题请先登录注册