From: Matthias A. <mat...@gm...> - 2006-05-03 18:01:21
|
"Admin Att" <att...@gm...> writes: > Hi all > i installed fetchmail few days ago and since then i have problem with BCC > field. See http://home.pages.de/~mandree/mail/multidrop to see which multidrop scenarios work reliably and which don't. Many MTAS omit the recipient from Received: headers when there is more than one as is the case in Bcc setups, although that does not appear to be the problem here (but it might if you wrote to two different Bcc: recipients of your own domain) > reading message myp...@po...:1 of 1 (8652 octets) > fetchmail: analyzing Received line: > Received: for < te...@my... > > fetchmail: no Received address found <---- !!!???? how is this logical!? fetchmail expects a "by some.host.name for <so...@ex...>" format, and also performs some checking on some.host.name - if that doesn't fit, it doesn't accept the address. > Received: from testpc1 by mycompany.com > (MDaemon.PRO.v8.1.5.R) > with ESMTP id md50000169342.msg > for <te...@my...>; Wed, 26 Apr 2006 13:49:03 +0200 > fetchmail: line rejected, mycompany.com is not an alias of the mailserver So it likes this header better because it has the "by mycompany.com" before "for <te...@my...>" - but doesn't accept the "by" part. You might trick fetchmail into believing that by adding aka mycompany.com to your configuration (before the "user" keyword). I don't know if that works though -- no guarantees. I suggest: 1. check if there is a better header. If not, try to arrange for one, such as X-Original-To, Envelope-To, Delivered-To. See the URL above, and feel free to quote the URL to your ISP. If you have got a better header, adjust the Envelope option accordingly. 2. do not run fetchmail as root - that's a basic safety measure to limit impact should a bug I have overseen be discovered. Since you are forwarding via SMTP, fetchmail does not need root privileges. Create a "fetchmail" user, copy /etc/fetchmailrc to ~fetchmail/.fetchmailrc and use this command to start fetchmail under the fetchmail user account: su fetchmail -c "fetchmail" -- Matthias Andree |