阿里云-云小站(无限量代金券发放中)
【腾讯云】云服务器、云数据库、COS、CDN、短信等热卖云产品特惠抢购

Sendmail Dovecot 邮件服务器

121次阅读
没有评论

共计 4425 个字符,预计需要花费 12 分钟才能阅读完成。

Sendmail的应用

实验:实现 163.com 域中的用户与 sina.com.cn 这个域中的用户可以对发邮件

拓扑图

 

Sendmail Dovecot 邮件服务器

163.com 这个域中搭建邮件服务器mail.163.com

Sendmail Dovecot 邮件服务器

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 可以监听任意地址

 

Sendmail Dovecot 邮件服务器

Sendmail Dovecot 邮件服务器

access文件 是定义允许 sendmail 给哪些客户端发来的邮件发出中继

Sendmail Dovecot 邮件服务器

创建两个用户user1user2

进入到 /var/mail/ 目录下查看用户的邮箱

Sendmail Dovecot 邮件服务器

安装接收邮件服务器

dovecot-1.0.7-7.el5.i386.rpm

接收邮件服务器所提供的应用层服务协议有 imap4imapspop3popsimappop3 是基于 tcp 明文的传输,imapspops 是基于 tcp 身份验证的协议,imap4的端口是 143imaps 的端口是 993pop3 端口是 110pops 的端口是995

Windows系统自带的邮件客户端软件是 outlook,打开outlookuser1outlook给自己发送邮件,然后接收邮件。

查看邮件服务器的日志

Oct1102:39:30localhostsendmail[13294]:r9B9dUhm013294:from=<user1@163.com>,size=414,,nrcpts=1,msgid=<7A1366BCD0A246DBA59F1262B986F4AD@xp8c76246e575c>,proto=SMTP,daemon=MTA,relay=[192.168.20.101]

Oct1102:39:30localhostsendmail[13295]:r9B9dUhm013294:to=<user1@163.com>,ctladdr=<user1@163.com>(501/501),delay=00:00:00,xdelay=00:00:00,mailer=local,pri=30582,dsn=2.0.0,stat=Sent

查看 user1 接收到的邮件

Sendmail Dovecot 邮件服务器

sina.com.cn 域中搭建 mail.sina.com.cn 邮件服务器

安装 sendmaildovecot

打开 accecss 文件

Sendmail Dovecot 邮件服务器

安装 dns 服务器,对邮件服务器做域名解析

 

Sendmail Dovecot 邮件服务器

Sendmail Dovecot 邮件服务器

更多精彩内容请看下一页:http://www.linuxidc.com/Linux/2013-09/92128p2.htm

Dovecot 的详细介绍:请点这里
Dovecot 的下载地址:请点这里

相关阅读

邮件服务系列之 postifx+sasl+Dovecot+ 虚拟域 + 虚拟用户 +webmail+webman 综合演练 http://www.linuxidc.com/Linux/2013-05/84474.htm

CentOS 6.0 安装 Postfix+Dovecot+Sasl+OpenWebMail+Httpd+Bind http://www.linuxidc.com/Linux/2012-04/58062.htm

Postfix+Dovecot+MySQL+Cyrus-sasl+Extmail 实现基于虚拟用户的邮件系统架构 http://www.linuxidc.com/Linux/2012-03/56440.htm

Linux+Postfix+Extmail+Dovecot 打造基于 WEB 页面的邮件系统 http://www.linuxidc.com/Linux/2011-09/42784.htm

Sendmail.mc文件

因为 sendmail 的配置文件是相当的复杂的,通过修改这个文件,重启 sendmail 后会动态更新 sendmail 的配置文件,达到修改配置文件的效果。

sendmail 的监听地址改为 0.0.0.0 说明 sendmail 可以监听任意地址

Sendmail Dovecot 邮件服务器

Useradduser3

windows 系统自带的邮件客户端软件 outlookuser3 给自己收发邮件测试,sina.com.cn本域中的邮件服务器能否收发邮件。

Sendmail Dovecot 邮件服务器

观察着日志 发送成功

Oct1202:01:07localhostsendmail[17883]:r9C9172E017883:from=<user3@sina.com.cn>,size=437,,nrcpts=1,msgid=<F734B02657F848B9AABA8F467DF2780D@xp8c76246e575c>,proto=SMTP,daemon=MTA,relay=[192.168.20.202]

Oct1202:01:07localhostsendmail[17898]:r9C9172E017883:to=<user3@sina.com.cn>,ctladdr=<user3@sina.com.cn>(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

Sendmail Dovecot 邮件服务器

163.com 这个域中的邮箱用户 user1sina.com.cn这个域中的邮箱用户 user3 发送邮件,邮件标题是:ok,内容是:hellouser3

查看日志:

ct1202:45:06mailsendmail[11344]:r9C9T9Fg011344:from=user1@163.com,size=23,,nrcpts=1,msgid=<201310120938.r9C9T9Fg011344@mail.163.com>,proto=SMTP,daemon=MTA,relay=[192.168.20.100]

Oct1202:45:06mailsendmail[11344]:r9C9T9Fg011344:to=user3@sina.com.cn,delay=00:06:35,mailer=esmtp,pri=30023,dsn=4.4.3,stat=queued

Sendmail的应用

实验:实现 163.com 域中的用户与 sina.com.cn 这个域中的用户可以对发邮件

拓扑图

 

Sendmail Dovecot 邮件服务器

163.com 这个域中搭建邮件服务器mail.163.com

Sendmail Dovecot 邮件服务器

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 可以监听任意地址

 

Sendmail Dovecot 邮件服务器

Sendmail Dovecot 邮件服务器

access文件 是定义允许 sendmail 给哪些客户端发来的邮件发出中继

Sendmail Dovecot 邮件服务器

创建两个用户user1user2

进入到 /var/mail/ 目录下查看用户的邮箱

Sendmail Dovecot 邮件服务器

安装接收邮件服务器

dovecot-1.0.7-7.el5.i386.rpm

接收邮件服务器所提供的应用层服务协议有 imap4imapspop3popsimappop3 是基于 tcp 明文的传输,imapspops 是基于 tcp 身份验证的协议,imap4的端口是 143imaps 的端口是 993pop3 端口是 110pops 的端口是995

Windows系统自带的邮件客户端软件是 outlook,打开outlookuser1outlook给自己发送邮件,然后接收邮件。

查看邮件服务器的日志

Oct1102:39:30localhostsendmail[13294]:r9B9dUhm013294:from=<user1@163.com>,size=414,,nrcpts=1,msgid=<7A1366BCD0A246DBA59F1262B986F4AD@xp8c76246e575c>,proto=SMTP,daemon=MTA,relay=[192.168.20.101]

Oct1102:39:30localhostsendmail[13295]:r9B9dUhm013294:to=<user1@163.com>,ctladdr=<user1@163.com>(501/501),delay=00:00:00,xdelay=00:00:00,mailer=local,pri=30582,dsn=2.0.0,stat=Sent

查看 user1 接收到的邮件

Sendmail Dovecot 邮件服务器

sina.com.cn 域中搭建 mail.sina.com.cn 邮件服务器

安装 sendmaildovecot

打开 accecss 文件

Sendmail Dovecot 邮件服务器

安装 dns 服务器,对邮件服务器做域名解析

 

Sendmail Dovecot 邮件服务器

Sendmail Dovecot 邮件服务器

更多精彩内容请看下一页:http://www.linuxidc.com/Linux/2013-09/92128p2.htm

Dovecot 的详细介绍:请点这里
Dovecot 的下载地址:请点这里

相关阅读

邮件服务系列之 postifx+sasl+Dovecot+ 虚拟域 + 虚拟用户 +webmail+webman 综合演练 http://www.linuxidc.com/Linux/2013-05/84474.htm

CentOS 6.0 安装 Postfix+Dovecot+Sasl+OpenWebMail+Httpd+Bind http://www.linuxidc.com/Linux/2012-04/58062.htm

Postfix+Dovecot+MySQL+Cyrus-sasl+Extmail 实现基于虚拟用户的邮件系统架构 http://www.linuxidc.com/Linux/2012-03/56440.htm

Linux+Postfix+Extmail+Dovecot 打造基于 WEB 页面的邮件系统 http://www.linuxidc.com/Linux/2011-09/42784.htm

正文完
星哥说事-微信公众号
post-qrcode
 
星锅
版权声明:本站原创文章,由 星锅 2022-01-20发表,共计4425字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
【腾讯云】推广者专属福利,新客户无门槛领取总价值高达2860元代金券,每种代金券限量500张,先到先得。
阿里云-最新活动爆款每日限量供应
评论(没有评论)
验证码
【腾讯云】云服务器、云数据库、COS、CDN、短信等云产品特惠热卖中