sendmail is a mail transfer agent (MTA) used to send emails between computer systems by using simple mail transfer protocol (SMTP) . Sendmail project can be accessed from www.sendmail.org
Install On Ubuntu, Debian, Mint, Kali
发送邮件 tool is provided by different packages on Ubuntu, Debian,Mint, Kali or
黛布 based distributions. In this case, we will install the package named
后缀 .
$ sudo apt install postfix
Install On Fedora, CentOS, RedHat
In 转速 based distributions likeFedora, CentOS, RedHat we will use
后缀 package to install
发送邮件 tool.
$ sudo yum install postfix
sendmail.cf Configuration File
发送邮件 command has different configuration options. We can provide these options interactive command line during
发送邮件 command execution. But we can also set these options in configuration file
/etc/sendmail.cf permanently for all usages.
Sendmail Local Users
发送邮件 command can send mail to the local users. We just need to supply the user name of the local user to the sendmail utility. Then we will provide the mail content in a text or ASCII formation. For example we will set the subject with the
主题:`行如下。
$ sendmail ismail
列出邮件或收件箱
Linux发行版提供 mail
命令,用于列出用户的电子邮件或收件箱。我们可以用 mail
命令,而不提供列出当前登录的用户收件箱或邮件的选项。我们将看到以前发送的邮件将被详细列出和显示。
我们可以看到有关电子邮件的详细信息被列出。
- 日期
- 返回路径
- 交付至
- 收到
- 主题
- 消息ID
相关文章: 如何使用OpenSSL s U客户端来检查和验证HTTPS Web服务器的SSL/TLS?
向Internet发送邮件
我们也可以发送电子邮件给互联网用户或流行的电子邮件提供商。我们将只提供用户的电子邮件地址。请记住,smtp 为了将电子邮件发送到internet,应该正确地进行配置。在这种情况下,我们将发送电子邮件到 [email protected]
$ sendmail [email protected]