免费注册 查看新帖 |

Chinaunix

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

[Mail] maildrop:Unable to change to home directory [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-12-29 14:30 |只看该作者 |倒序浏览
[root@mailserver ~]# maildrop -V 9 -d walker@ekingstar.com
maildrop: authlib: groupid=1001
maildrop: authlib: userid=1001
maildrop: authlib: logname=walker@ekingstar.com, home=/var/mailbox/ekingstar.com/walker/, mail=(default)
maildrop: Changing to /var/mailbox/ekingstar.com/walker/
maildrop: Unable to change to home directory.
[root@mailserver ~]#

错误日志:
[root@mailserver ~]# tail /var/log/maillog
Dec 29 15:03:34 mailserver postfix/master[14142]: warning: /usr/libexec/postfix/0: bad command startup -- throttling
Dec 29 15:04:34 mailserver master[14167]: fatal: master_spawn: exec /usr/libexec/postfix/0: No such file or directory
Dec 29 15:04:35 mailserver postfix/master[14142]: warning: process /usr/libexec/postfix/0 pid 14167 exit status 1
Dec 29 15:04:35 mailserver postfix/master[14142]: warning: /usr/libexec/postfix/0: bad command startup -- throttling
Dec 29 15:05:29 mailserver postfix/qmgr[14143]: EF0F92A95B2: from=<root@ekingstar.com>, size=887, nrcpt=1 (queue active)
Dec 29 15:05:29 mailserver postfix/qmgr[14143]: warning: connect to transport smtp-amavis: No such file or directory
Dec 29 15:05:29 mailserver postfix/error[14169]: EF0F92A95B2: to=<root@ekingstar.com>, orig_to=<root>, relay=none, delay=8907, delays=8907/0.01/0/0.01, dsn=4.3.0, status=deferred (mail transport unavailable)
Dec 29 15:05:35 mailserver master[14171]: fatal: master_spawn: exec /usr/libexec/postfix/0: No such file or directory
Dec 29 15:05:36 mailserver postfix/master[14142]: warning: process /usr/libexec/postfix/0 pid 14171 exit status 1
Dec 29 15:05:36 mailserver postfix/master[14142]: warning: /usr/libexec/postfix/0: bad command startup -- throttling
[root@mailserver ~]#


这是什么原因啊??? /var/mailbox/目录中也没有东西....
[root@mailserver ~]# cat /etc/postfix/main.cf
config_directory=/etc/postfix
readme_directory=no
sample_directory=/etc/postfix
sendmail_path=/usr/sbin/sendmail
html_directory=no
setgid_group=postdrop
command_directory=/usr/sbin
manpage_directory=/usr/local/man
daemon_directory=/usr/libexec/postfix
newaliases_path=/usr/bin/newaliases
mailq_path=/usr/bin/mailq
queue_directory=/var/spool/postfix
mail_owner=postfix
######################################################
myhostname=mailserver.ekingstar.com
mydomain=ekingstar.com
myorigin=$mydomain
mydestination=$myhostname localhost localhost.$mydomain
mynetworks=127.0.0.0/8 172.28.0.0/24
inet_interfaces=all


#######################CYRUS_SASL#########################

broken_sasl_auth_clients=yes
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,
permit
smtpd_sasl_auth_enable=yes
smtpd_sasl_local_domain=
smtpd_sasl_security_options=noanonymous
smtpd_sasl_application_name=smtpd
smtpd_banner=Welcome to our $myhostname ESMTP.Warning:Version not Available!

########################SASL_END##########################


#########################Virtual Mailbos Settins##########
virtual_mailbox_base=/var/mailbox/
virtual_mailbox_maps=mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf
virtual_mailbox_domains=mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf
virtual_alias_domains=
virtual_alias_maps=mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf
#virtual_alias_maps=hash:/etc/aliases
virtual_uid_maps=static:1001
virtual_gid_maps=static:1001
virtual_transport=maildrop
maildrop_destination_recipient_limit=1
maildrop_destination_concurrency_limit=1
#########################MAILBOX END######################


########################Quota Settings####################
message_size_limit=1433600
virtual_mailbox_limit=20791520
virtual_create_maildirsize=yes
virtual_mailbox_extended=yes
virtual_mailbox_limit_maps=mysql:/etc/postfix/mysql/mysql_virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override=yes
virtual_maildir_limit_message=User's maildir has overdrawn his diskspace quota,try again late.
virtual_overquota_bounce=yes
#########################quota End########################


#######################Amavis Start#######################
content_filter=smtp-amavis:[127.0.0.1]:10024
max_use=10
######################Amavis End##########################
#alias_database=hash:/etc/postfix/aliases
#debug_peer_level=2
#debugger_command=
#PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
#=xxgdb $daemon_directory/$process_name $process_id & sleep 5

#sendmail_path = /usr/sbin/sendmail
#newaliases_path = /usr/bin/newaliases
#mailq_path =/usr/sbin/postdrop
#html_directory = /var/www/postfix_html
#manpage_directory = /usr/local/postfix/man

[ 本帖最后由 loyu 于 2008-12-29 15:04 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2008-12-29 15:38 |只看该作者
walker@ekingstar.com

你这个用户的主目录是home=/var/mailbox/ekingstar.com/walker/

论坛徽章:
0
3 [报告]
发表于 2008-12-29 16:20 |只看该作者

回复 #2 ttplay 的帖子

谢谢你回复,


这个用户的邮箱目录没有在/var/mailbox/下建立,就连ekingstar.com目录都建立不了!
这几天搞得快风掉了

论坛徽章:
0
4 [报告]
发表于 2008-12-29 16:23 |只看该作者
Dec 29 15:05:29 mailserver postfix/qmgr[14143]: warning: connect to transport smtp-amavis: No such file or directory

1.master.cf是否有这句:smtp-amavis unix -   -   n     -       2  smtp
2.确保AMAVISD已经打开
3./var/mailbox/ekingstar.com/walker/这个路径是否有创建?

论坛徽章:
0
5 [报告]
发表于 2008-12-29 16:56 |只看该作者

回复 #4 xmbbx 的帖子

谢谢你的回复

1.master.cf没有你说的那一句
2.AMAVISD启动的时候错误,那一行注释掉了
[root@mailserver ~]# /usr/local/sbin/amavisd debug
Problem in Amavis:KIM code: Mail:KIM::Verifier version 0.31 required--this is only version 0.29 at (eval 94) line 28.
BEGIN failed--compilation aborted at (eval 94) line 28.
[root@mailserver ~]#

3./var/mailbox/ekingstar.com/walker这是路径应该是mialdropmake.sh 脚本创建的

以下是部分/etc/amavisd.conf 的文件内容:
# COMMONLY ADJUSTED SETTINGS:

# @bypass_virus_checks_maps = (1);  # controls running of anti-virus code
# @bypass_spam_checks_maps  = (1);  # controls running of anti-spam code
# $bypass_decode_parts = 1;         # controls running of decoders&dearchivers

$max_servers = 8;            # num of pre-forked children (2..30 is common), -m
$daemon_user  = 'amavis';     # (no default;  customary: vscan or amavis), -u
$daemon_group = 'amavis';     # (no default;  customary: vscan or amavis), -g

$mydomain = 'ekingstar.com';   # a convenient default for other settings

# $MYHOME = '/var/amavis';   # a convenient default for other settings, -H
$TEMPBASE = "$MYHOME/tmp";   # working directory, needs to exist, -T
$ENV{TMPDIR} = $TEMPBASE;    # environment variable TMPDIR, used by SA, etc.
$QUARANTINEDIR = '/var/virusmails';  # -Q
# $quarantine_subdir_levels = 1;  # add level of subdirs to disperse quarantine
#$release_format = 'attach';     # 'attach', 'plain', 'resend'
# $report_format  = 'arf';        # 'attach', 'plain', 'resend', 'arf'     ####line 28

# $daemon_chroot_dir = $MYHOME;   # chroot directory or undef, -R

论坛徽章:
0
6 [报告]
发表于 2008-12-30 09:07 |只看该作者

回复 #5 loyu 的帖子

即然调用了smtp-amavis,先把amavis装好再说,google搜索下,一大堆安装这个的资料。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP