Fetchmail and MailScanner

Alex Broens ms-list at alexb.ch
Wed Aug 20 12:07:23 IST 2008

On 8/20/2008 11:46 AM, Alex Broens wrote:
> On 8/20/2008 11:22 AM, Ismail OZATAY wrote:
>> Hi Edward ,
>> I always read every incoming mail carefully. Also i know that Fabio 
>> Silva 's
>> problem is still going on because using smtphost setting will never 
>> fix that
>> problem. Fetchmail is routing all emails to smtp so source seems 
>> interface's
>> ip which is set before by smtphost.
>> Here is my .fetchmailrc file;
>> set daemon 20
>> set syslog
>> set postmaster root
>> set invisible
>> poll mail.test.net with proto POP3 and options no dns
>>         user 'test' with pass "123456"  is 'realuser at internal.net'
>>         keep
>>         norewrite
>>         smtphost
>> Here is my incmoing mail header ;
>> Received: from mail.test.net (mail.internal.net [])
>>     by mail.ismail.net (Postfix) with ESMTP id 99A49E8288
>>     for <realuser at internal.net>; Wed, 20 Aug 2008 09:55:27 +0300 (EEST)
>> As you see coming source is so mailscanner thinks that 
>> it is
>> localhost. My question was how can i leave message source untouched ?
>> Thanks Edward  :)
>> Regards,
>> ismail
>> ----- Original Message ----- From: "Edward Dekkers" <edward at tdcs.com.au>
>> To: "'MailScanner discussion'" <mailscanner at lists.mailscanner.info>
>> Sent: Wednesday, August 20, 2008 10:58 AM
>> Subject: RE: Fetchmail and MailScanner
>>> Hi all,
>>> I am using fetchmail as a pop connector. It downloads a lot of pop3
>>> inbox
>>> from some isps and it works properly. Today i installed postfix and
>>> mailscanner for filtering virus and spam mails on the same server but
>>> there
>>> is something wrong with mail headers. Because mail header says that
>>> mail
>>> coming from localhost which is already whitelisted. So every
>>> incoming mail is tagged as clean. How can i fix this problem ? Can i
>>> send
>>> incoming mails to smtp with the original header?
> doesn't the fetchmail "silent" switch do that for you?

Sorry.. meant "invisible"

The --invisible option (keyword: set invisible) tries to make fetchmail 
invisible. Normally, fetchmail behaves like any other MTA would -- it 
generates a Received header into each message describing its place in 
the chain of transmission, and tells the MTA it forwards to that the 
mail came from the machine fetchmail itself is running on. If the 
invisible option is on, the Received header is suppressed and fetchmail 
tries to spoof the MTA it forwards to into thinking it came directly 
from the mailserver host.


More information about the MailScanner mailing list