注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

欢迎光临我的博客

 
 
 

日志

 
 

install imap(contain pop) protocol on solaris 10  

2010-11-09 16:34:01|  分类: 邮件服务 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

Installing packages
Get the following packages from www.sunfreeware.com:

openssl-0.9.8e-sol10-sparc-local
imap-2006e-sol10-sparc-local

and install both of them


/etc/services configuration
Ensure the following /etc/services entries are present

pop2            109/tcp         pop pop-2     # Post Office Protocol - V2
pop3            110/tcp                       # Post Office Protocol - Version 3
imap            143/tcp         imap2         # Internet Mail Access Protocol v2
imaps           993/tcp

inetd configuration
The inetd configuration on Solaris 10 is a pain to setup now that you cant just edit inetd.conf, however you can use inetd.conf as an input to inetconv.
This is the easiest way !

Add in the following to inetd.conf

pop     stream  tcp     nowait  root    /usr/local/sbin/ipop2d   ipop2d
pop3    stream  tcp     nowait  root    /usr/local/sbin/ipop3d   ipop3d
imap    stream  tcp     nowait  root    /usr/local/sbin/imapd    imapd
pop3s   stream  tcp     nowait  root    /usr/local/sbin/ipop3d   ipop3d
imaps   stream  tcp     nowait  root    /usr/local/sbin/imapd    imapd

Then run
#inetconv -f

to create the service entries. Then use inetadm to check they are ok.

inetadm">root@san-andres<347>inetadm | egrep "pop|imap"
enabled   online         svc:/network/pop3/tcp:default
enabled   online         svc:/network/imap/tcp:default
enabled   online         svc:/network/pop3s/tcp:default
enabled   online         svc:/network/imaps/tcp:default
enabled   online         svc:/network/pop/tcp:default

SSL configuration
Then you need to create SSL certificate as imapd will not accept plain text authentication
If you dont you will see the following type of errors in syslog when you try to connect with a plain text passwd.
Mar 29 09:56:58 myserver imapd[6959]: [ID 210418 auth.notice] Login disabled user=user1 auth=user1 host=myotherserver.example.com [10.11.12.13]

Use openssl to create certificate for imap.

cd /usr/local/ssl/certs
/usr/local/ssl/bin/openssl req -new -x509 -nodes -out imapd.pem \
                -keyout imapd.pem -days 365

This should create an imapd.pem certificate file in the cert directory


Client configuration
Then in the account options on your mail client (netscape, outlook etc) choose the option to authenticate using SSL.

  评论这张
 
阅读(557)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017