[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

debian/testing下exim4的配置问题。



本来在newsmth讨论上发的,但是半天也没有人回复,因为debian默认是exim4,所
以到这里问一下
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>begin<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
发信人: skybluee (天蓝), 信区: LinuxApp
标 题: 版上有配置exim4的吗
发信站: 水木社区 (Sun Jul 20 18:40:55 2008), 站内

系统debian/testing,邮件服务器是exim4。
阅读了exim4的手册,对exim4的配置文件做了一些更改,但是结果并不像期望的那
样,想请
大家帮忙分析一下:
我在/etc/exim4/conf.d/router下添加了一个350_exim4_config_pipe_bbsmail
th143127:/etc/exim4/conf.d/router# ls
00_exim4-config_header 500_exim4-config_hubuser
100_exim4-config_domain_literal 600_exim4-config_userforward
150_exim4-config_hubbed_hosts 700_exim4-config_procmail
200_exim4-config_primary 800_exim4-config_maildrop
300_exim4-config_real_local 850_exim4-config_lowuid
350_exim4_config_pipe_bbsmail 900_exim4-config_local_user
400_exim4-config_system_aliases mmm_mail4root
th143127:/etc/exim4/conf.d/router# cat 350_exim4_config_pipe_bbsmail
pipe_bbsmail:
driver = accept
transport = pipe_bbsmail
th143127:/etc/exim4/conf.d/router#

在/etc/exim4/conf.d/transport下添加了一个99_exim4_config_pipe_bbsmail
th143127:/etc/exim4/conf.d/transport# ls
00_exim4-config_header 30_exim4-config_mail_spool
10_exim4-config_transport-macros 30_exim4-config_procmail_pipe
30_exim4-config_address_file 30_exim4-config_remote_smtp
30_exim4-config_address_pipe 30_exim4-config_remote_smtp_smarthost
30_exim4-config_address_reply 35_exim4-config_address_directory
30_exim4-config_maildir_home 99_exim4_config_pipe_bbsmail
30_exim4-config_maildrop_pipe
th143127:/etc/exim4/conf.d/transport# cat 99_exim4_config_pipe_bbsmail
pipe_bbsmail:
driver = pipe
command = /bin/bash -c 'cat >> /tmp/testpipe'
th143127:/etc/exim4/conf.d/transport#

其它的地方没有做任何的更改。我期望的结果是,当向我的host发送给系统用户的
邮件,比
如说root和bbs,这两个用户能收到信。结果是,当使用mail命令的时候,bbs的终
端提示有
新信件,但是root的没有提示
th143127:/etc/exim4/conf.d/transport# ls /var/spool/mail/ -l
total 0
-rw------- 1 bbs mail 0 2008-07-20 18:37 bbs
-rw------- 1 root mail 0 2008-07-20 18:00 root
th143127:/etc/exim4/conf.d/transport#
当给非系统用户发信的时候,比如给aabb@th143127.ip.tsinghua.edu.cn发信的时
候,能执
行上面的command命令,生成/tmp/testpipe命令,但是这个文件没有生成,通过
mailq命令
查看也没有输出。

请大牛赐教!
--
???? ? ? ◆
? ? ???? ???? ???? ? ???? ????
? ?? ? ? ? ? ? ? ? ? ? ? ?
? ??? ? ? ???? ? ? ? ???? ? ?
? ? ? ? ? ? ? ? ? ? ?
??? ???? ???? ???? ? ???? ? ?


※ 来源:・水木社区 newsmth.net・[FROM: 202.108.12.*]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>end<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

我还有其它的问题,一并也附在这里。
我发现,bbs这个系统用户没有办法给root发信,mail -s testmail2root root
得到的结果是退信,如下,请问是为什么。我的配置文件除了上述更改,其它地方
没有动过。
另外root和bbs目录下也没有.forward文件
11 Mailer-Daemon@th1 Sun Jul 20 07:35 40/1546 Mail delivery failed:
returning message to sender
& 11
Message 11:
>From MAILER-DAEMON Sun Jul 20 07:35:44 2008
Envelope-to: bbs@th143127.ip.tsinghua.edu.cn
Delivery-date: Sun, 20 Jul 2008 07:35:44 -0400
X-Failed-Recipients: colinux@th143127.ip.tsinghua.edu.cn
Auto-Submitted: auto-replied
From: Mail Delivery System <Mailer-Daemon@th143127.ip.tsinghua.edu.cn>
To: bbs@th143127.ip.tsinghua.edu.cn
Subject: Mail delivery failed: returning message to sender
Date: Sun, 20 Jul 2008 07:35:44 -0400

This message was created automatically by mail delivery software.

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

colinux@th143127.ip.tsinghua.edu.cn
(generated from root@th143127.ip.tsinghua.edu.cn)
Unrouteable address

------ This is a copy of the message, including all the headers. ------

Return-path: <bbs@th143127.ip.tsinghua.edu.cn>
Received: from bbs by th143127.ip.tsinghua.edu.cn with local (Exim 4.69)
(envelope-from <bbs@th143127.ip.tsinghua.edu.cn>)
id 1KKXCa-0001S3-TI
for root@th143127.ip.tsinghua.edu.cn; Sun, 20 Jul 2008 07:35:44 -0400
To: root@th143127.ip.tsinghua.edu.cn
Subject: testmail
Message-Id: <E1KKXCa-0001S3-TI@th143127.ip.tsinghua.edu.cn>
From: bbs@th143127.ip.tsinghua.edu.cn
Date: Sun, 20 Jul 2008 07:35:44 -0400

hhe


-- 
Keep In Touch!
Electronics Engineering Department, Tsinghua University

Dorm Tel: 8610 5153 4319
Mobile: 86 13401088180
MSN: zhengmenghan0010@hotmail.com
Email: zhengmenghan0010@gmail.com, zmh05@mails.tsinghua.edu.cn 



Reply to: