当前位置:网站首页>Sendmail Dovecot 邮件服务器
Sendmail Dovecot 邮件服务器
2022-06-12 10:34:00 【星哥玩云】
Sendmail的应用
实验:实现163.com域中的用户与sina.com.cn这个域中的用户可以对发邮件
拓扑图
在163.com这个域中搭建邮件服务器mail.163.com
sendmail-8.13.8-2.el5.i386.rpmsendmail-devel-8.13.8-2.el5.i386.rpm
sendmail-cf-8.13.8-2.el5.i386.rpmsendmail-doc-8.13.8-2.el5.i386.rpm
在/etc/mail/目录下形成相应的文件
Sendmail.mc文件
因为sendmail的配置文件是相当的复杂的,通过修改这个文件,重启sendmail后会动态更新sendmail的配置文件,达到修改配置文件的效果。
把sendmail的监听地址改为0.0.0.0说明sendmail可以监听任意地址
access文件是定义允许sendmail给哪些客户端发来的邮件发出中继
创建两个用户user1、user2
进入到/var/mail/目录下查看用户的邮箱
安装接收邮件服务器
dovecot-1.0.7-7.el5.i386.rpm
接收邮件服务器所提供的应用层服务协议有imap4imapspop3pops,imappop3是基于tcp明文的传输,imaps和pops是基于tcp身份验证的协议,imap4的端口是143,imaps的端口是993,pop3端口是110,pops的端口是995。
Windows系统自带的邮件客户端软件是outlook,打开outlook,user1用outlook给自己发送邮件,然后接收邮件。
查看邮件服务器的日志
Oct1102:39:30localhostsendmail[13294]:r9B9dUhm013294:from=<[email protected]>,size=414,,nrcpts=1,msgid=<[email protected]>,proto=SMTP,daemon=MTA,relay=[192.168.20.101]
Oct1102:39:30localhostsendmail[13295]:r9B9dUhm013294:to=<[email protected]>,ctladdr=<[email protected]>(501/501),delay=00:00:00,xdelay=00:00:00,mailer=local,pri=30582,dsn=2.0.0,stat=Sent
查看user1接收到的邮件
在sina.com.cn域中搭建mail.sina.com.cn邮件服务器
安装sendmail和dovecot
打开accecss文件
安装dns服务器,对邮件服务器做域名解析
Sendmail.mc文件
因为sendmail的配置文件是相当的复杂的,通过修改这个文件,重启sendmail后会动态更新sendmail的配置文件,达到修改配置文件的效果。
把sendmail的监听地址改为0.0.0.0说明sendmail可以监听任意地址
Useradduser3
在windows系统自带的邮件客户端软件outlook,user3给自己收发邮件测试,sina.com.cn本域中的邮件服务器能否收发邮件。
观察着日志发送成功
Oct1202:01:07localhostsendmail[17883]:r9C9172E017883:from=<[email protected]>,size=437,,nrcpts=1,msgid=<[email protected]>,proto=SMTP,daemon=MTA,relay=[192.168.20.202]
Oct1202:01:07localhostsendmail[17898]:r9C9172E017883:to=<[email protected]>,ctladdr=<[email protected]>(502/503),delay=00:00:00,xdelay=00:00:00,mailer=local,pri=30618,dsn=2.0.0,stat=Sent
Oct1202:01:21localhostdovecot:pop3-login:Login:user=<user3>,method=PLAIN,rip=::ffff:192.168.20.202,lip=::ffff:192.168.20.2
用163.com这个域中的邮箱用户user1给sina.com.cn这个域中的邮箱用户user3发送邮件,邮件标题是:ok,内容是:hellouser3。
查看日志:
ct1202:45:06mailsendmail[11344]:r9C9T9Fg011344:[email protected],size=23,,nrcpts=1,msgid=<[email protected]>,proto=SMTP,daemon=MTA,relay=[192.168.20.100]
Oct1202:45:06mailsendmail[11344]:r9C9T9Fg011344:[email protected],delay=00:06:35,mailer=esmtp,pri=30023,dsn=4.4.3,stat=queued
边栏推荐
- AcWing 132. 小组队列(队列模拟题)
- Several methods of importing ThinkPHP
- 2021-03-24
- IIS add MIME type
- Amélioration de la 3dsc par HSC
- MySQL performance test (slow query log)
- Leetcode 2169. Get operands of 0
- 使用cpolar远程办公(2)
- How to play the 2022 Taobao 618 Super Cat Games? What are the strategies for the Super Cat Games
- CONDA install tensorflow test tensorflow
猜你喜欢

M-Arch(番外13)GD32L233评测-来点音乐

Global and local existence of array, integer and character variables

机器学习不是你想用,想用就能用

How to play the 2022 Taobao 618 Super Cat Games? Playing skills of 2022 Taobao 618 Cat Games

Bug easily ignored by recursion

MySQL performance test (slow query log)

How to refund the pre-sale deposit of JD 618 in 2022? Can JD 618 deposit be refunded?

基于QT的旅行查询与模拟系统

AcWing 132. 小组队列(队列模拟题)

CONDA install tensorflow test tensorflow
随机推荐
基于QT的旅行查询与模拟系统
浅谈调和形状上下文特征HSC对3DSC的改进
MySQL implements split method
Principle analysis of vite HMR
How to refund the pre-sale deposit of JD 618 in 2022? Can JD 618 deposit be refunded?
Get array median
分布式存储探索
golang中的定时器
The most detailed explanation of the top ten levels of sqli labs platform
Error during session start; please check your PHP and/or webserver log file and configure your PHP
CONDA install tensorflow test tensorflow
PHP generate schedule
Find the location of a function in PHP
The solution of Lenovo notebook ThinkPad t440 WiFi dropping all the time
The name of a great man
How to play the 618 super cat games on Taobao? Here comes the introduction to the overall activities of the Super Cat Games
Reverse analysis of Huawei housekeeper software [transfer]
JS scale down the width and height of the picture
Common port description
PHP uses leanclound to save associated properties