免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 8838 | 回复: 12
打印 上一主题 下一主题

[Mail] 高手救命啊,服务器收不到邮件. [复制链接]

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-30 17:53 |只看该作者 |倒序浏览
5可用积分
现在遇到一个重大问题,就是往外发邮件正常,但收不到邮件.DNS 的解析已设好.
在maillog中出现大量这样的信息.



Dec 30 17:45:12 localhost postfix/virtual[18832]: warning: recipient 3c@3c.com: bad uid 89 in virtual_uid_maps
Dec 30 17:45:12 localhost postfix/virtual[18833]: warning: recipient tony@extmail.org: bad uid 89 in virtual_uid_maps


其中89是我postfix的gid,应该没错啊.

这里怎么一回事呢?

这里是我postfix中的main.cf的配置:

virtual_mailbox_base = /var/mailbox
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_uid_maps = static:89
virtual_gid_maps = static:89
virtual_transport = virtual
maildrop_destination_recipient_limit = 1
maildrop_destination_concurrency_limit = 1
message_size_limit = 14336000
virtual_mailbox_limit = 20971520
virtual_create_maildirsize = yes
virtual_mailbox_extended = yes
virtual_mailbox_limit_maps = mysql:/etc/postfix/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = Sorry, the user's maildir has overdrawn his diskspace quota, please Tidy your mailbox and try again later.
virtual_overquota_bounce = yes

最佳答案

查看完整内容

下面是我的apache相关配置部分注意红色部分ServerAdmin ServerName mail.test.comDocumentRoot /var/www/extsuite/extmail/html/ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgiAlias /extmail /var/www/extsuite/extmail/htmlScriptAlias /extman/cgi /var/www/extsuite/extman/cgiAlias /extman /var/www/extsuite/extman/htmlAlias /phpmyadmin /var/www/html/phpmyadminAlias /phpsysinfo /var/www/html/phpsysinfoAl ...

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
2 [报告]
发表于 2008-12-30 17:53 |只看该作者
下面是我的apache相关配置部分
注意红色部分

<VirtualHost mail.test.com:80>
ServerAdmin postmaster@test.com
ServerName mail.test.com
DocumentRoot /var/www/extsuite/extmail/html/
ScriptAlias /extmail/cgi /var/www/extsuite/extmail/cgi
Alias /extmail /var/www/extsuite/extmail/html
ScriptAlias /extman/cgi /var/www/extsuite/extman/cgi
Alias /extman /var/www/extsuite/extman/html
Alias /phpmyadmin /var/www/html/phpmyadmin
Alias /phpsysinfo /var/www/html/phpsysinfo
Alias /mailscanner /var/www/html/mailscanner
SuexecUserGroup postfix postfix
</VirtualHost>

论坛徽章:
0
3 [报告]
发表于 2008-12-30 21:56 |只看该作者
原帖由 yuantong 于 2008-12-30 17:53 发表
现在遇到一个重大问题,就是往外发邮件正常,但收不到邮件.DNS 的解析已设好.
在maillog中出现大量这样的信息.



Dec 30 17:45:12 localhost postfix/virtual[18832]: warning: recipient 3c@3c.com: bad u ...

Re: bad uid XX in virtual_uid_maps

From: Victor Duchovni (no email)
Date: Fri Dec 16 2005 - 13:25:24 EST
# Next message: Ajay Sharma: "Re: bad uid XX in virtual_uid_maps"

    * Previous message: Ajay Sharma: "bad uid XX in virtual_uid_maps"
    * Maybe in reply to: Ajay Sharma: "bad uid XX in virtual_uid_maps"
    * Next in thread: Ajay Sharma: "Re: bad uid XX in virtual_uid_maps"
    * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]

On Fri, Dec 16, 2005 at 10:20:55AM -0800, Ajay Sharma wrote:

>
> can someone tell me why I'm getting this message:
>
> status=deferred (recipient XXX: bad uid 89 in virtual_uid_maps)
>
> when my config is:
>
> virtual_minium_uid = 87
> virtual_uid_maps = static:89
> virtual_gid_maps = static:89
>
> uid 89 is 'vpopmail' in /etc/passwd
> gid 89 is 'vchkpw' in /etc/group
>
> 89 is surely higher then 87 right? I'm adopting this system from
> another person. When I rebuild it, the uid is going to be much higher
> so it doesn't get mixed in with system accounts.
>

This is the uid of the "postfix" ($mail_owner) user on many systems. You
MUST NOT use this user for anything outside of Postfix. Mailboxes and
POP/IMAP servers are outside Postfix.

http://www.irbs.net/internet/postfix/0512/1238.html

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
4 [报告]
发表于 2008-12-31 10:03 |只看该作者
postfix是rpm包安装的?

论坛徽章:
0
5 [报告]
发表于 2008-12-31 11:16 |只看该作者
virtual_uid_maps和virtual_gid_maps参数决定了postfix的virtual mda投递邮件到虚拟邮箱时,应该继承的系统账户。
virtual_uid_maps最好不要用postfix账号,可新建一账号,跟virtual_mailbox_base指定的目录用户一致。

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
6 [报告]
发表于 2008-12-31 16:05 |只看该作者
现在甚至连页面都进不了

启用了fastcgi,现在甚至连页面都进不了

不启用,就说没权限

在日志里报了很多这样的错,麻烦高手们帮帮忙

Wed Dec 31 15:48:18 2008] [error] [client 58.xx.39.xxx] BEGIN failed--compilation aborted at /home/extsuite/extmail/libs/Ext/FCGI.p
m line 15.
[Wed Dec 31 15:48:18 2008] [error] [client 58.xx.39.xxx] Compilation failed in require at /home/extsuite/extmail/dispatch.fcgi line
29.
[Wed Dec 31 15:48:18 2008] [error] [client 58.xx.39.xxx] BEGIN failed--compilation aborted at /home/extsuite/extmail/dispatch.fcgi l
ine 30.
[Wed Dec 31 15:48:18 2008] [error] [client 58.xx.39.xxx] Premature end of script headers: dispatch.fcgi
58.xx.39.xxx - - [31/Dec/2008:15:48:18 +0800] "GET /extmail/cgi/index.cgi HTTP/1.1" 500 618
58.xx.39.xxx - - [31/Dec/2008:15:48:29 +0800] "GET /extmail/cgi/index.cgi HTTP/1.1" 200 9311
58.xx.39.xxx - - [31/Dec/2008:15:48:29 +0800] "GET /extmail/default/css/login.css HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:29 +0800] "GET /extmail/default/js/common.js HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:29 +0800] "GET /extmail/default/js/menu.js HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:30 +0800] "GET /extmail/images/donate.png HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:30 +0800] "GET /extmail/default/images/logo.gif HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:30 +0800] "GET /extmail/images/sl.gif HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:30 +0800] "GET /extmail/default/images/splash.jpg HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:48:30 +0800] "GET /extmail/default/images/rb.gif HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:49:04 +0800] "POST /extmail/cgi/index.cgi HTTP/1.1" 200 940
58.xx.39.xxx - - [31/Dec/2008:15:49:05 +0800] "GET /extmail/default/css/newstyle.css HTTP/1.1" 304 -
58.xx.39.xxx - - [31/Dec/2008:15:49:07 +0800] "GET /extmail/cgi/index.cgi HTTP/1.1" 200 4658
58.xx.39.xxx - - [31/Dec/2008:15:49:08 +0800] "GET /extmail/cgi/index.cgi?__mode=welcome&sid=ffcfe57a409877cd489708d9a662ae00 HTTP/1
.1" 200 46
58.xx.39.xxx - - [31/Dec/2008:15:59:38 +0800] "GET /extmail HTTP/1.1" 301 317
58.xx.39.xxx - - [31/Dec/2008:15:59:38 +0800] "GET /extmail/ HTTP/1.1" 304 -
[Wed Dec 31 16:00:03 2008] [error] [client 58.xx.39.xxx] FastCGI: comm with (dynamic) server "/home/extsuite/extmail/dispatch.fcgi"
aborted: (first read) idle timeout (30 sec), referer: http://mail.xxxx.com/extmail/cgi/index.cgi
[Wed Dec 31 16:00:03 2008] [error] [client 58.xx.39.xxx] FastCGI: incomplete headers (0 bytes) received from server "/home/extsuite/
extmail/dispatch.fcgi", referer: http://mail.xxxx.com/extmail/cgi/index.cgi
58.xx.39.xxx - - [31/Dec/2008:15:59:29 +0800] "GET /extmail/cgi/index.cgi?__mode=welcome&sid=ffcfe57a409877cd489708d9a662ae00 HTTP/1
.1" 500 618
[Wed Dec 31 16:00:12 2008] [error] [client 58.xx.39.xxx] FastCGI: comm with (dynamic) server "/home/extsuite/extmail/dispatch.fcgi"
aborted: (first read) idle timeout (30 sec)
[Wed Dec 31 16:00:12 2008] [error] [client 58.xx.39.xxx] FastCGI: incomplete headers (0 bytes) received from server "/home/extsuite/
extmail/dispatch.fcgi"
58.xx.39.xxx - - [31/Dec/2008:15:59:39 +0800] "GET /extmail/cgi/index.cgi HTTP/1.1" 500 618

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
7 [报告]
发表于 2008-12-31 16:13 |只看该作者
是不是用的apache?


用apache暂时就别用fcgi的方式,改为Suexec方式看看

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
8 [报告]
发表于 2008-12-31 16:19 |只看该作者
请问怎样改成Suexec 方式呢,恳请指教

论坛徽章:
8
综合交流区版块每周发帖之星
日期:2015-12-02 15:03:53数据库技术版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-10-02 06:20:00IT运维版块每日发帖之星
日期:2015-09-14 06:20:00金牛座
日期:2014-10-10 11:23:34CU十二周年纪念徽章
日期:2013-10-24 15:41:34酉鸡
日期:2013-10-19 10:17:1315-16赛季CBA联赛之北京
日期:2017-03-06 15:12:44
9 [报告]
发表于 2008-12-31 16:27 |只看该作者
extmail的文档没有仔细看呀

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
10 [报告]
发表于 2009-01-01 10:05 |只看该作者
谢谢ruochen

但我现在又遇到另外一个问题.就是
Jan  1 10:01:34 localhost postfix/smtpd[4025]: warning: unknown[121.9.xxx.xx]: SASL LOGIN authentication failed: authentication failure

下面是我的postfix配置,麻烦各位指定一下
root@mail postfix]# postconf -n
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
html_directory = no
mail_owner = postfix
mailq_path = /usr/bin/mailq
manpage_directory = /usr/local/man
message_size_limit = 14336000
mydomain = xxxx.com
myhostname = mail.xxxx.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /etc/postfix
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_banner = Welcome to our $myhostname ESMTP,Warning: Version not Available!
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_invalid_hostname,reject_non_fqdn_hostname,reject_unknown_sender_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,reject_unknown_recipient_domain,reject_unauth_pipelining,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
unknown_local_recipient_reject_code = 550
virtual_alias_domains =
virtual_alias_maps = mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:689
virtual_mailbox_base = /var/mailbox
virtual_mailbox_domains = mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 20971520
virtual_mailbox_maps = mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 89
virtual_transport = virtual
virtual_uid_maps = static:689
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP