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

欢迎光临我的博客

 
 
 

日志

 
 

freebsd上安装邮局系统telaen  

2008-06-30 16:34:32|  分类: 邮件服务 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |

邮局系统telaen调试首先telnet 10.0.1.61 登陆到240服务器,tar -cvf mails.tar /usr/mails, 然后

ftp 10.0.1.61下载 mails.tar到本机的/usr目录下,解压tar -xvf mails.tar,再

到/usr/local/www/apache22/data 目录下建立一符号连接即ln -s /usr/mails mail,启动apache。
浏览http://127.0.0.1/mail/telaen/extra/check_install.php发现临时目录的权根、所用者、组及临时

目录存放位置有误,到/usr/mails/telaen目录下
chmod 700 database
chown 80 database
chgrp 0 database
把database移至上级目录,修改config.php文件的临时目录为/usr/mails/database,再运行

check_install.php一切正常。
但登陆时错误信息:系统错误无法连接到服务器,查看/telaen/inc/config.php文件,修改pop3协议为

imap,保证/etc下imap处于打开状态,试着浏览index.php结果显示:错误信息未变;运行telnet

127.0.0.1 143 发现没有imap协议,想通过sysinstall来安装,但没有此选项。由于网站的telaen用的是

pop3,最后决定也改用pop3协议。修改config.php文件把imap改为pop3协议,通过ports来安装pop3协议

,先转到/usr/wangxc/cd/packages/mail 目录下,运行pkg_add popd-2.2.2a_4.tbz ,再make install

clean 进行编译,运行telnet 127.0.0.1 110未发现popd.
find / -name "popd.*" -print ,找到popd.conf.default位于/usr/local/etc,转到此目录下,备份

popd.conf.default为popd.conf
修改popd.conf文件 check_passwords: false
host: 127.0.0.1
#apop_secrets: secrets.db
#virtual_passwords: passwd.db
再运行telnet 127.0.0.1 110 这次发现协议名称为popd.
登陆时发现错误信息改为:错误的用户名和密码,又建了二个用户名登陆,试着登陆发现错误信息还是:

错误的用户名和密码,又打开config.php文件仔细查看,发现用户名格式为
mail_detect_login_type = "%user%@%domain%"; 然后按此格式用户名:wujl@127.0.0.1,密码:123456

,结果登陆成功。

 

附件

$ cat popd.conf
# $Id: popd.conf.default,v 1.4 2003/01/24 09:35:20 ianf Exp $
#
debug_mode:             false;
interactive_debug:      false;
disable_uidl:           false;
disable_top:            false;
etc_directory:          /usr/local/etc;
inactivity_timeout:     300;
#default_realm:         127.0.0.1;
virtual_server:         false;
virtual_user:           mailnull;
local_users:            true;
fascist_logging:        false;
command_logging:        false;
authentication: {
        check_passwords:        false;
#       apop_secrets:           secrets.db;
#       virtual_passwords:      passwd.db;
#       radius: {
#               host:           127.0.0.1;
#               port:           1812;
#               secret:         testing123;
#               timeout:        3;
#               tries:          3;
#       }
}
listen: {
#       address_family: inet4;
        port:           pop3;
#       address:        192.168.0.1;
}
pop3_proxy: {
        proxy:          false;
#       proxy_port:     110;
#       proxy_address:  127.0.0.1;
}
mail: {
        bulletins:      /var/mail/bulletin;
        spool:          /var/mail;
        format:         mailbox;
        hash_depth:     0;
        wire_format:    false;
#       expire_after:   1w3d;
#       remove_after:   3w1d;
        falsify_uidl:   false;
        autodelete:     false;
        sort_by:        delivery_time; #|message_size
}
ssl: {
        certificate:    popd_cert.pem;
        private_key:    popd_key.pem;
#       ssl_mode:       ssl_server; #ssl_proxy|ssl_both
}

$ cat inetd.conf
# $FreeBSD: src/etc/inetd.conf,v 1.73 2007/07/05 09:46:53 delphij Exp $
#
# Internet server configuration database
#
# Define *both* IPv4 and IPv6 entries for dual-stack support.
# To disable a service, comment it out by prefixing the line with '#'.
# To enable a service, remove the '#' at the beginning of the line.
#
ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
#ftp    stream  tcp6    nowait  root    /usr/libexec/ftpd       ftpd -l
ftp     stream  tcp     nowait  root    /usr/libexec/lukemftpd  ftpd -l -r
#ftp    stream  tcp6    nowait  root    /usr/libexec/lukemftpd  ftpd -l -r
#ssh    stream  tcp     nowait  root    /usr/sbin/sshd          sshd -i -4
#ssh    stream  tcp6    nowait  root    /usr/sbin/sshd          sshd -i -6
telnet  stream  tcp     nowait  root    /usr/libexec/telnetd    telnetd
#telnet stream  tcp6    nowait  root    /usr/libexec/telnetd    telnetd
shell   stream  tcp     nowait  root    /usr/libexec/rshd       rshd
#shell  stream  tcp6    nowait  root    /usr/libexec/rshd       rshd
login   stream  tcp     nowait  root    /usr/libexec/rlogind    rlogind
#login  stream  tcp6    nowait  root    /usr/libexec/rlogind    rlogind
#finger stream  tcp     nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#finger stream  tcp6    nowait/3/10 nobody /usr/libexec/fingerd fingerd -s
#
# run comsat as root to be able to print partial mailbox contents w/ biff,
# or use the safer tty:tty to just print that new mail has been received.
#comsat dgram   udp     wait    tty:tty /usr/libexec/comsat     comsat
#
# ntalk is required for the 'talk' utility to work correctly
#ntalk  dgram   udp     wait    tty:tty /usr/libexec/ntalkd     ntalkd
#tftp   dgram   udp     wait    root    /usr/libexec/tftpd      tftpd -l -s /tft
pboot
#tftp   dgram   udp6    wait    root    /usr/libexec/tftpd      tftpd -l -s /tft
pboot
#bootps dgram   udp     wait    root    /usr/libexec/bootpd     bootpd
#
# "Small servers" -- used to be standard on, but we're more conservative
# about things due to Internet security concerns.  Only turn on what you
# need.
#
#daytime stream tcp     nowait  root    internal
#daytime stream tcp6    nowait  root    internal
#daytime dgram  udp     wait    root    internal
#daytime dgram  udp6    wait    root    internal
#time   stream  tcp     nowait  root    internal
#time   stream  tcp6    nowait  root    internal
#time    dgram  udp     wait    root    internal
#time    dgram  udp6    wait    root    internal
#echo   stream  tcp     nowait  root    internal
#echo   stream  tcp6    nowait  root    internal
#echo   dgram   udp     wait    root    internal
#echo   dgram   udp6    wait    root    internal
#discard stream tcp     nowait  root    internal
#discard stream tcp6    nowait  root    internal
#discard dgram  udp     wait    root    internal
#discard dgram  udp6    wait    root    internal
#chargen stream tcp     nowait  root    internal
#chargen stream tcp6    nowait  root    internal
#chargen dgram  udp     wait    root    internal
#chargen dgram  udp6    wait    root    internal
#
# CVS servers - for master CVS repositories only!  You must set the
# --allow-root path correctly or you open a trivial to exploit but
# deadly security hole.
#
#cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root
=/your/cvsroot/here pserver
#cvspserver     stream  tcp     nowait  root    /usr/bin/cvs    cvs --allow-root
=/your/cvsroot/here kserver
#
# RPC based services (you MUST have rpcbind running to use these)
#
#rstatd/1-3     dgram rpc/udp wait root /usr/libexec/rpc.rstatd  rpc.rstatd
#rusersd/1-2    dgram rpc/udp wait root /usr/libexec/rpc.rusersd rpc.rusersd
#walld/1        dgram rpc/udp wait root /usr/libexec/rpc.rwalld  rpc.rwalld
#pcnfsd/1-2     dgram rpc/udp wait root /usr/local/libexec/rpc.pcnfsd    rpc.pcn
fsd
#rquotad/1      dgram rpc/udp wait root /usr/libexec/rpc.rquotad rpc.rquotad
#sprayd/1       dgram rpc/udp wait root /usr/libexec/rpc.sprayd  rpc.sprayd
#
# example entry for the optional pop3 server
#
#  pop3 stream  tcp     nowait  root    /usr/local/libexec/popper       popper

  pop3  stream  tcp     nowait  root    /usr/local/libexec/popd         popd
#
# example entry for the optional imap4 server
#
# imap4 stream  tcp     nowait  root    /usr/local/libexec/imapd        imapd
#
# example entry for the optional nntp server
#
#nntp   stream  tcp     nowait  news    /usr/local/libexec/nntpd        nntpd
#
# example entry for the optional uucpd server
#
#uucpd  stream  tcp     nowait  root    /usr/local/libexec/uucpd        uucpd
#
# Return error for all "ident" requests
#
#auth   stream  tcp     nowait  root    internal
#auth   stream  tcp6    nowait  root    internal
#
# Provide internally a real "ident" service which provides ~/.fakeid support,
# provides ~/.noident support, reports UNKNOWN as the operating system type
# and times out after 30 seconds.
#
#auth   stream  tcp     nowait  root    internal        auth -r -f -n -o UNKNOWN
 -t 30
#auth   stream  tcp6    nowait  root    internal        auth -r -f -n -o UNKNOWN
 -t 30
#
# Example entry for an external ident server
#
#auth   stream  tcp     wait    root    /usr/local/sbin/identd  identd -w -t120
#
# Example entry for the optional qmail MTA
#  NOTE: This is no longer the correct way to handle incoming SMTP
#        connections for qmail.  Use tcpserver (http://cr.yp.to/ucspi-tcp.html)
#        instead.
#
# smtp  stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env  tcp-env /var/qma
il/bin/qmail-smtpd
#
# Enable the following two entries to enable samba startup from inetd
# (from the Samba documentation).  Enable the third entry to enable the swat
# samba configuration tool.
#
#netbios-ssn stream tcp nowait          root    /usr/local/sbin/smbd    smbd
#netbios-ns dgram udp   wait            root    /usr/local/sbin/nmbd    nmbd
#swat   stream  tcp     nowait/400      root    /usr/local/sbin/swat    swat

  评论这张
 
阅读(1813)| 评论(0)

历史上的今天

评论

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

页脚

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