Linux--RH254---unit4 postfix电子邮件

linux实战(七)----发送邮件通知----实例运用 我们在前面几章已经学习了一些常用的用法,有时候我们需要在监控出现异常情况时给管理员发送邮件。 本章学习  在shell脚本中 发送邮件通知。 我们在实战六的 示例代码上 增加发送邮件的功能   实现每次检查完目录空间备份后  就发送邮件。 实战六脚本代码回顾 checkSpace.sh如下: 检查目录的占用磁盘 并把结果文件备份 #!/bin/bash 阅读详情
unit 4 postfix

准备:

重置虚拟机,配置虚拟机网络及yum源
发送端

yum install bind -y             ##安装bind


systemctl start named           ##启动bind
systemctl stop firewalld        ##关闭防火墙
systemctl disable firewalld     ##开机不自启
vim /etc/named.conf             ##编辑named主配置文件
 10 options {
 11 //      listen-on port 53 { 127.0.0.1; };
 12 //      listen-on-v6 port 53 { ::1; };
 13         directory       "/var/named";
 14         dump-file       "/var/named/data/cache_dump.db";
 15         statistics-file "/var/named/data/named_stats.txt";
 16         memstatistics-file "/var/named/data/named_mem_stats.txt";
 17 //      allow-query     { localhost; };
 31         dnssec-enable yes;
 32         dnssec-validation no;

 33         dnssec-lookaside auto;


vim /etc/named.rfc1912.zones    ##编辑配置文件
 25 zone "westos.com" IN {
 26         type master;
 27         file "westos.com.zone";
 28         allow-update { none; };
 29 };
 30
 31 zone "qq.com" IN {
 32         type master;
 33         file "qq.com.zone";
 34         allow-update { none; };

 35 };


cd /var/named/
cp -p named.localhost westos.com.zone
vim westos.com.zone             ##编辑westos.com.zone
$TTL 1D
@       IN SOA  dns.westos.com. root.westos.com. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
                NS      dns.westos.com.
dns             A       172.25.254.131

westos.com.     MX 1    172.25.254.131.


cp -p westos.com.zone qq.com.zone
vim qq.com.zone                 ##编辑qq.com.zone
$TTL 1D
@       IN SOA  dns.qq.com. root.qq.com. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
                NS      dns.qq.com.
dns             A       172.25.254.131

qq.com.         MX 1    172.25.254.231.


systemctl restart named       ##重启named


测试(发送端和接受端)
vim /etc/resolv.conf          ##dns解析
nameserver 172.25.254.131
dig -t mx westos.com

dig -t mx qq.com



1.基本信息
postfix提供smtp协议用来投递邮件
默认端口25
/var/log/maillog         ##服务日志
默认情况下邮件端口只在127.0.0.*上开启

2.配置
发送端:
vim /etc/postfix/main.cf                     ##编辑配置文件
 76 myhostname = westos-mail.westos.com      ##指定mta主机名称
 83 mydomain = westos.com                    ##指定mta的域名
 99 myorigin = $mydomain                     ##指定邮件来源结尾(@后面的字符内容)
116 inet_interfaces = all                    ##25端口开启的网络接口
164 mydestination = $myhostname, $mydomain, localhost    ##接收邮件结尾字符的指定
systemctl restart postfix.service            ##重启服务
systemctl stop firewalld                     ##关闭防火墙

systemctl disable firewalld                  ##开机不自启



接受端:
vim /etc/postfix/main.cf                     ##编辑配置文件
 76 myhostname = qq-mail.qq.com              ##指定mta主机名称
 83 mydomain = qq.com                        ##指定mta的域名
 99 myorigin = $mydomain                     ##指定邮件来源结尾(@后面的字符内容)
116 inet_interfaces = all                    ##25端口开启的网络接口
164 mydestination = $myhostname, $mydomain, localhost   ##接收邮件结尾字符的指定
systemctl restart postfix.service            ##重启服务
systemctl stop firewalld                     ##关闭防火墙

systemctl disable firewalld                  ##开机不自启



3.测试
发送端:
mail root@qq.com     ##向qq.com发送邮件
Subject: hello       ##标题
linux                ##内容
.                    ##用'.'来结束录入内容并发送此邮件
EOT
mailq                ##查看邮件队列
Mail queue is empty  ##邮件队列为空,表示邮件已发送
postqueue -f         ##重新处理邮件队列

postsuper -d id      ##删除邮件


接受端:

mail                 ##查看邮件



4.邮件别名
接收端:
vim /etc/aliases
别名:        真名                ##邮件别名
admin:          root
别名:        :include:filename   ##邮件群发

moreuser:       :include:/etc/postfix/moreuser


vim /etc/postfix/moreuser           ##群发名单
user1

user2


postalias /etc/aliases              ##刷新/etc/aliases

systemctl restart postfix.service   ##重启服务


测试
发送端
mail 别名@域名

mail admin@qq.com        ##向admin发邮件


mail moreuser@qq.com     ##群发邮件


接收端

mail                ##查看邮件,admin的邮件由root接收


mail -u student     ##查看student的邮件



5.通过远程主机测试邮件服务
在真机中

yum install telnet -y      ##安装telnet


telnet 172.25.254.131 25
mail from:root@westos.com  ##发送端
rcpt to:root@qq.com        ##接收端
data
输入邮件内容

quit                       ##退出


测试
接收端

mail                ##查看邮件



6.邮件客户端的访问控制
##限制客户端##

发送端
postconf -e "smtpd_client_restrictions = check_client_access hash:/etc/postfix/access"
vim /etc/postfix/main.cf                     ##配置文件
smtpd_client_restrictions = check_client_access hash:/etc/postfix/access    ##文件最后自动生成这句话
vim /etc/postfix/access
172.25.254.60 REJECT                ##限制60主机的远程控制
postmap /etc/postfix/access         ##加密,生成.db文件
/etc/postfix/access.db

systemctl restart postfix.service   ##重启服务


测试
[root@foundation60 ~]# telnet 172.25.254.131 25      ##60主机远程控制邮件服务被拒
Trying 172.25.254.131...
Connected to 172.25.254.131.
Escape character is '^]'.
220 westos-mail.westos.com ESMTP Postfix
mail from:root@westos.com
250 2.1.0 Ok
rcpt to:root@qq.com

554 5.7.1 <unknown[172.25.254.31]>: Client host rejected: Access denied



##限制用户发送##
postconf -e "smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender"
vim /etc/postfix/main.cf                     ##配置文件
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/sender    ##文件最后自动生成这句话
vim /etc/postfix/sender
student@westos.com      REJECT      ##限制student用户发送邮件
postmap /etc/postfix/sender         ##加密,生成.db文件
/etc/postfix/sender.db

systemctl restart postfix.service   ##重启服务


测试
[kiosk@foundation60 Desktop]$ telnet 172.25.254.131 25   ##student用户发送邮件被拒
Trying 172.25.254.131...
Connected to 172.25.254.131.
Escape character is '^]'.
220 westos-mail.westos.com ESMTP Postfix
mail from:student@westos.com
250 2.1.0 Ok
rcpt to:root@westos.com

554 5.7.1 <student@westos.com>: Sender address rejected: Access denied



##限制用户接收##
postconf -e "smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recip"
vim /etc/postfix/main.cf                     ##配置文件
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/recip     ##文件最后自动生成这句话
vim /etc/postfix/recip
westos@westos.com       REJECT     ##限制westos用户接收邮件
postmap /etc/postfix/recip         ##加密,生成.db文件
/etc/postfix/recip.db

systemctl restart postfix.service   ##重启服务


测试
[kiosk@foundation60 Desktop]$ telnet 172.25.254.131 25  ##westos用户接收邮件被拒   
Trying 172.25.254.131...
Connected to 172.25.254.131.
Escape character is '^]'.
220 westos-mail.westos.com ESMTP Postfix
mail from:root@westos.com
250 2.1.0 Ok
rcpt to:westos@westos.com

554 5.7.1 <westos@westos.com>: Recipient address rejected: Access denied



##出站地址伪装##
postconf -e "smtp_generic_maps = hash:/etc/postfix/generic"
vim /etc/postfix/main.cf                     ##配置文件
smtp_generic_maps = hash:/etc/postfix/generic
vim /etc/postfix/generic
westos@westos.com       hello@yy.com   ##出站地址由westos@westos.com伪装成hello@yy.com
postmap /etc/postfix/generic         ##加密,生成.db文件
/etc/postfix/generic.db

systemctl restart postfix.service   ##重启服务


测试
发送端
su - westos

mail root@qq.com                   ##westos用户发送邮件,出站地址为westos@westos.com


接收端
[root@qq-mail ~]# mail             ##接收端接收的邮件出站地址为hello@yy.com
Heirloom Mail version 12.5 7/5/10.  Type ? for help.
"/var/spool/mail/root": 1 message 1 new
>N  1 hello@yy.com          Tue May 23 02:36  21/713   "westos"
& 1
Message  1:
From hello@yy.com  Tue May 23 02:36:21 2017
Return-Path: <hello@yy.com>
X-Original-To: root@qq.com
Delivered-To: root@qq.com
Date: Tue, 23 May 2017 02:36:20 -0400
To: root@qq.com
Subject: westos
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
From: hello@yy.com
Status: R

hello

& q
Held 1 message in /var/spool/mail/root

You have mail in /var/spool/mail/root



##入站地址转换##
dns mx 记录解析先做好
vim /etc/named.rfc1912.zones    ##编辑配置文件
zone "yy.com" IN {
        type master;
        file "yy.com.zone";
        allow-update { none; };
};
cd /var/named/
cp -p westos.com.zone yy.com.zone
vim yy.com.zone             ##编辑yy.com.zone
$TTL 1D
@       IN SOA  dns.yy.com. root.yy.com. (
                                        0       ; serial
                                        1D      ; refresh
                                        1H      ; retry
                                        1W      ; expire
                                        3H )    ; minimum
                NS      dns.yy.com.
dns             A       172.25.254.131
yy.com.         MX 1    172.25.254.131.

systemctl restart named       ##重启named



postconf -e "virtual_alias_maps = hash:/etc/postfix/virtual"
vim /etc/postfix/main.cf                     ##配置文件
virtual_alias_maps = hash:/etc/postfix/virtual
vim /etc/postfix/virtual
虚拟名字         真实名字
hello@yy.com    westos@westos.com    ##入站地址由hello@yy.com转换成westos@westos.com
postmap /etc/postfix/virtual         ##加密,生成.db文件
/etc/postfix/virtual.db

systemctl restart postfix.service   ##重启服务


测试
发送端

mail hello@yy.com                   ##向hello@yy.com地址发送邮件


接收端
[root@westos-mail ~]# su - westos
[westos@westos-mail ~]$ mail        ##westos用户接收
Heirloom Mail version 12.5 7/5/10.  Type ? for help.
"/var/spool/mail/westos": 1 message 1 new
>N  1 root                  Tue May 23 02:55  18/556   "hello"
& 1
Message  1:
From root@westos.com  Tue May 23 02:55:36 2017
Return-Path: <root@westos.com>
X-Original-To: hello@yy.com
Delivered-To: westos@westos.com
Date: Tue, 23 May 2017 02:55:36 -0400
To: hello@yy.com
Subject: hello
User-Agent: Heirloom mailx 12.5 7/5/10
Content-Type: text/plain; charset=us-ascii
From: root@westos.com (root)
Status: R

haha

& q

Held 1 message in /var/spool/mail/westos





7.dovecot
1)dovecot基本信息
dovecot用来提供收件协议
pop3    110
imap    143
imaps    993
pop3s    995
给定用户名称,用户密码,dovecot程序代我们去看这个用户的邮件文件
2)安装
yum install dovecot -y                 ##安装dovecot

systemctl start dovecot                ##开启dovecot


3)配置
vim /etc/dovecot/dovecot.conf          ##编辑配置文件
 24 protocols = imap pop3 lmtp
 48 login_trusted_networks = 0.0.0.0/0
 49 disable_plaintext_auth = no
vim /etc/dovecot/conf.d/10-mail.conf
 30 mail_location = mbox:~/mail:INBOX=/var/mail/%u
systemctl restart dovecot.service      ##重启dovecot
passwd westos                          ##设定westos用户密码
mkdir /home/westos/mail/.imap -p          ##创建mail/.imap

touch /home/westos/mail/.imap/INBOX       ##创建INBOX文件



测试

yum install mutt -y


mutt -f pop://westos@172.25.254.131





8.postfix+thunderbird
发送端
su - student
mkdir mail/.imap -p

touch mail/.imap/INBOX


真机

yum install /software/thunderbird-31.2.0-1.el7.x86_64.rpm -y   ##安装thunderbird


在应用程序中打开thunderbird

单击skip this and use my existing email


填完your name和email address,单击continue


填写完所有信息单击re-test后再单击done


I understand the risks前打钩,单击done


单击Indox,单击Get Messages,输入密码即可



9.postfix+mariadb
*)准备工作
mv /etc/postfix/main.cf /mnt/

yum reinstall postfix.x86_64 -y              ##重新安装postfix


vim /etc/postfix/main.cf                     ##编辑配置文件
 76 myhostname = westos-mail.westos.com      ##指定mta主机名称
 83 mydomain = westos.com                    ##指定mta的域名
 99 myorigin = $mydomain                     ##指定邮件来源结尾(@后面的字符内容)
116 inet_interfaces = all                    ##25端口开启的网络接口

164 mydestination = $myhostname, $mydomain, localhost    ##接收邮件结尾字符的指定


systemctl restart postfix.service            ##重启服务


yum install httpd php php-mysql mariadb-server -y     ##安装httpd php php-mysql mariadb-server


systemctl start mariadb                  ##开启mariadb
vim /etc/my.cnf                          ##编辑配置文件

skip-networking=1                        ##阻断监听


systemctl restart mariadb                ##重启服务


mysql_secure_installation                ###第一次安装mysql后通过此命令对mysql进行设置


cd /var/www/html
tar jxf /mnt/phpMyAdmin-3.4.0-all-languages.tar.bz2
rm -fr *.bz2
mv phpMyAdmin-3.4.0-all-languages/ myadmin
cd myadmin/
cp config.sample.inc.php config.inc.php
vim config.inc.php

$cfg['blowfish_secret'] = 'mysql'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */


systemctl restart httpd


测试

访问172.25.254.131/myadmin创建数据库和表



mysql -uroot -p123
create user postuser@localhost identified by 'postuser';

grant select,update,insert on email.* to postuser@localhost;



*)配置
vim /etc/postfix/mailuser.cf     ##用户名称查询
hosts = localhost                ##数据库所在主机
user = postuser                  ##登陆数据库的用户
password = postuser              ##登陆数据库的密码
dbname = email                   ##postfix要查询的名称
table = emailuser                ##postfix要查询的表的名称
select_field = username          ##postfix要查询的字段

where_field = username           ##用户给定postfix的查询条件


测试
postmap -q "wang@wang.com" mysql:/etc/postfix/mailuser.cf

wang@wang.com



vim /etc/postfix/maildomain.cf   ##用户域名查询
hosts = localhost                ##数据库所在主机
user = postuser                  ##登陆数据库的用户
password = postuser              ##登陆数据库的密码
dbname = email                   ##postfix要查询的名称
table = emailuser                ##postfix要查询的表的名称
select_field = domain            ##postfix要查询的字段

where_field = domain             ##用户给定postfix的查询条件


测试
postmap -q "wang.com" mysql:/etc/postfix/maildomain.cf

wang.com



vim /etc/postfix/mailbox.cf      ##用户邮箱位置查询
hosts = localhost                ##数据库所在主机
user = postuser                  ##登陆数据库的用户
password = postuser              ##登陆数据库的密码
dbname = email                   ##postfix要查询的名称
table = emailuser                ##postfix要查询的表的名称
select_field = maildir           ##postfix要查询的字段

where_field = username           ##用户给定postfix的查询条件


测试
postmap -q "wang@wang.com" mysql:/etc/postfix/mailbox.cf

/mnt/wang.com/wang/



访问172.25.254.131/myadmin创建数据表


groupadd -g 666 vmail
useradd -s /sbin/nologin -u 666 vmail -g 666
postconf -e "virtual_mailbox_base = /home/vmail"
postconf -e "virtual_uid_maps = static:666"
postconf -e "virtual_gid_maps = static:666"
postconf -e "virtual_alias_maps = mysql:/etc/postfix/mailuser.cf"
postconf -e "virtual_mailbox_domains = mysql:/etc/postfix/maildomain.cf"
postconf -e "virtual_mailbox_maps = mysql:/etc/postfix/mailbox.cf"

systemctl restart postfix.service


mail wang@wang.com
cd /home/vmail/wang.com/wang

cat new/1495539641.Vfd01I1a9efdcM42741.westos-mail.westos.com


Excel-MCP实战指南:零代码实现大模型与Excel的智能交互 本文详细介绍了Excel-MCP工具如何实现大模型与Excel的无缝交互,无需编写代码即可完成数据读写、图表生成等复杂操作。通过实战案例展示了Excel-MCP在销售报表自动化、财务对账等企业级场景中的应用,大幅提升工作效率。文章还提供了安装指南、核心功能解析和常见问题解决方案。 阅读详情

相关推荐

零基础玩转STM32CubeIDE LL库:5分钟搞定串口通信(附完整代码)

本文为零基础开发者提供了一份STM32CubeIDE LL库串口通信的快速实战指南。通过CubeMX配置、LL库核心API详解,以及中断接收与环形缓冲区的完整代码实现,帮助读者在5分钟内搭建稳定可靠的串口收发框架,解决从HAL切换到LL库的常见困惑,提升嵌入式开发效率。

weixin_29159441的博客 306

linux电子邮件,Linux电子邮件命令mail

Linux邮件命令用法1. 将文件当做电子邮件的内容送出语法:mail -s “主题”用户名@地址< 文件例如:mail -s “program” user < file.c 将file.c当做mail的内容,送至user,主题为program。2. 传送电子邮件给本系统用户语法:mail 用户名3. 传送电子邮件至外地用户语法: mail 用户名@接受地址.../usr/lib/se...

weixin_28993705的博客 8516

CSP-J 入门级第一轮认证 2025 详细解析

2025年CSP-J入门级第一轮认证模拟赛提供10套免费试题,含选择题与解析。选择题涉及计算机科学基础,如32位无符号整数最大值计算(约42.9亿,选A)、C++位运算(255&254=254,选B)、递归函数分析(calc(5)=6,选B)、哈夫曼树构造(带权路径长度186,选B)等。其他题目涵盖图论(有向图边数等于入度/出度和,选B)、组合数学(120种选法,选C)、布尔逻辑(选项C不恒等)、模运算周期性(f[2025]=6,选D)、C++字符串特性(支持string+char,选B)及引用传参

lan_in的博客 2942

linux检查邮件命令,linux下mail 邮件查看命令

系统提供了用户之间通信的邮件系统,当用户打开终端注册登录时发现系统给出如下信息:you have mail.这时用户可通过键入mail命令读取信件:$ mailmail程序将逐个显示用户的信件,并依照时间顺序,显示最新的信件。每显示一段信件,mail都询问用户是否要对该信件作些处理。若用户回答d,则表示删除信件;若仅按回车键,表示对信件不作任何改动(信件仍旧保存,下次还可读这一信件);若回答p,则...

weixin_39687189的博客 1101

微信H5网页授权通用方案:中转页破解域名限制,适配Hash/History路由

在Web开发中,OAuth 2.0授权码模式是实现第三方登录的通用标准,其核心原理是通过授权服务器颁发临时代码,再由客户端交换访问令牌。这一机制在微信公众号H5开发中尤为重要,用于安全获取用户身份。然而,微信平台对网页授权回调域名有严格的数量限制,这成为多子域名、多环境及微前端架构下业务扩展的主要瓶颈。其技术价值在于通过设计一个统一的中转授权页,将授权逻辑与业务逻辑解耦,让所有业务页面共享一个已配置的授权入口,从而突破域名配额限制。该方案的关键在于适配不同的前端路由模式,需精准处理Hash模式与Histor

weixin_42533120的博客 318

ubuntu虚拟机搭建OP-TEE

在网上找了一些搭建OP-TEE的过程,模仿着进行搭建,结果有好多报错,为了方便自己以后重新搭建,所以将整个过程记录下来。

weixin_44213847的博客 1001

postfix , dovecot 配置

(一)postfix 配置 一配置dns 1 yum install bind -y 2 systemctl start named 3 vim /etc/named.conf 内容: options { // listen-on port 53 { 127.0.0.1; }; // listen-on-v6 po...

weixin_33809981的博客 391

使用 Python 爬取 YouTube 视频评论(弹幕)

✅ 如何使用 Python 调用 YouTube Data API v3。✅ 如何爬取指定视频的所有评论信息。✅ 如何对评论数据进行初步分析与可视化。✅ 如何扩展功能,实现评论回复获取和多视频批量爬取。

2201_76125261的博客 644

Linux mail 命令参数

linux mail 命令参数: 使用mail发邮件时,必须先将sendmail服务启动。 mail –s “邮件主题” –c”抄送地址” –b “密送地址” -- -f 发送人邮件地址 –F 发件人姓名 < 要发送的邮件内容 三种常用格式发信   mail -s test yangfang@fudan.edu.cn #第一种方法,你可以把当前shell当成编辑器来用,编...

weixin_30567225的博客 1083

用一台笔记本跑起 SAP HANA:从 express edition 的定位,到本地硬件门槛与安装实操

SAP HANA是面向个人开发者、初创团队与教学科研场景的精简发行版,保留了in-memory列存引擎、SQLScriptAFLGraphSpatial等核心能力,可免费用于开发与一定规模的生产用途(上限为 32 GB RAM)。它最大的特征,是能在资源受限的laptop或上快速落地,让你在本地完成从建模、开发到测试的完整闭环。SAP在交付形态上,提供了多种安装包:预配置的VM OVA、面向Linux的二进制安装包,以及历史上出现过的容器化方案;你可以按现有设备与熟悉的运维方式择优选择。官方文档把VM。

2007 年 ~ 2025 年,深耕 SAP 技术 18 年 537

YOLO11,ultralytics-main源代码目录结构详解

本文详细介绍了YOLO11框架的ultralytics-main源代码目录结构,帮助用户更好地理解和使用YOLO模型。主要目录包括:docker文件夹,包含多种Docker镜像文件,适用于不同硬件环境;docs文件夹,存放YOLO的说明文档;examples文件夹,提供YOLO使用的示例代码;tests文件夹,包含单元测试模块;ultralytics文件夹,为核心代码所在,包含推理逻辑、配置、数据处理等模块。其中,engine文件夹负责训练和推理引擎,models文件夹存放模型架构,nn定义神经网络结构

qq_30279827的博客 1283

linux的命令保存到邮箱,linux直接使用命令发送mail

1.linux下命令发送邮件首先在本地要保证能访问网络或者邮件服务器,然后才能进行邮件的发送。下面在本地linux中直接发送邮件至qq邮箱[root@zyx ~]# ping mail.qq.comPING mail.qq.com (14.18.245.237) 56(84)bytes of data.64 bytes from 14.18.245.237: icmp_seq=1ttl=52 ti...

weixin_28750379的博客 1307

2024年游戏策划最新面试题及答案

1. **游戏策划**:负责游戏设计和开发的创意和技术过程。2. **主要职责**:设计游戏玩法、故事、角色、世界等。4. **游戏机制**:定义玩家如何与游戏世界互动的规则。13. **引人入胜的角色**:深入的背景故事、个性特征。3. **游戏平衡**:确保游戏公平、有趣且具有挑战性。7. **RPG特点**:角色发展、故事驱动、玩家选择。12. **关卡设计技巧**:挑战性、流动性、视觉引导。11. **游戏关卡设计**:创建游戏世界的不同阶段。5. **游戏循环**:玩家在游戏中重复的行为模式。

guo162308的博客 2320

linux检查邮件命令,Linux:mail的邮件收发及查看

系统收到邮件都会保存在“/var/spool/mail/[linux用户名]”文件中。在linux中输入mail,就进行了收件箱,并显示二十封邮件列表。此时命令提示符为"&"unread 标记为未读邮件h|headers 显示当前的邮件列表l|list 显示当前支持的命令列表|help 显示多个查看邮件列表的命令参数用法d 删除当前邮件,指针并下移。 d 1-100 删除第1到100封邮件...

weixin_39998998的博客 3057

复分析 阿尔福斯(Ahlfors) 第三版答案 英文

答案分为十章,有部分习题没有答案,全英文复分析阿尔福斯(Ahlfors) 第三版答案

假人有限元模型

假人模型,车辆碰撞假人有限元模型,适合做乘员安全的研究者利用

postfix服务器不支持ssl,配置 Postfix 通过外部SSL 465或587端口的 SMTP 服务器发邮件...

我不想自己去连外部 SMTP 服务器,因为我懒得自己去处理各种错误。我们服务器上很多程序用的是 heirloom mailx 软件的 mail 命令。结果是有些服务器上有好几个甚至几十个 mail 进程卡在那里了。还有不知道通过什么东西发邮件的,偶尔会有邮件没发出来,发出来了的还因为在一个字符的多个字节之间换行再编码导致 mutt 和 Android 的 GMail 程序显示为乱码的。所以我要用 ...

weixin_35439783的博客 3153

Camera2Demo

在Camera2 的基础上进行封装,使得Camera2一堆初始化逻辑与Activity分离,降低耦合度,完成预览拍照并保存的操作

Postfix邮件网关投递邮件报“fatal: open database /etc/postfix/transport.db: No su

今天完成了Postfix邮件网关的配置,配置完成后,尝试进行邮件投递时,发现未收到投递的邮件,当时第一想法,先看看邮件队日志是否有记录,利用如下命令查看时时日志。 [root@pek1-mgw-01 Postfix_Conifgure]# tail -f /var/log/maillog 发现了如下报错: ...

weixin_34148508的博客 668

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

linux mail命令用法

系统收到邮件都会保存在“/var/spool/mail/[linux用户名]”文件中。在linux中输入mail,就进行了收件箱,并显示二十封邮件列表。 此时命令提示符为"&amp;"unread 标记为未读邮件h|headers 显示当前的邮件列表l|list  显示当前支持的命令列表?|help 显示多个查看邮件列表的命令参数用法d 删除当前邮件,指针并下移。 d 1-100 删除第1到10...

入海数沙 703

Linux mail 命令

在Linux系统下mail命令的测试 1. 最简单的一个例子: mail -s test yangfang@fudan.edu.cn 这条命令的结果是发一封标题为test的空信给后面的邮箱,如果你有mta并且后面的邮箱不会挡这种可能莫名奇妙的信的时候,就能收到这封信了。如果你不想被这种乱七八糟的事情干扰,后面的邮箱请使用本地帐户。 2. 第二个例子: 三种常用格式发信 mail -

涛行无疆的专栏 1万+

mail

###########mail服务################   服务端主机名为mailwestos.com    ip为172.25.254.22 客户端主机名为maillinux.com     ip为172.25.254.122   *******DNS中添加mail*************   [root@mailwestos ~]# vim /etc/named.c

lichunliang的博客 1075

Linux学习 邮件

邮件 一、先做DNS解析 (1)第一台主机 1.hostnamectl  set-hostname westos.mail.com  systemctl  stop  firewalld   配置ip为172.25.254.109  yum  install  bind -y    ##下载解析服务器  systemctl  start  named  ##开启解析服务 2.v

Je_suis_Lulu的博客 4543

Linux下使用mail命令发送邮件

[转载声明] 转载时必须标注:本文来源于铁木箱子的博客http://www.mzone.cc [本文地址] 本文永久地址是:http://www.mzone.cc/article/317.html       因为需要经常备份网站的数据,所以了解并学习了下linux下如何通过shell来发送邮件,这里以CentOS为例,使用mail命令来进行外部邮件的发送。mail命令的语法如下:

blade2001的专栏 1973

mail的邮件收发及查看

系统收到邮件都会保存在“/var/spool/mail/[linux用户名]”文件中。 在linux中输入mail,就进行了收件箱,并显示二十封邮件列表。 此时命令提示符为"&" unread 标记为未读邮件 h|headers 显示当前的邮件列表 l|list 显示当前支持的命令列表 ?|help 显示多个查看邮件列表的命令参数用法 d 删除当前邮件,指针并下移。 d 1-10...

iteye_12813的博客 1266

Linux-mail的邮件收发及察看

系统收到邮件都会保留在“/var/spool/mail/[linux用户名]”文件中。 在linux中输入mail,就举行了收件箱,并揭示二十封邮件列表。 此刻号召提醒符为"&" unread 符号为未读邮件 h|headers 揭示目前的邮件列表 l|list 揭示目前扶持的号召列表 ?|help 揭示多个察看邮件列表的号召参数用法 d 剔除目前邮件,指针并下移。 d 1-10

JoJo-追求卓越~ 1万+

Linux:mail的邮件收发及查看

<span class="t_tag" onclick="function onclick(){tagshow(event)}">系统收到邮件都会保存在“/var/spool/mail/[linux用户名]”<span class="t_tag" onclick="function onclick(){tagshow(event)}">文件中。在linux中输入

蚂蚁的家 2153

postfix邮件服务:远程发送及访问控制

1.远程主机发送邮件 [root@foundation19 Desktop]# telnet 172.25.254.119 25 Trying 172.25.254.119… Connected to 172.25.254.119. Escape character is ‘^]’. 220 westos-mail.westos.com ESMTP Postfix ehlo hello

Error_404notFound的博客 2162
上一篇: Linux--RH254---unit 1 ipv6网络的管理
下一篇: Linux--RH254---unit4 postfix2
WY_mini
博客等级 码龄10年 16粉丝 74原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值