免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
123
最近访问板块 发新帖
楼主: 佛光普照
打印 上一主题 下一主题

[Mail] 安装postfix的无法创建邮件域目录 [复制链接]

论坛徽章:
0
21 [报告]
发表于 2005-09-29 21:47 |只看该作者

安装postfix的无法创建邮件域目录

在安装amavisd-new-2.3.2版本的过程当中又遇到了很多的问题,最值得提出的是安装完一些perl的组件后调试amavisd debug出现错误中断,提示为:
Sep 29 21:13:59 PostFix /usr/local/sbin/amavisd[18017]: starting.  /usr/local/sbin/amavisd at PostFix amavisd-new-2.3.0 (20050424), Unicode aware, LANG=zh_CN.GB18030
Sep 29 21:13:59 PostFix /usr/local/sbin/amavisd[18017]: user=, EUID: 0 (0);  group=, EGID: 0 10 6 4 3 2 1 0 (0 10 6 4 3 2 1 0)
Sep 29 21:13:59 PostFix /usr/local/sbin/amavisd[18017]: Perl version               5.008
Sep 29 21:14:00 PostFix /usr/local/sbin/amavisd[18017]: INFO: no optional modules: Encode::Unicode::UTF7 unicore:VA.pl Mail::SpamAssassin::SQLBasedAddrList DBD::mysql Sys::Hostname::Long Mail::SPF:uery Razor2::Client::Agent Net::CIDR::Lite
Sep 29 21:14:00 PostFix /usr/local/sbin/amavisd[18017]: Net::Server: 2005/09/29-21:14:00 Amavis (type Net::Server:reForkSimple) starting! pid(18017)
Sep 29 21:14:00 PostFix /usr/local/sbin/amavisd[18017]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
Sep 29 21:14:00 PostFix /usr/local/sbin/amavisd[18017]: Net::Server: Setting gid to "54323 54323"
Sep 29 21:14:00 PostFix /usr/local/sbin/amavisd[18017]: Net::Server: 2005/09/29-21:14:00 Couldn't become gid "54323": \n\n  at line 486 in file /usr/lib/perl5/site_perl/5.8.0/Net/Server.pm
Sep 29 21:14:00 PostFix /usr/local/sbin/amavisd[18017]: Net::Server: 2005/09/29-21:14:00 Server closing!

经过多方查找原因,最有可能的是:
perl的版本与NET::SERVER版本之间存在问题,可以重新下载Net-Server的0.87版重新编译应该可以解决问题。
cd /usr/local/src
wget http://www.xmission.com/~jmcrc/Net-Server-0.87.tar.gz
tar xzvf Net-Server-0.87.tar.gz
cd Net-Server-0.87
perl Makefile.PL
make
make install
我测试过我的错误提示没有了。可以再作进一步的调试了!

论坛徽章:
0
22 [报告]
发表于 2005-09-30 11:04 |只看该作者

安装postfix的无法创建邮件域目录

经过一些时间的努务终于有所小成啊,但是现在好像还有一些比较困难的问题存在。我的clamav运行后出现了错误提示:
#clamd status
前台提示为:
LibClamAV Warning: ********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.  ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/faq.html ***
LibClamAV Warning: ********************************************************
LibClamAV Warning: ********************************************************
LibClamAV Warning: ***  This version of the ClamAV engine is outdated.  ***
LibClamAV Warning: *** DON'T PANIC! Read http://www.clamav.net/faq.html ***
LibClamAV Warning: ********************************************************
提示是过期,但是目日志中提示的是:
+++ Started at Fri Sep 30 11:06:58 2005
clamd daemon 0.84 (OS: linux-gnu, ARCH: i386, CPU: i686)
Log file size limited to 1048576 bytes.
Verbose logging activated.
Running as user amavis (UID 12347, GID 54323)
Reading databases from /usr/local/share/clamav
Protecting against 40394 viruses.
ERROR: bind() error: Address already in use

关键是:ERROR: bind() error: Address already in use
我有看到过这样的错误提示,说是因为clamd的BUG,需要打补订才行。
我现在又找不到原来看过的网站,真是一下忘了记来的错啊,有没有哪位大哥看
到过此错误,解决方法是不是下载补订呢?

论坛徽章:
0
23 [报告]
发表于 2005-09-30 11:09 |只看该作者

安装postfix的无法创建邮件域目录

装个新版本应该能解决

论坛徽章:
0
24 [报告]
发表于 2005-09-30 17:09 |只看该作者

安装postfix的无法创建邮件域目录

我安装了一个clamav-0.87版本的,OK,可以解决此类问题了!呵呵谢谢!
我的安装还在继续进行!

论坛徽章:
0
25 [报告]
发表于 2005-10-14 14:31 |只看该作者

安装postfix的无法创建邮件域目录

时至今日大概安装成功了,安装了四次了。理顺了各软件之间的关系,有哪位遇了相关的问题可以在这里跟贴。结合大家的力量一起解决。

论坛徽章:
0
26 [报告]
发表于 2005-10-17 15:06 |只看该作者

安装postfix的无法创建邮件域目录

问题一:对postfix的管理有许多的优秀工具,包括邮件日志分析工具,访问工具;邮件发送和接收工具等。
具体的有:James S. Seymour用perl写了一个叫pflogsumm.pl的脚本,可以到这里下载:http://jimsun.linxnet.com/postfix_contrib.html
其对日志的分析结果:
Grand Totals
------------
messages

      6   received
      4   delivered
      0   forwarded
      4   deferred  (68  deferrals)
      8   bounced
      4   rejected (50%)
      0   reject warnings
      0   held
      0   discarded (0%)

  12442   bytes received
   8637   bytes delivered
      1   senders
      1   sending hosts/domains
      1   recipients
      1   recipient hosts/domains


Per-Day Traffic Summary
    date          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    Oct 16 2005         0          0         38
    Oct 17 2005         6          4         30          8          4

Per-Hour Traffic Daily Average
    time          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    0000-0100           0          0          1          0          0
    0100-0200           0          0          1          0          0
    0200-0300           0          0          1          0          0
    0300-0400           0          0          1          0          0
    0400-0500           1          0          6          0          0
    0500-0600           0          0          2          0          0
    0600-0700           0          0          3          0          0
    0700-0800           0          0          3          0          0
    0800-0900           2          2          2          4          2
    0900-1000           0          0          1          0          0
    1000-1100           0          0          1          0          0
    1100-1200           0          0          1          0          0
    1200-1300           0          0          1          0          0
    1300-1400           0          0          1          0          0
    1400-1500           0          0          0          0          0
[root@PostFix lhg]# cat result.txt   

Grand Totals
------------
messages

      6   received
      4   delivered
      0   forwarded
      4   deferred  (68  deferrals)
      8   bounced
      4   rejected (50%)
      0   reject warnings
      0   held
      0   discarded (0%)

  12442   bytes received
   8637   bytes delivered
      1   senders
      1   sending hosts/domains
      1   recipients
      1   recipient hosts/domains


Per-Day Traffic Summary
    date          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    Oct 16 2005         0          0         38
    Oct 17 2005         6          4         30          8          4

Per-Hour Traffic Daily Average
    time          received  delivered   deferred    bounced     rejected
    --------------------------------------------------------------------
    0000-0100           0          0          1          0          0
    0100-0200           0          0          1          0          0
    0200-0300           0          0          1          0          0
    0300-0400           0          0          1          0          0
    0400-0500           1          0          6          0          0
    0500-0600           0          0          2          0          0
    0600-0700           0          0          3          0          0
    0700-0800           0          0          3          0          0
    0800-0900           2          2          2          4          2
    0900-1000           0          0          1          0          0
    1000-1100           0          0          1          0          0
    1100-1200           0          0          1          0          0
    1200-1300           0          0          1          0          0
    1300-1400           0          0          1          0          0
    1400-1500           0          0          0          0          0
    1500-1600           0          0          1          0          0
    1600-1700           0          0          2          0          0
    1700-1800           0          0          1          0          0
    1800-1900           0          0          1          0          0
    1900-2000           0          0          1          0          0
    2000-2100           0          0          1          0          0
    2100-2200           0          0          1          0          0
    2200-2300           0          0          0          0          0
    2300-2400           0          0          1          0          0

Host/Domain Summary: Message Delivery
sent cnt  bytes   defers   avg dly max dly host/domain
-------- -------  -------  ------- ------- -----------
      4     8637       68    16.9 h   28.9 h  www.freeshare.com.cn

Host/Domain Summary: Messages Received
msg cnt   bytes   host/domain
-------- -------  -----------
      6    12442   www.freeshare.com.cn

Senders by message count
------------------------
      6   root@www.freeshare.com.cn

Recipients by message count
---------------------------
      4   root@www.freeshare.com.cn

Senders by message size
-----------------------
  12442   root@www.freeshare.com.cn

Recipients by message size
--------------------------
   8637   root@www.freeshare.com.cn

message deferral detail
-----------------------
  smtp (total: 6
        68   127.0.0.1[127.0.0.1]: Connection refused

message bounce detail (by relay)
--------------------------------
  maildrop (total:
         8   user unknown. Command output: Invalid user specified.

message reject detail
---------------------
  VRFY
    to=<test@feifei.com>; proto=ESMTP helo=<localhost>; (total: 2)
           2   PostFix
    to=<testuser@feifei.com>; proto=ESMTP helo=<localhost>; (total: 1)
           1   PostFix
    to=<testuser>; proto=ESMTP helo=<localhost>; (total: 1)
           1   PostFix

message reject warning detail: none

message hold detail: none

message discard detail: none

smtp delivery failures
----------------------
  connection refused (total: 6
        68   127.0.0.1

Warnings
--------
  local (total: 2)
         2   dict_nis_init: NIS domain name not set - NIS lookups disabled
  smtpd (total: 1)
         1   dict_nis_init: NIS domain name not set - NIS lookups disabled

Fatal Errors
------------
  postmap (total: 1)
         1   usage: postmap [-Nfinoprsvw] [-c config_dir] [-d key] [-q key] ...

Panics: none

Master daemon messages
----------------------
      1   daemon started -- version 2.2.3, configuration /etc/postfix
      1   reload configuration /etc/postfix
      1   terminating on signal 15

还有一些日志分析工具如awstats、大家一起来跟帐,看一看哪个工具最好用等。

论坛徽章:
1
技术图书徽章
日期:2014-04-16 11:36:47
27 [报告]
发表于 2007-07-16 17:57 |只看该作者
終于找到精華暸.收藏慢慢看.謝謝

论坛徽章:
0
28 [报告]
发表于 2007-09-05 09:42 |只看该作者
原帖由 佛光普照 于 2005-9-27 17:29 发表
我现在修改了authdaemond的认证方式之后可以正常的发送邮件了。但是却无法认证通过,是这样,在SMTP需要身份认证时不选也可以发送邮件!
我正在查找下一步的原因,欢迎遇到过的朋友一起分享你的成功经验!

我也遇到了这个问题了,不知道 LZ 是如何解决的呢?

论坛徽章:
0
29 [报告]
发表于 2007-09-25 16:25 |只看该作者
配置文件号称使用了apache的运行用户
#邮件账号的uid, 使用apache的运行用户
virtual_uid_maps = static:1001
virtual_gid_maps = static:1001
而设置权限用了vmail
建立/var/mailbox并设置权限
# mkdir /var/mailbox
# chown -R vmail:vmail /var/mailbox
# chmod -R ug+rwx,o-rwx /var/mailbox
请确认vmail的uid是1001吗?

论坛徽章:
0
30 [报告]
发表于 2008-05-14 17:22 |只看该作者
可爱的猫咪看一下我这个。
和他的错一样的。
May 14 17:09:28 erabay postfix/master[7872]: daemon started -- version 2.4.5, configuration /etc/postfix
May 14 17:10:15 erabay postfix/smtpd[7876]: connect from localhost[127.0.0.1]
May 14 17:10:15 erabay postfix/smtpd[7876]: 178FE945F2: client=localhost[127.0.0.1]
May 14 17:10:15 erabay postfix/cleanup[7879]: 178FE945F2: message-id=<20080514091015.178FE945F2@mail.erabay.com>
May 14 17:10:15 erabay postfix/qmgr[7875]: 178FE945F2: from=<weifeng270@gmail.com>, size=514, nrcpt=1 (queue active)
May 14 17:10:15 erabay postfix/smtpd[7876]: disconnect from localhost[127.0.0.1]
May 14 17:10:15 erabay postfix/qmgr[7875]: warning: connect to transport vmail: No such file or directory
May 14 17:10:15 erabay postfix/error[7880]: 178FE945F2: to=<dddddddddddddd@erabay.cn>, relay=none, delay=0.11, delays=0.05/0.04/0/0.02, dsn=4.3.0, status=deferred (mail transport unavailable)
May 14 17:14:37 erabay postfix/smtpd[7915]: connect from localhost[127.0.0.1]
May 14 17:14:37 erabay postfix/smtpd[7915]: 8E7B9945FC: client=localhost[127.0.0.1]
May 14 17:14:37 erabay postfix/cleanup[7918]: 8E7B9945FC: message-id=<20080514091437.8E7B9945FC@mail.erabay.com>
May 14 17:14:37 erabay postfix/qmgr[7875]: 8E7B9945FC: from=<weifeng270@gmail.com>, size=496, nrcpt=1 (queue active)
May 14 17:14:37 erabay postfix/qmgr[7875]: warning: connect to transport vmail: No such file or directory
May 14 17:14:37 erabay postfix/smtpd[7915]: disconnect from localhost[127.0.0.1]
May 14 17:14:37 erabay postfix/error[7919]: 8E7B9945FC: to=<sss@www.kkk.com>, relay=none, delay=0.11, delays=0.05/0.02/0/0.04, dsn=4.3.0, status=deferred (mail transport unavailable)
May 14 17:19:28 erabay postfix/qmgr[7875]: 178FE945F2: from=<weifeng270@gmail.com>, size=514, nrcpt=1 (queue active)
May 14 17:19:28 erabay postfix/qmgr[7875]: warning: connect to transport vmail: No such file or directory
May 14 17:19:28 erabay postfix/error[7942]: 178FE945F2: to=<dddddddddddddd@erabay.cn>, relay=none, delay=554, delays=554/0.04/0/0.03, dsn=4.3.0, status=deferred (mail transport unavailable)
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP