qmail: This message is looping: it already has my Delivered-To line

I stumbled upon this peculiar bounce message recently while working on a server:

Hi. This is the qmail-send program at yourmailserver.com.
I'm afraid I wasn't able to deliver your message to the following addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

<user1@domain.com>:
This message is looping: it already has my Delivered-To line. (#5.4.6)

--- Below this line is a copy of the message.

Return-Path:
Received: (qmail 14418 invoked by uid 110); 9 Jan 2008 13:04:33 -0600
Delivered-To: 54-user2@domain.com
Received: (qmail 14411 invoked by uid 110); 9 Jan 2008 13:04:33 -0600
Delivered-To: 53-user1@domain.com
Received: (qmail 14404 invoked from network); 9 Jan 2008 13:04:33 -0600
Received: from otherdomain.com (HELO otherdomain.com) (11.22.33.44)
by yourmailserver.com with SMTP; 9 Jan 2008 13:04:33 -0600

Basically, this is qmail's way of letting you know that your e-mails are stuck in a mail loop. One e-mail user is redirecting to another e-mail user, and that e-mail user is redirecting back to the first one. If q-mail already has a delivered to line which matches one that it already added, it bounces the e-mail and halts delivery.

Digg This
Reddit This
Stumble Now!
Buzz This
Vote on DZone
Share on Facebook
Bookmark this on Delicious
Kick It on DotNetKicks.com
Shout it
Share on LinkedIn
Bookmark this on Technorati
Post on Twitter
Printed from: http://rackerhacker.com/2008/01/23/qmail-this-message-is-looping-it-already-has-my-delivered-to-line/ .
© Major Hayden 2010.

5 Comments   »

  • Steven says:

    We had this problem too, where both sender and receiver where on the same server (same domain) and wrongly forwarded. The bounced message bounced back, and this kept going back and forth. Kept us for a while to find this problem.
    The problem was that one alias forwarded to a mailbox and to another alias which forwarded to another mailbox and an external address.
    (like info -> box1, name; and name -> box2, external@domain.com)

    I noticed in another setup that exim did handle that situation without any troubles.

  • Grzeslaw says:

    I have the same problem, that I have the .qmail-username alias with the same adres inside. It looks like:
    $ cat .qmail-username
    username@domain.com
    secondusernameadress@domain.com

    I use maildrop to filtering my messages, so I this record was bad, it should look like:
    $ cat .qmail-username
    | maildrop /home/vpopmail/domains/domain.com/mailfilter
    secondusernameadress@domain.com

  • Hi all,

    I have the some problem here on my servers... i found a problem on the vpopmail aliases "valias -s domain.com", i droped all alias and voilĂ ... the server are work perfectly again.

    The Micro$ot is the solution from the problemns that before it did not exist...

  • Hi,

    Had the same problem with 1and1. Both domains hosted on Plesk, but only one used the server for MX, the other used 1and1 MX records. Turning off the mail for this domain in Plesk solved the issue. - the mail shoul dhave been turned off anyway for the server to do external look ups!

  • chenthil says:

    Thanks for all ur valuable commands .. this helped me to resolve the problem

RSS feed for comments on this post , TrackBack URI

Leave a Reply