本帖最后由 终わりない梦 于 2015-6-8 11:43 编辑
less /var/log/maillog
看端口,好像143 995端口都没有监听,看for s in httpd的时候提示的信息,启动IMAP的时候提示什么【地址家族不支持的协议】
less /var/log/maillog
Jun 6 15:37:51 localhost roundcube: IMAP Error: Login failed for 222@sunshine2013.pub from 121.9.251.114. Could not connect to 127.0.0.1:143
网上说更改配置文件/etc/dovecot/dovecot.conf
把listen = * [::]改成listen = * 然后重新for s in httpd iredapd amavisd clamd postfix dovecot cbpolicyd spamassassin clamd.amavisd saslauthd fail2ban; do /etc/init.d/$s restart; done
我试了,一样是Starting Dovecot Imap: Error:,问题依旧
肿么破
================搭建步骤如下=====================
登录www.net.cn,产品管理/续费,我的域名,sunshine2013.pub后面选择解析,添加解析
记录类型MX,主机记录空,记录值mail.sunshine2013.pub. 优先级5——保存
记录类型A,主机记录mail,记录值203.195.199.114(云服务器的公网IP)——保存
【可能还需要勾选这两个 然后启用一下】
www.qcloud.com登录云服务器后台,产品服务器,云服务器,勾选主机 重装centos6.5
putty远程登录
dig mail.sunshine2013.pub 看下解析到的云服务器的公网IP
hostname mail.sunshine2013.pub
bash
vi /etc/hosts 增加127.0.0.1 mail.sunshine2013.pub
wget https://bitbucket.org/zhb/iredma ... dMail-0.9.2.tar.bz2
tar jxvf iRedMail-0.9.2.tar.bz2
cd iRedMail-0.9.2/pkgs/
vi get_all.sh // 把 https://mirrors.fedoraproject.org 改为 http://mirrors.fedoraproject.org
sed -i 's/iredmail.org/106.187.51.47/g' get_all.sh
cd ..
sh iRedMail.sh
【安装界面】
欢迎界面yes,设置邮箱路径 默认next,webserver选Apache,存储方式选mysql,设置mysql的root密码,增加一个已购买的域名sunshine2013.pub,设置管理员邮箱的密码,选择套件 默认next,y继续,【然后开始下载安装】
< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/sysconfig/iptables, with SSHD port: 22. [Y|n]n
[ INFO ] Skip firewall rules.
< Question > Would you like to use MySQL configuration file shipped within iRedMail now?
< Question > File: /etc/my.cnf. [Y|n]y
搞定之后,【注意记下最后的文字有 webmail地址和管理后台地址、管理员账户和密码】
********************************************************************
* URLs of installed web applications:
*
* - Webmail:
* o Roundcube webmail: httpS://mail.sunshine2013.pub/mail/
*
* - Web admin panel (iRedAdmin): httpS://mail.sunshine2013.pub/iredadmin/
*
* You can login to above links with same credential:
*
* o Username: postmaster@sunshine2013.pub
* o Password: 111111
*
*
********************************************************************
for s in httpd iredapd amavisd clamd postfix dovecot cbpolicyd spamassassin clamd.amavisd saslauthd fail2ban; do /etc/init.d/$s restart; done
【可能会很多failed,没所谓,一般都是Shutting down和Stopping的会FAILED】
浏览器打开httpS://mail.sunshine2013.pub/iredadmin/ 选择简体中文
账户postmaster@sunshine2013.pub 密码111111
添加,用户,222@sunshine2013.pub 密码11111111,偏好简体中文,保存更改
浏览器打开httpS://mail.sunshine2013.pub/mail/ 登录222@sunshine2013.pub
===================================
已解决::::(据铭哥说 只有最新版0.9.2才会出现这个问题)
解决办法::(都是IPv6惹的祸)
vi /etc/dovecot/dovecot.conf
把listen = * [::]改成listen = *
还有以下两个位置的::1删掉,只保留address = 127.0.0.1
inet_listener lmtp {
# Listen on localhost
address = 127.0.0.1 ::1
port = 24
}
service managesieve-login {
inet_listener sieve {
# Listen on localhost
address = 127.0.0.1 ::1
port = 4190
}
然后重启/etc/init.d/dovecot restart
看到Starting是OK的。。。很激动{:4_91:}
然后登录邮箱成功(发邮件速度很快,收邮件很蛋疼 大约5分钟之后才收到)
less /var/log/maillog
看端口,好像143 995端口都没有监听,看for s in httpd的时候提示的信息,启动IMAP的时候提示什么【地址家族不支持的协议】
less /var/log/maillog
Jun 6 15:37:51 localhost roundcube: IMAP Error: Login failed for 222@sunshine2013.pub from 121.9.251.114. Could not connect to 127.0.0.1:143
网上说更改配置文件/etc/dovecot/dovecot.conf
把listen = * [::]改成listen = * 然后重新for s in httpd iredapd amavisd clamd postfix dovecot cbpolicyd spamassassin clamd.amavisd saslauthd fail2ban; do /etc/init.d/$s restart; done
我试了,一样是Starting Dovecot Imap: Error:,问题依旧
肿么破
================搭建步骤如下=====================
登录www.net.cn,产品管理/续费,我的域名,sunshine2013.pub后面选择解析,添加解析
记录类型MX,主机记录空,记录值mail.sunshine2013.pub. 优先级5——保存
记录类型A,主机记录mail,记录值203.195.199.114(云服务器的公网IP)——保存
【可能还需要勾选这两个 然后启用一下】
www.qcloud.com登录云服务器后台,产品服务器,云服务器,勾选主机 重装centos6.5
putty远程登录
dig mail.sunshine2013.pub 看下解析到的云服务器的公网IP
hostname mail.sunshine2013.pub
bash
vi /etc/hosts 增加127.0.0.1 mail.sunshine2013.pub
wget https://bitbucket.org/zhb/iredma ... dMail-0.9.2.tar.bz2
tar jxvf iRedMail-0.9.2.tar.bz2
cd iRedMail-0.9.2/pkgs/
vi get_all.sh // 把 https://mirrors.fedoraproject.org 改为 http://mirrors.fedoraproject.org
sed -i 's/iredmail.org/106.187.51.47/g' get_all.sh
cd ..
sh iRedMail.sh
【安装界面】
欢迎界面yes,设置邮箱路径 默认next,webserver选Apache,存储方式选mysql,设置mysql的root密码,增加一个已购买的域名sunshine2013.pub,设置管理员邮箱的密码,选择套件 默认next,y继续,【然后开始下载安装】
< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/sysconfig/iptables, with SSHD port: 22. [Y|n]n
[ INFO ] Skip firewall rules.
< Question > Would you like to use MySQL configuration file shipped within iRedMail now?
< Question > File: /etc/my.cnf. [Y|n]y
搞定之后,【注意记下最后的文字有 webmail地址和管理后台地址、管理员账户和密码】
********************************************************************
* URLs of installed web applications:
*
* - Webmail:
* o Roundcube webmail: httpS://mail.sunshine2013.pub/mail/
*
* - Web admin panel (iRedAdmin): httpS://mail.sunshine2013.pub/iredadmin/
*
* You can login to above links with same credential:
*
* o Username: postmaster@sunshine2013.pub
* o Password: 111111
*
*
********************************************************************
for s in httpd iredapd amavisd clamd postfix dovecot cbpolicyd spamassassin clamd.amavisd saslauthd fail2ban; do /etc/init.d/$s restart; done
【可能会很多failed,没所谓,一般都是Shutting down和Stopping的会FAILED】
浏览器打开httpS://mail.sunshine2013.pub/iredadmin/ 选择简体中文
账户postmaster@sunshine2013.pub 密码111111
添加,用户,222@sunshine2013.pub 密码11111111,偏好简体中文,保存更改
浏览器打开httpS://mail.sunshine2013.pub/mail/ 登录222@sunshine2013.pub
===================================
已解决::::(据铭哥说 只有最新版0.9.2才会出现这个问题)
解决办法::(都是IPv6惹的祸)
vi /etc/dovecot/dovecot.conf
把listen = * [::]改成listen = *
还有以下两个位置的::1删掉,只保留address = 127.0.0.1
inet_listener lmtp {
# Listen on localhost
address = 127.0.0.1 ::1
port = 24
}
service managesieve-login {
inet_listener sieve {
# Listen on localhost
address = 127.0.0.1 ::1
port = 4190
}
然后重启/etc/init.d/dovecot restart
看到Starting是OK的。。。很激动{:4_91:}
然后登录邮箱成功(发邮件速度很快,收邮件很蛋疼 大约5分钟之后才收到)
0
===================================
已解决::::(据铭哥说 只有最新版0.9.2才会出现这个问题)
解决办法::(都是IPv6惹的祸)
vi /etc/dovecot/dovecot.conf
把listen = * [::]改成listen = *
还有以下两个位置的::1删掉,只保留address = 127.0.0.1
inet_listener lmtp {
# Listen on localhost
address = 127.0.0.1 ::1
port = 24
}
service managesieve-login {
inet_listener sieve {
# Listen on localhost
address = 127.0.0.1 ::1
port = 4190
}
然后重启/etc/init.d/dovecot restart
看到Starting是OK的。。。很激动
然后登录邮箱成功(发邮件速度很快,收邮件很蛋疼 大约5分钟之后才收到)
已解决::::(据铭哥说 只有最新版0.9.2才会出现这个问题)
解决办法::(都是IPv6惹的祸)
vi /etc/dovecot/dovecot.conf
把listen = * [::]改成listen = *
还有以下两个位置的::1删掉,只保留address = 127.0.0.1
inet_listener lmtp {
# Listen on localhost
address = 127.0.0.1 ::1
port = 24
}
service managesieve-login {
inet_listener sieve {
# Listen on localhost
address = 127.0.0.1 ::1
port = 4190
}
然后重启/etc/init.d/dovecot restart
看到Starting是OK的。。。很激动
然后登录邮箱成功(发邮件速度很快,收邮件很蛋疼 大约5分钟之后才收到)
编辑回复