【Linux】/etc/mail.rc 配置文件(原)/ 腾讯企业邮箱配置文件

这篇博客介绍了如何在CentOS 6.5上使用mailx通过SMTPSSL方式发送邮件,特别是针对腾讯企业邮箱的配置。文章中提到了对/etc/mail.rc配置文件的理解,并提供了腾讯企业邮箱所需的SSL证书文件获取链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

原配置说明文档

===========

# This is the configuration file for Heirloom mailx (formerly
# known under the name "nail".
# See mailx(1) for further options.
# This file is not overwritten when 'make install' is run in
# the mailx build process again.

# Sccsid @(#)nail.rc	2.11 (gritter) 8/2/08

# Do not forward to mbox by default since this is likely to be
# irritating for most users today.
set hold

# Append rather than prepend when writing to mbox automatically.
# This has no effect unless 'hold' is unset again.
set append

# Ask for a message subject.
set ask

# Assume a CRT-like terminal and invoke a pager.
set crt

# Messages may be terminated by a dot.
set dot

# Do not remove empty mail folders in the spool directory.
# This may be relevant for privacy since other users could
# otherwise create them with different permissions.
set keep

# Do not remove empty private mail folders.
set emptybox

# Quote the original message in replies by "> " as usual on the Internet.
set indentprefix="> "

# Automatically quote the text of the message that is responded to.
set quote

# Outgoing messages are sent in ISO-8859-1 if all their characters are
# representable in it, otherwise in UTF-8.
set sendcharsets=iso-8859-1,utf-8

# Display sender's real names in header summaries.
set showname

# Display the recipients of messages sent by the user himself in
# header summaries.
set showto

# Automatically check for new messages at each prompt, but avoid polling
# of IMAP servers or maildir folders.
set newmail=nopoll

# If threaded mode is activated, automatically collapse thread.
set autocollapse

# Mark messages that have been answered.
set markanswered

# Hide some header fields which are uninteresting for most human readers.
ignore received in-reply-to message-id references
ignore mime-version content-transfer-encoding

# Only include selected header fields when forwarding messages.
fwdretain subject date from to

# For Linux and BSD, this should be set.
set bsdcompat

《CentOS6.5通过mailx使用外部SMTPSSL的方式发送邮件》

https://zhangguoli.cn/centos-sends-mail-in-the-way-mailx-uses-external-smtp-ssl.html

看了一下mail.rc 的配置有几个点不太明白是具体是配置了什么,找了一下原配置文件说明,但是还是不能很好理解。

emmmm,能用就行了。

========

腾讯企业邮箱配置文件

##exmail:
##邮箱地址
set from=ADDRESS
##smtp服务器
set smtp="smtps://smtp.exmail.qq.com:465"
##用户名
set smtp-auth-user=ADDRESS
##密码
set smtp-auth-password=PASSWORD
set smtp-auth=login
##使用SSL的方式发送邮件
set smtp-user-starttls
set ssl-verify=ignore
#ssl.crt地址
set nss-config-dir=/etc/mail.rc_ssl.crt
P.S.:需配置SSL证书,这里将配置文件夹放在了

/etc/mail.rc_ssl.crt

文件内容为 *.db

可以从下面链接获取:

https://dn-zhangguoli.qbox.me/mail.rc_ssl.crt.zip

From:https://zhangguoli.cn/centos-sends-mail-in-the-way-mailx-uses-external-smtp-ssl.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值