空壳邮件

来源:互联网 发布:网站更换域名注意事项 编辑:程序博客网 时间:2024/04/30 01:26

                                            空壳邮件

[root@westos-mail ~]# hostnamectl set-hostname nullmail.example.com   ##更改主机名

[root@nullmail ~]# vim /etc/postfix/main.cf                 ##编辑配置文件 设定邮件转发

 76 myhostname =nullmail.example.com                       ##重新设定更改过的主机名称
 83 mydomain = westos.com                                   ##更改所在主机的域名             
 99 myorigin = $mydomain
116 inet_interfaces = all                                   ##开启权限
164 mydestination =                                         ##去除所有用户 是的作空壳的主机不接收任何邮件
36 relayhost = 172.25.254.103
[root@nullmail ~]# systemctl restart postfix.service        ##重启服务
[root@nullmail ~]# mail root@westos.com                     ##发送邮件 测试
Subject: 空壳邮件
check check check !!!
.
EOT
[root@nullmail ~]# mailq
Mail queue is empty
[root@nullmail ~]#




查看:
[root@westos-mail ~]# mail
Heirloom Mail version 12.5 7/5/10.  Type? for help.
"/var/spool/mail/root": 8 messages 1 new
    1 user@localhost.examp  Sat Apr 8 03:16 1539/117488 "[abrt] full crash rep"
    2 Mail Delivery System  Fri May 19 20:51  76/2474 "Undelivered Mail Return"
    3 root                  Sat May 20 03:38  28/978  "The certificate for www"
    4 westos@westos.com     Sat May 20 21:44  12/336  
    5 root                  Sat May 20 23:28  22/570  "afd"
    6 root                  Sun May 21 03:10  28/978  "The certificate for www"
    7 root                  Sat May 27 22:13  28/978  "The certificate for www"
>N  8 root                  Sat May 27 23:33  21/783  "空壳邮件"
& 8
Message  8:
From root@example.com  Sat May 2723:33:46 2017
Return-Path: <root@example.com>
X-Original-To: root@westos.com
Delivered-To: root@westos.com
Date: Sat, 27 May 2017 23:33:46 -0400
To: root@westos.com
Subject: 空壳邮件
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
From: root@example.com (root)
Status: R

check check check !!!

&

 

原创粉丝点击