删除或更改命令密件抄送设置

删除或更改命令密件抄送设置

at当我在 Debian 服务器上运行命令时,它正确地将电子邮件发送给我的用户,我已将其转发到我的 Gmail 地址,但它还添加了密件抄送drew@sokar(my.username@hostname)。如何删除密件抄送?我不需要两次电子邮件(它会生成传递失败的响应)。请注意,我正在寻找一种永久的解决方案来删除 BCC,而不是每次运行时都必须发出的临时解决方案at

drew@sokar:~$ at now
warning: commands will be executed using /bin/sh
at> echo testing
at> <EOT>

将发送以下电子邮件

Bcc: drew@sokar
Return-Path: <[email protected]>
Received: from sokar (XXX-XX-XXX-XXX-XXX.XXXXXX.XXX.XX.com. [XX.XXX.XXX.XXX])
    by smtp.gmail.com with ESMTPSA id xxxxxxxxxxxxxxx.x.2016.08.18.19.12.44
    for <drew@sokar>
    (version=TLS1 cipher=AES128-SHA bits=128/128);
    Thu, 18 Aug 2016 19:12:45 -0700 (PDT)
Message-ID: <[email protected]>
Received: by sokar (sSMTP sendmail emulation); Thu, 18 Aug 2016 22:12:43 -0400
From: "Drew" <[email protected]>
Date: Thu, 18 Aug 2016 22:12:43 -0400
Subject: Output from your job       13
To: drew

testing

/etc/别名

drew@sokar:~$ cat /etc/aliases
# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: drew
www: root
ftp: root
abuse: root
noc: root
security: root
root: drew

/etc/mail.rc

drew@sokar:~$ cat /etc/mail.rc
set ask askcc append dot save crt
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via Delivered-To

相关内容