fetchmail-friends
[Top] [All Lists]

[fetchmail]Fetchmail + Amavis: send address problem

2004-05-03 23:40:00
Hi,

This is my first message on this list, and I know the problem was already
discussed, but with no solution. I hope this time someone will be able to
solve this.
I use Exim 3.35 on Debian Woody, in conjunction with Spamassassin and Amavis.

Fetchmail helps me to get my e-mail from several pop3 accounts, and all
incoming  e-mails are scanned by the anti-virus. Fethcmail is launched
every 5 minutes by cron.
When a virus is detected in a e-mail, Amavis sends a message to the
original sender, like this one:


====================================================                      
     A L E R T E   V I R U SNotre anti-virus a détecté le virus :
    Eicar-Test-Signature
dans votre message destiné à :
 -> julien(_at_)mylocaldomain(_dot_)com
Le message n'a donc pas été délivré ! Veillez à installer un anti-virus
sur votre système, mettez à jour les bases de données de signatures de
virus, ou demandez à votre administrateur système de le faire pour vous.
====================================================

I also receive a warning message.

My problem is that is works perfectly wy my own local domain, but not for
e-mails that come fomr fetchmail. In the latter case, the address becomes
: julien(_at_)localhost (and not for example the original address
julien(_at_)skolelinux(_dot_)no)
The headers show the right address (Return-path :) but the envelope:
header is always julien(_at_)localhost
For the example, here are the full headers of the e-mail confirming my
subscription to this mailing list:
Envelope-to: julien(_at_)localhost
Delivery-date: Tue, 04 May 2004 08:20:19 +0200
Received: from mail by orion.valroff.homelinux.org with spam-scanned (Exim
3.35 #1 (Debian))     id 1BKtHu-0005qC-00
     for <julien(_at_)localhost>; Tue, 04 May 2004 08:20:19 +0200
Received: from mail by orion.valroff.homelinux.org with scanned-ok (Exim
3.35 #1 (Debian))     id 1BKtHu-0005q7-00
     for <julien(_at_)localhost>; Tue, 04 May 2004 08:20:18 +0200
Received: from localhost ([127.0.0.1] ident=julien)
     by orion.valroff.homelinux.org with esmtp (Exim 3.35 #1 (Debian))
     id 1BKtHp-0005pq-00
     for <julien(_at_)localhost>; Tue, 04 May 2004 08:20:13 +0200
Received: from init.linpro.no [80.232.38.252]
     by localhost with POP3 (fetchmail-5.9.11)
     for julien(_at_)localhost (single-drop); Tue, 04 May 2004 08:20:13 +0200
     (CEST)Received: from saturn.ccil.org ([192.190.237.112])
     by init.linpro.no with esmtp (Exim 4.24 #1 (Debian))
     id 1BKtGP-0003rf-Kz
     for <julien(_at_)skolelinux(_dot_)no>; Tue, 04 May 2004 08:18:45 +0200
Received: from localhost
     ([127.0.0.1] helo=saturn.ccil.org ident=list)
     by saturn.ccil.org with esmtp (Exim 4.32)
     id 1BKtJa-0008LY-5m
     for julien(_at_)skolelinux(_dot_)no; Tue, 04 May 2004 02:22:02 -0400
Date: Tue, 04 May 2004 02:22:02 -0400
Message-ID: 
<20040504062202(_dot_)32087(_dot_)26119(_dot_)Mailman(_at_)saturn(_dot_)ccil(_dot_)org>
Subject: Welcome to the "Fetchmail-friends" mailing list
From: fetchmail-friends-request(_at_)lists(_dot_)ccil(_dot_)org
To: julien(_at_)skolelinux(_dot_)no
X-No-Archive: yes
X-Ack: no
Sender: fetchmail-friends-admin(_at_)lists(_dot_)ccil(_dot_)org
Errors-To: fetchmail-friends-admin(_at_)lists(_dot_)ccil(_dot_)org
X-BeenThere: fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org
X-Mailman-Version: 2.0.11
Precedence: bulk
List-Help: 
<mailto:fetchmail-friends-request(_at_)lists(_dot_)ccil(_dot_)org?subject=help>
List-Post: <mailto:fetchmail-friends(_at_)lists(_dot_)ccil(_dot_)org>
List-Subscribe:
<http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends>,     
<mailto:fetchmail-friends-request(_at_)lists(_dot_)ccil(_dot_)org?subject=subscribe>
List-Id: Fetchmail open-source POP and IMAP client daemon
<fetchmail-friends.lists.ccil.org>List-Unsubscribe:
<http://lists.ccil.org/cgi-bin/mailman/listinfo/fetchmail-friends>,     
<mailto:fetchmail-friends-request(_at_)lists(_dot_)ccil(_dot_)org?subject=unsubscribe>
List-Archive: <http://lists.ccil.org/pipermail/fetchmail-friends/>
X-Scanned-By: ClamAV at saturn.ccil.org
X-Spam-Score: 0.3 (/)
X-Virus-Scanned: by AMaViS 0.3.12
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on
     orion.valroff.homelinux.org
X-Spam-Status: No, hits=0.3 required=5.0 tests=NO_REAL_NAME autolearn=no
     version=2.63
X-Spam-Level:


I have tried to use the envelope, as well as invisible and no rewrite
options, with no success.
I also have tried procmail, but this is not the right solution, as in this
case, incoming e-mail are not scanned.
Could someone try to help me ?

Many thanks in advance!