我很难让Exim和Cyrus lmtp通话。
我知道lmtp收到了。它正在监听端口2003。我使用下面的perl脚本来测试它。
!/usr/bin/perl -w
use Net::LMTP;
my $lmtp = Net::LMTP->new('localhost', 2003);
$lmtp->mail($ENV{USER});
$lmtp->to('test@example.com');
$lmtp->data();
$lmtp->datasend("To: postmaster\n");
$lmtp->datasend("\n");
$lmtp->datasend("A simple test message\n");
$lmtp->dataend();
$lmtp->quit;执行它会产生一个文件,1.出现在适当的cyrus假脱机文件夹中:
root@myhost:/var/spool/cyrus/mail/domain/e/example.com/t/user/test# cat 1.
Return-Path:
Received: from myhost.example.net (localhost [127.0.0.1])
by myhost.example.net (Cyrus 2.5.10-Debian-2.5.10-3) with LMTPA;
Sun, 07 Oct 2018 12:45:48 +0100
X-Sieve: CMU Sieve 2.4
To: postmaster
Message-ID:
Date: Sun, 07 Oct 2018 12:45:48 +0100
A simple test message我正在运行我自己的自定义构建的exim。
执行exim的-bt测试路由选项
/usr/exim/bin/exim -bt test@example.com结果:
test@example.com
router = cyrus_vdom, transport = cyrus_ltcp以下是进出口路由器和传输:
cyrus_vdom:
driver = accept
domains = +cyrus_domains
transport = cyrus_ltcp
no_more
cyrus_ltcp:
driver = smtp
protocol = lmtp
hosts = localhost
port = 2003消息被卡在exim中,并执行
exim -qff 不会把他们转移出去。
2018-10-07 12:35:48 exim 4.91 daemon started: pid=11455, -q30m, listening for SMTP on port 25 (IPv6 and IPv4) port 587 (IPv6 and IPv4) and for SMTPS on port 465 (IPv6 and IPv4)
2018-10-07 12:35:48 Start queue run: pid=11456
2018-10-07 12:35:48 1g8uZF-00027o-TS Message is frozen
2018-10-07 12:35:48 1g8oBv-0000L0-JO Message is frozen
2018-10-07 12:35:48 End queue run: pid=11456
2018-10-07 13:05:48 Start queue run: pid=11812
2018-10-07 13:05:48 1g8uZF-00027o-TS Message is frozen
2018-10-07 13:05:48 1g8oBv-0000L0-JO Message is frozen
2018-10-07 13:05:48 End queue run: pid=11812
2018-10-07 13:35:49 Start queue run: pid=11955
2018-10-07 13:35:49 1g8oBv-0000L0-JO Message is frozen
2018-10-07 13:35:49 1g8uZF-00027o-TS Message is frozen
2018-10-07 13:35:49 End queue run: pid=11955欢迎任何建议。
发布于 2018-10-07 13:01:06
Ping本地主机导致
PING localhost(localhost (::1)) 56 data bytes
64 bytes from localhost (::1): icmp_seq=1 ttl=64 time=0.039 ms
64 bytes from localhost (::1): icmp_seq=2 ttl=64 time=0.046 ms
64 bytes from localhost (::1): icmp_seq=3 ttl=64 time=0.047 msIPv6,很明显。
正在运行
netstat -anp显示2003年端口没有在IPv6上被监听,只有IP4。
将exim传输主机更改为此修复了它。
cyrus_ltcp:
driver = smtp
protocol = lmtp
hosts = 127.0.0.1
port = 2003
allow_localhosthttps://serverfault.com/questions/934355
复制相似问题