webmail

Squirrel webmail

安装postfix

[root@mail ~]# cd /mnt/cdrom/Server/

[root@mail Server]# rpm  -ivh postfix-

postfix--2.1.el5_2.i386.rpm

postfix-pflogsumm--2.1.el5_2.i386.rpm

[root@mail Server]# rpm  -ivh postfix--2.1.el5_2.i386.rpm

Preparing...               ########################################### [100%]

1:postfix               ########################################### [100%]

[root@mail Server]# vim /etc/postfix/master.cf

[root@mail ~]# vim /etc/postfix/main.cf

110 inet_interfaces = all

70 myhostname = mail.bj.com

77 mydomain = bj.com

158 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain

--按地址段的中继

257 mynetworks = 168.100.101.0/24, 127.0.0.0/8 --接收mail的网段

[root@mail ~]# service postfix restart

做dns

[root@mail Server]# rpm -qa |grep bind

bind--10.P1.el5

bind-devel--10.P1.el5

bind-libs--10.P1.el5

bind-sdb--10.P1.el5

ypbind-1.19-11.el5

bind-utils--10.P1.el5

bind-libbind-devel--10.P1.el5

bind-chroot--10.P1.el5

[root@localhost Server]# rpm -ivh caching-nameserver--10.P1.el5.i386.rpm

[root@localhost etc]# cd /var/named/chroot/etc/

[root@localhost etc]# cp -p named.caching-nameserver.conf named.conf

[root@localhost etc]# vim named.conf

options {

listen-on port 53 { any; }

allow-query    { any; };

};

view localhost_resolver {

match-clients     { any; };

match-destinations { any; };

recursion yes;

include "/etc/named.rfc1912.zones";

};

[root@localhost etc]# vim /var/named/chroot/etc/named.rfc1912.zones

zone "bj.com" IN {

type master;

File "bj.com.zone";

allow-update { none; };

};

[root@localhost named]# pwd

/var/named/chroot/var/named

[root@localhost named]# cp -p localhost.zone bj.com.zone

[root@localhost named]# vim bj.com.zone

$TTL   86400

@              IN SOA ns.bj.com.      root (

42             ; serial (d. )

3H             ; refresh

15M            ; retry

1W             ; expiry

1D )           ; minimum

IN NS          ns.bj.com.

ns             IN A           192.168.101.9

mail           IN A           192.168.101.9

pop3           IN CNAME       mail

smtp           IN CNAME       mail

@              IN MX 10      mail

[root@localhost named]# vim /etc/sysconfig/network

NETWORKING=yes

NETWORKING_IPV6=no

HOSTNAME=mail.bj.com

[root@localhost named]# vim /etc/resolv.conf

nameserver 192.168.101.9

[root@localhost named]# vim /etc/hosts

127.0.0.1              localhost.localdomain localhost

192.168.101.9    mail.bj.com mail

[root@localhost named]# vim /etc/inittab

id:3:initdefault:

[root@mail ~]# service named start

[root@mail ~]# chkconfig named on

[root@mail named]# dig -t mx bj.com

1.安装squirrelmail

[root@mail cdrom]# mount /dev/cdrom /mnt/cdrom/

[root@mail ~]# cd /mnt/cdrom/Server

[root@mail Server]# ll |grep mail

-r--r--r-- 99 root root   35921 Jan 19 2007 ant-javamail--2jpp.2.i386.rpm

-r--r--r-- 99 root root 1191912 Jan 19 2007 classpathx-mail--4jpp.2.i386.rpm

-r--r--r-- 99 root root  354324 Jan 19 2007 classpathx-mail-javadoc--4jpp.2.i386.rpm

-r--r--r-- 99 root root  538779 Jul 16 2007 fetchmail--1.1.el5.i386.rpm

-r--r--r-- 149 root root   14853 Jan 19 2007 mailcap--1.fc6.noarch.rpm

-r--r--r-- 99 root root 10199621 Feb 4 2008 mailman--4.el5.i386.rpm

-r--r--r-- 100 root root   56198 Jan 19 2007 mailx--44.2.2.i386.rpm

-r--r--r-- 100 root root  170371 Jan 19 2007 procmail-3.22-17.1.i386.rpm

-r--r--r-- 99 root root  646627 Jan 18 2007 sendmail--2.el5.i386.rpm

-r--r--r-- 99 root root  318825 Jan 18 2007 sendmail-cf--2.el5.i386.rpm

-r--r--r-- 113 root root  131258 Jan 18 2007 sendmail-devel--2.el5.i386.rpm

-r--r--r-- 99 root root  668921 Jan 18 2007 sendmail-doc--2.el5.i386.rpm

-r--r--r-- 148 root root 4493690 May 17 2007 squirrelmail--4.0.1.el5.noarch.rpm

-r--r--r-- 148 root root   58696 Jan 18 2007 system-switch-mail--12.noarch.rpm

-r--r--r-- 148 root root   17796 Jan 18 2007 system-switch-mail-gnome--12.noarch.rpm

[root@mail Server]#

[root@mail Server]# yum install squirrelmail--4.0.1.el5.noarch.rpm

Installing:

squirrelmail noarch -4.0.1.el5

squirrelmail--4.0.1.el5.noarch.rpm 4.3 M

Installing for dependencies:

httpd       i386  -22.el5 rehl-server                            1.2 M

php         i386  -23.el5 rehl-server                            1.2 M

php-cli     i386  -23.el5 rehl-server                            2.1 M

php-common  i386  -23.el5 rehl-server                            153 k

php-mbstring i386  -23.el5 rehl-server                            970 k

[root@mail Server]#

2.运行squirrelmail脚本更改配置

[root@mail Server]# cd /var/www/html

[root@mail html]# ln -s /usr/share/squirrelmail/ /var/www/html/mail

[root@mail config]# pwd

/var/www/html/mail/config

[root@mail config]# ./conf.pl –运行脚本需要系统装有perl解释器。

10.改变语言

2.改变服务器的配置

3.配置apache服务器

[root@mail config]# vim /etc/httpd/conf/httpd.conf

747 #AddDefaultCharset UTF-8

--禁用

[root@mail config]# service httpd restart

Stopping httpd:                                           [ OK ]

Starting httpd:                                           [ OK ]

[root@mail config]#

4.安装dovecot

--webmail需要imap服务器

[root@mail config]# yum list all|grep dovecot

This system is not registered with RHN.

RHN support will be disabled.

dovecot.i386                          -7.el5          rehl-server

[root@mail config]# yum install dovecot

Installing:

dovecot         i386        -7.el5           rehl-server        1.7 M

Installing for dependencies:

mysql           i386        -7.el5          rehl-server        4.1 M

perl-DBI        i386        1.52-2.el5            rehl-server        605 k [root@mail config]#

[root@mail config]# service dovecot start

Starting Dovecot Imap:                                    [ OK ]

[root@mail config]#

--测试发送webmail出现问题,squirrelmail没有配置server domain

[root@mail config]# tail -f /var/log/maillog

Aug 27 22:51:19 mail sendmail[7385]: p7REpJm0007385: Authentication-Warning: mail.bj.com: apache set sender to user1@localhost using -f

Aug 27 22:51:19 mail sendmail[7385]: p7REpJm0007385: from=user1@localhost, size=501, class=0, nrcpts=1, msgid=<1985.192.168.101.177.1314456679.squirrel@192.168.101.9>, relay=apache@localhost

Aug 27 22:51:19 mail postfix/smtpd[7386]: connect from localhost.localdomain[127.0.0.1]

Aug 27 22:51:19 mail postfix/smtpd[7386]: fatal: non-null host address bits in "127.0.0.1/8", perhaps you should use "127.0.0.0/8" instead

Aug 27 22:51:20 mail postfix/master[6931]: warning: process /usr/libexec/postfix/smtpd pid 7386 exit status 1

Aug 27 22:51:20 mail postfix/master[6931]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

Aug 27 22:51:20 mail sendmail[7385]: p7REpJm0007385: to=use2@bj.com, ctladdr=user1@localhost (501/501), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=30501, relay=[127.0.0.1] [127.0.0.1], dsn=, stat=Deferred: Connection reset by [127.0.0.1]

Aug 27 22:51:20 mail dovecot: imap-login: Login: user=<user1>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured

Aug 27 22:51:20 mail dovecot: IMAP(user1): Disconnected: Logged out

Aug 27 22:51:21 mail dovecot: imap-login: Login: user=<user1>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured

Aug 27 22:51:21 mail dovecot: IMAP(user1): Disconnected: Logged out

Aug 27 22:53:26 mail dovecot: imap-login: Login: user=<user1>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured

Aug 27 22:53:26 mail dovecot: IMAP(user1): Disconnected: Logged out

使用webmail测试邮件的收发

转载于:https://blog.51cto.com/sweetsingle/742190

linux-squirrel相关推荐

  1. squirrel sql client linux,SQuirreL SQL Client

    SQuirreL SQL Client是一款功能强大的服务器配置管理软件,该软件能够帮助用户快速.高效的配置服务器,可以用来查看/编辑数据库的内容.发出SQL命令,完美兼容Windows系统和mac. ...

  2. linux sql server客户端,Linux的MS SQL Server客户端SQuirrel SQL Client

    因为工作需要,要在ubuntu下连接mssql数据库,找了很久终于找到了SQuirreL SQL Client. SQuirreL SQL Client最大的魅力在于: 基于Java,具备良好的夸平台 ...

  3. linux sqlserver 管理工具,Linux连接SqlServer的图形化工具SQuirrel

    SQuirrel SQL 一款基于java的数据库管理工具. 所以可以运行在任意平台上,除了界面丑一点.在windows上我绝对不会选的,navicat多好. 安装 下载地址:https://sour ...

  4. Linux安装SQuirreL SQL Client

    环境和准备 操作系统: Ubuntu 20.04 SQuirreL: squirrel-sql-snapshot-20220326_1238-standard.jar Db2 driver: db2j ...

  5. Squirrel的安装(windows上Phoneix可视化工具)

    一.下载安装 下载地址:http://www.squirrelsql.org/ 下载所需版本 或者 从网址http://www.squirrelsql.org/下载相应版本的squirrel的安装ja ...

  6. linux 版本号 加号,Linux kernel编译生成的版本多一个加号“+”

    其实,一直以来,我们编译KVM(Linux kernel)生成的RPM包中的kernel版本总是带有一个"莫名其妙"的加号(+),其实我知道大概是因为我们修改了Linux.git( ...

  7. 0.linux笔记.....持续更新...

    0.0. VScode几点基本用法 0.1. 将UbuntuLauncher启动器移动到底部 0.2. 一个窗口中运行多个终端方法 1.Markdown的用法 2.source 用法 3.安装软件 4 ...

  8. 在 Linux 上搭建 Hubot 聊天机器人服务器

    在 Linux 上搭建 Hubot 聊天机器人服务器 1. 先确定安装了 Node.js 如果还没安装Node.js,就先安装Node.js.Node.js是绿色软件,只要解压安装包即可.这里假设已经 ...

  9. squirrel sql mysql_SQuirreL SQL Client的安装与配置(原创)

    1.在Windows下安装SQuirreL SQL Client SQuirreL SQL Client,一般是squirrel-sql-2.x.x-standard.zip,解压到任意目录后在cmd ...

  10. squirrel 脚本_Squirrel便携式Shell和脚本语言

    1799年,一位法国陆军工程师做出了惊人的发现. 不,不是鹅肝,卡门培尔奶酪,巴氏杀菌法或萨特法,而是罗斯塔石,这是解密埃及大部分古代象形文字的关键(参见图1). 图1. Rosetta石头,一种11 ...

最新文章

  1. BZOJ 3456 城市规划 (组合计数、DP、FFT)
  2. 方法区中的无用类回收
  3. 用计算机探索 按一定规律排列,探索规律练习题1
  4. 程序员去交友网站找女友,没想到找到了这个...
  5. android 测光模式,Android Camera1中的对焦与测光
  6. 飞康力推“一次付费”的存储定价模式
  7. HTTP GET/CONNECT代理区别
  8. Swagger生成WebAPI文档
  9. jdk Comparator接口
  10. Spring Security配置放行请求,将参数放置于请求体时放行失效
  11. WebStorm下载其他版本(历史版本)
  12. mysql 上下文切换_线程上下文切换
  13. AutoCAD CSCAD注册命令类型的控制
  14. [mybatis] sql语句无错误,但是执行多条sql语句时,抛出java.sql.SQLSyntaxErrorException...
  15. 美国计算机专业本科毕业薪酬,美国各专业本科毕业生薪酬盘点
  16. ecshop 数据库调试技巧 【强烈推荐】
  17. 传统算法与神经网络算法,最简单的神经网络算法
  18. MIKE 21 教程 0.1 软件介绍与教学目录
  19. SAP BW 详细教程
  20. java etl 简单实例_东方通ETL开发实例

热门文章

  1. linux下升级python2.0到python3.0
  2. JVM调优总结(二)-一些概念
  3. Python之与众不同
  4. ecshop 2.7.x 去版权 lengze.com
  5. selection at the technology management
  6. step by step approach for building interactive dash app using python: step 1
  7. msf principle
  8. 《工作细胞》电影观后感
  9. 你总是不要等到完全准备好了再去做事情
  10. 【转】mac os、linux及unix之间的关系