Вся почта принимаемая fetchmail'ом уходит обратно в internet :(.
Происходит это так:
Slackware 9.1: Fetchmail + Exim.
~/.fetchmailrc:
defaults mda "/usr/sbin/sendmail -t -f %F %T"
poll pop.mail.ru proto pop3 interface ppp0/0.0.0.0/0.0.0.0 user "keyguard@mail.ru" pass "*********"
/etc/exim:
trusted_users = key
queue_list_requires_admin = false
begin routers
smarthost:
driver = manualroute
domains = !@
transport = remote_smtp
route_list = * smtp.mail.ru
aliases:
driver = redirect
data = ${lookup{$local_part}lsearch{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe
dotforward:
driver = redirect
check_local_user = true
file = $home/.forward
file_transport = address_file
pipe_transport = address_pipe
local_user:
driver = accept
check_local_user = true
transport = local_delivery
begin transports
local_delivery:
driver = appendfile
file = /var/mail/$local_part
address_file:
driver = appendfile
address_pipe:
driver = pipe
return_output
remote_smtp:
driver = smtp
begin rewrite
key@ice keyguard@mail.ru Ffrs
Я посылаю через oper'y письмо самому себе на keyguard@mail.ru.
Затем делаю fetchmail:
key@ice:~$ fetchmail
1 message for keyguard@mail.ru at pop.mail.ru (721 octets).
reading message keyguard@mail.ru@pop.mail.ru:1 of 1 (721 octets) flushed
key@ice:~$
После чего письмо радостно сваливается мне в ящик keyguard@mail.ru с заголовком:
Return-path: <keyguard@mail.ru>
Received: from [...] (port=33495 helo=ice) by mx2.mail.ru with esmtp id 1CE6AE-0002cq-00 for keyguard@mail.ru; Sun, 03 Oct
2004 17:12:35 +0400
Received: from key by ice with local (Exim 4.31) id 1CE6Ap-0005Ga-SQ for keyguard@mail.ru; Sun, 03 Oct 2004 17:13:11 +0400
Received: from pop.mail.ru [...] by localhost with POP3 (fetchmail-6.2.4) for key@localhost (single-drop); Sun, 03 Oct 2004
17:13:11 +0400 (MSD)
Received: from [...] (port=33493 helo=ice) by mx1.mail.ru with asmtp id 1CE6A5-000DO5-00 for keyguard@mail.ru; Sun, 03 Oct
2004 17:12:26 +0400
To: Key <keyguard@mail.ru>
Subject: hjk
From: Key <keyguard@mail.ru>
Content-Type: text/plain; format=flowed; charset=koi8-r
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
Date: Sun, 03 Oct 2004 17:13:01 +0400
Message-ID: <opsfapnzjhm8v8uo@smtp.mail.ru>
User-Agent: Opera7.23/Linux M2 build 518
X-Spam: Not detected
X-Spam: Not detected
А в maillog лежит следующее:
2004-10-03 17:13:11 1CE6Ap-0005Ga-SQ <= keyguard@mail.ru U=key P=local S=926 id=opsfapnzjhm8v8uo@smtp.mail.ru
2004-10-03 17:13:13 1CE6Ap-0005Ga-SQ => keyguard@mail.ru R=smarthost T=remote_smtp H=smtp.mail.ru [...]
2004-10-03 17:13:13 1CE6Ap-0005Ga-SQ Completed
И это все вместо того, чтобы получить письма у себя в локальном mailbox'e на key@ice, как первоначально задумывалось. Что
тут не так?
Заранее спасибо,
Alexander Bolshev.
|