So which one is the guilty party in adding the Delivered-To header? I didn't think that fetchmail touched the headers. I don't think that fetchmail should have even been involved in this transaction, but it looks like it did.
Received: from localhost [127.0.0.1] by localhost with IMAP (fetchmail-6.3.11) for <j...@localhost> (single-drop); Fri, 16 Oct 2009 12:31:12 -0400 (EDT) fetchmail is only configured to pop in some other accounts and send them through port 25. On Fri, Oct 16, 2009 at 3:05 PM, Wietse Venema <wie...@porcupine.org> wrote: > John te Bokkel / Tempus: >> I am not sure why this is happening now, I haven't made any changes to >> configurations in the last while. > > The Postfix local delivery agent will report a loop when it tries > to deliver mail to u...@example.com, and that message already has > a "Delivered-To: u...@example.com" message header. > > You can disable ADDING the Delivered-To header, but you cannot > disable TESTING for the header's presence. > > > Wietse >> >> Here is an example of an email that got bounced. It was sent locally >> in a backup script. >> >> >> >> >From MAILER-DAEMON Fri Oct 16 12:31:13 2009 >> Return-Path: <> >> X-Original-To: j...@localhost.powercoreeng.com >> Delivered-To: j...@localhost.powercoreeng.com >> Received: by server (Postfix, from userid 1013) >> id 56D23272C9A; Fri, 16 Oct 2009 12:31:13 -0400 (EDT) >> X-Spam-Checker-Version: SpamAssassin 3.2.1-gr1 (2007-05-02) on server >> X-Spam-Level: >> X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS >> autolearn=ham version=3.2.1-gr1 >> Received: from localhost (localhost [127.0.0.1]) >> by server (Postfix) with ESMTP id ECB5B272C95 >> for <j...@localhost>; Fri, 16 Oct 2009 12:31:12 -0400 (EDT) >> X-Original-To: r...@powercoreeng.com >> Delivered-To: r...@powercoreeng.com >> Received: from localhost [127.0.0.1] >> by localhost with IMAP (fetchmail-6.3.11) >> for <j...@localhost> (single-drop); Fri, 16 Oct 2009 12:31:12 -0400 >> (EDT) >> Received: by server (Postfix) >> id D761F272C97; Fri, 16 Oct 2009 12:26:12 -0400 (EDT) >> Date: Fri, 16 Oct 2009 12:26:12 -0400 (EDT) >> From: mailer-dae...@powercoreeng.com (Mail Delivery System) >> Subject: Undelivered Mail Returned to Sender >> To: r...@powercoreeng.com >> Auto-Submitted: auto-replied >> MIME-Version: 1.0 >> Content-Type: multipart/report; report-type=delivery-status; >> boundary="C9994272C9A.1255710372/server" >> Message-Id: <20091016162612.d761f272...@server> >> >> This is a MIME-encapsulated message. >> >> --C9994272C9A.1255710372/server >> Content-Description: Notification >> Content-Type: text/plain; charset=us-ascii >> >> This is the mail system at host server. >> >> I'm sorry to have to inform you that your message could not >> be delivered to one or more recipients. It's attached below. >> >> For further assistance, please send mail to postmaster. >> >> If you do so, please include this problem report. You can >> delete your own text from the attached returned message. >> >> The mail system >> >> <j...@localhost.powercoreeng.com>: mail forwarding loop for >> j...@localhost.powercoreeng.com >> >> --C9994272C9A.1255710372/server >> Content-Description: Delivery report >> Content-Type: message/delivery-status >> >> Reporting-MTA: dns; server >> X-Postfix-Queue-ID: C9994272C9A >> X-Postfix-Sender: rfc822; r...@powercoreeng.com >> Arrival-Date: Fri, 16 Oct 2009 12:26:12 -0400 (EDT) >> >> Final-Recipient: rfc822; j...@localhost.powercoreeng.com >> Action: failed >> Status: 5.4.6 >> Diagnostic-Code: X-Postfix; mail forwarding loop for >> j...@localhost.powercoreeng.com >> >> --C9994272C9A.1255710372/server >> Content-Description: Undelivered Message >> Content-Type: message/rfc822 >> >> Received: by server (Postfix, from userid 1013) >> id C9994272C9A; Fri, 16 Oct 2009 12:26:12 -0400 (EDT) >> X-Spam-Checker-Version: SpamAssassin 3.2.1-gr1 (2007-05-02) on server >> X-Spam-Level: >> X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,NO_RELAYS >> autolearn=unavailable version=3.2.1-gr1 >> Received: from localhost (localhost [127.0.0.1]) >> by server (Postfix) with ESMTP id A1EC1272C95 >> for <j...@localhost>; Fri, 16 Oct 2009 12:26:12 -0400 (EDT) >> X-Original-To: j...@localhost.powercoreeng.com >> Delivered-To: j...@localhost.powercoreeng.com >> Received: from localhost [127.0.0.1] >> by localhost with IMAP (fetchmail-6.3.11) >> for <j...@localhost> (single-drop); Fri, 16 Oct 2009 12:26:12 -0400 >> (EDT) >> Received: by server (Postfix, from userid 1013) >> id 0B09D272C9C; Fri, 16 Oct 2009 12:21:13 -0400 (EDT) >> Received: from localhost (localhost [127.0.0.1]) >> by server (Postfix) with ESMTP id 4A7E8272C97 >> for <j...@localhost>; Fri, 16 Oct 2009 12:21:12 -0400 (EDT) >> X-Original-To: r...@localhost >> Delivered-To: r...@localhost.powercoreeng.com >> Received: from localhost [127.0.0.1] >> by localhost with IMAP >> >> > >