当前位置:Linux教程 - Linux - ◆NeoMail线上邮局完全安装手册◆

◆NeoMail线上邮局完全安装手册◆



        
    如何安装网路邮局 Neomail 1.14
    Neomail 是一个 GPL 的 webmail 软件,该有的功能大致上都有了,只要主机有装 apache 就可使用,安装非常容易只需回答一些设定资料就可以安装完成,该软件是 CGI 程序使用 POP3,因此在使用人数上可负担较多人使用,适合学校 email 教学用。小弟已经将中文语系加入其内并修正读取 outlook 信件乱码问题。


    安装流程
    1.解压 neomail-1.14.tar.gz
     #cd /tmp
     #tar zxvf neomail-1.14.tar.gz
    2.执行安装程序 setup.pl
     #cd neomail-1.14
     #./setup.pl
    NEOMAIL SETUP
    ============

    NEOMAIL DIRECTORY
    ==================
    储存NeoMail程序及使用者通讯录和个人设定的目录,预设为/var/neomail
    [/var/neomail]:

    DEFAULT LANGUAGE
    ================
    选择预设的语系,预设为tw
    [tw]:

    MAIL SPOOL GROUP ID
    ==================
    主机执行 mail spools 的 group,预设为mail
    [mail] group/suid:

    DOMAIN NAME
    ==========
    贵校域名称(格式为主机名.域名)
    [localhost.localdomain]:

    SENDMAIL
    ========
    输入sendmail程序的所在路径,预设为/usr/sbin/sendmail
    [/usr/sbin/sendmail]:

    PASSWORD FILE
    ============
    输入主机密码文件,预设值会自动判断(若无法自动判断,FreeBSD输入/etc/master.passwd ,Linux输入 /etc/shadow 或 /etc/passwd)
    [/etc/passwd]:

    NEOMAIL LOGFILE
    ==============
    输入NEOMAIL程序执行记录文件的文件名,预设为/var/neomail/neomail.log
    filename/n [/var/neomail/neomail.log]:

    TIME OFFSET
    ==========
    时区设定,预设为+0800(台湾时区)
    [+0800]:

    SESSION TIMEOUT
    ==============
    session 逾时设定
    [30]:

    NUMBER OF HEADERS
    ================
    每页最多显示几封信
    [20]:

    MAXIMUM ADDRESS BOOK SIZE
    ========================
    每个使用者通讯录最大的储存容量(KB)
    [50]:

    FOLDER QUOTA
    ============
    每个使用者信箱匣最大的储存容量(KB),预设为0
    neomail可让使用者建立信箱匣,在後面有一项设定是建立在/var/neomail 下(此时不受主机的QUOTA限制,这里就必须给容量限制,不建议使用) 或建立在使用者的目录下(此时不主机的QUOTA限制,这里就用预设值0,建议使用)
    [0]:

    ATTACHMENT SIZE LIMIT
    ====================
    附件最大限制容量为多少MB,预设为1(以sendmail的限制)
    [1]:

    SCRIPT LOCATION
    ==============
    neomail.pl的位置,预设为/cgi-bin/neomail.pl
    [/cgi-bin/neomail.pl]:

    PREFS LOCATION
    ==============
    neomail-prefs.pl的位置,预设为/cgi-bin/neomail-prefs.pl
    [/cgi-bin/neomail-prefs.pl]:

    CGI-BIN LOCATION
    ================
    APACHE CGI执行程序的绝对路径
    [/home/httpd/cgi-bin/]:

    DOCUMENTROOT LOCATION
    ====================
    APACHE 网页的根目录的绝对路径
    [/home/httpd/html]:

    PINE COMPATIBILITY
    ==============
    设定使用者建立信箱匣的位置,建议按 y(建立在使用者的目录下)
    y/n [n]:

    QMAIL SUPPORT
    ============
    是否支持 QMAIL,预设为 n
    y/n [n]:

    MAIL SPOOL
    ==========
    主机接收使用者新信所放置的路径,预设为/var/mail(适用FreeBSD),Linux则为/var/spool/mail
    [/var/mail]:

    HASHED MAIL SPOOLS
    ==================
    主机接收使用者信件的方式,一般放在 /var/mail/username 或 /var/spool/mail/username 预设为 n(若为 /var/spool/mail/u/s/username 则按 y)
    y/n [n]:

    BACKGROUND IMAGE
    ================
    背景图
    [/neomail-bg.gif]:

    LOGO IMAGE
    ==========
    标志图
    [/neomail.gif]:

    DIRECTORY FOR IMAGES
    ====================
    图片文件目录
    [/images/]:

    Ready to install. Hit to continue.
    nobody


    Reading templates...
    You\ll need it next.
    Performing substitutions...
    Finish the installation by following the steps outlined in FINAL STEPS,
    Writing neomail.pl...Writing neomail-prefs.pl...Writing neomail.conf...
    in the INSTALL text file in this directory.


    INSTALLING NEOMAIL...
    DON\T FORGET TO RUN FEEDBACK.PL AND GIVE ME YOUR THOUGHTS ON NEOMAIL!
    Copying style files to /var/neomail/styles...
    Copying templates to /var/neomail/templates...
    Copying translations to /var/neomail/lang...
    Copying neomail.conf to /var/neomail/neomail.conf...
    Setting permissions using chown -Rh and chmod -R...
    Copying checklogin.pl to /var/neomail/checklogin.pl...
    Copying neomail.pl to /home/httpd/cgi-bin//neomail.pl...
    Copying neomail-prefs.pl to /home/httpd/cgi-bin//neomail-prefs.pl...
    Copying NeoMail logos to /home/httpd/html/...
    Copying NeoMail images to /home/httpd/html/images/...
    Setting permissions...
    FYI: NeoMail is being installed suid root due to one or more options
    that were selected during setup.
    Done!

    Make a note of the HTTPD user id, which is:

    nobody

    You\ll need it next.
    Finish the installation by following the steps outlined in FINAL STEPS,
    in the INSTALL text file in this directory.

    DON\T FORGET TO RUN FEEDBACK.PL AND GIVE ME YOUR THOUGHTS ON NEOMAIL!
    #
    恭喜您安装完成

    3.从浏览器执行neomail,输入http://您的主机/cgi-bin/neomail.pl
    发布人:zeus 来自:张文杰