My configurations /var/qmail/control :
/checkpassword
checkvpw
/concurrencyincoming
20
/defaultdelivery
./Maildir/
/defaultdomain
defense.at
/locals
/me
mail.defense.at
/plusdomain
/rcpthosts
defense.at
cct.at
...
/virtualdomains
defense.at:defense.at
----------
my qmail logs:
Sep 6 16:23:20 unity qmail: 999786200.908179 new msg 285352
Sep 6 16:23:20 unity qmail: 999786200.908455 info msg 285352: bytes 993
from <[EMAIL PROTECTED]> qp 29895 uid 1001
Sep 6 16:23:20 unity qmail: 999786200.917141 starting delivery 309: msg
285352 to remote [EMAIL PROTECTED]
Sep 6 16:23:20 unity qmail: 999786200.917228 status: local 0/10 remote
1/20
Sep 6 16:23:21 unity qmail: 999786201.122734 new msg 285353
Sep 6 16:23:21 unity qmail: 999786201.123010 info msg 285353: bytes
1192 from <[EMAIL PROTECTED]> qp 29898 uid 1001
Sep 6 16:23:21 unity qmail: 999786201.131340 starting delivery 310: msg
285353 to remote [EMAIL PROTECTED]
Sep 6 16:23:21 unity qmail: 999786201.131424 status: local 0/10 remote
2/20
Sep 6 16:23:21 unity qmail: 999786201.137858 delivery 309: success:
194.163.14.210_accepted_message./Remote_host_said:_250 ok_99978
Sep 6 16:23:21 unity qmail: 999786201.137953 status: local 0/10 remote
1/20
Sep 6 16:23:21 unity qmail: 999786201.138003 end msg 285352
Sep 6 16:23:21 unity qmail: 999786201.382805 new msg 285352
Sep 6 16:23:21 unity qmail: 999786201.383079 info msg 285352: bytes
1391 from <[EMAIL PROTECTED]> qp 29901 uid 1001
Sep 6 16:23:21 unity qmail: 999786201.401987 starting delivery 311: msg
285352 to remote [EMAIL PROTECTED]
Sep 6 16:23:21 unity qmail: 999786201.404103 status: local 0/10 remote
2/20
Sep 6 16:23:21 unity qmail: 999786201.406591 delivery 310: success:
194.163.14.210_accepted_message./Remote_host_said:_250_ok_99978
Sep 6 16:23:21 unity qmail: 999786201.407950 status: local 0/10 remote
1/20
Sep 6 16:23:21 unity qmail: 999786201.409029 end msg 285353
Sep 6 16:23:21 unity qmail: 999786201.621959 new msg 285353
Sep 6 16:23:21 unity qmail: 999786201.624401 info msg 285353: bytes
1590 from <[EMAIL PROTECTED]> qp 29904 uid 1001
Sep 6 16:23:21 unity qmail: 999786201.631524 starting delivery 312: msg
285353 to remote [EMAIL PROTECTED]
Sep 6 16:23:21 unity qmail: 999786201.632750 status: local 0/10 remote
2/20
Sep 6 16:23:21 unity qmail: 999786201.640041 delivery 311: success:
194.163.14.210_accepted_message./Remote_host_said:_250_ok_99978
Sep 6 16:23:21 unity qmail: 999786201.641438 status: local 0/10 remote
1/20
Sep 6 16:23:21 unity qmail: 999786201.642028 end msg 285352
Sep 6 16:23:21 unity qmail: 999786201.861949 new msg 285352
Sep 6 16:23:21 unity qmail: 999786201.864392 info msg 285352: bytes
1789 from <[EMAIL PROTECTED]> qp 29907 uid 1001
Sep 6 16:23:21 unity qmail: 999786201.871443 starting delivery 313: msg
285352 to remote [EMAIL PROTECTED]
Sep 6 16:23:21 unity qmail: 999786201.873685 status: local 0/10 remote
2/20
Sep 6 16:23:21 unity qmail: 999786201.879981 delivery 312: success:
194.163.14.210_accepted_message./Remote_host_said:_250_ok_99978
Sep 6 16:23:21 unity qmail: 999786201.882396 status: local 0/10 remote
1/20
Sep 6 16:23:21 unity qmail: 999786201.884546 end msg 285353
<...>
Sep 6 16:23:32 unity qmail: 999786212.787471 new msg 285352
Sep 6 16:23:32 unity qmail: 999786212.789907 info msg 285352: bytes
10744 from <[EMAIL PROTECTED]> qp 30043 uid 1001
Sep 6 16:23:32 unity qmail: 999786212.797457 starting delivery 358: msg
285352 to remote [EMAIL PROTECTED]
Sep 6 16:23:32 unity qmail: 999786212.798699 status: local 0/10 remote
2/20
Sep 6 16:23:32 unity qmail: 999786212.800300 delivery 357: success:
194.163.14.210_accepted_message./Remote_host_said:_250_ok_99978
Sep 6 16:23:32 unity qmail: 999786212.803742 status: local 0/10 remote
1/20
Sep 6 16:23:32 unity qmail: 999786212.804946 end msg 285353
Sep 6 16:23:33 unity qmail: 999786213.036043 delivery 358: failure:
194.163.14.210_failed_after_I_sent_the_message./Remote_host_said:_250_ok
_999786212_qp_30043/
Sep 6 16:23:33 unity qmail: 999786213.038678 status: local 0/10 remote
0/20
Sep 6 16:23:33 unity qmail: 999786213.050529 bounce msg 285352 qp 30047
Sep 6 16:23:33 unity qmail: 999786213.052703 end msg 285352
Sep 6 16:23:33 unity qmail: 999786213.055350 new msg 285357
Sep 6 16:23:33 unity qmail: 999786213.057683 info msg 285357: bytes
11338 from <> qp 30047 uid 12355
Sep 6 16:23:33 unity qmail: 999786213.065081 starting delivery 359: msg
285357 to remote [EMAIL PROTECTED]
Sep 6 16:23:33 unity qmail: 999786213.067327 status: local 0/10 remote
1/20
Sep 6 16:23:33 unity qmail: 999786213.657562 delivery 359: success:
194.163.14.12_accepted_message./Remote_host_said:_250_Ok:_queue
Sep 6 16:23:33 unity qmail: 999786213.660010 status: local 0/10 remote
0/20
Sep 6 16:23:33 unity qmail: 999786213.662274 end msg 285357
-----------
and the mail I got back:
<snip>
<[EMAIL PROTECTED]>:
194.163.14.210 failed after I sent the message.
Remote host said: 554 too many hops, this message is looping (#5.4.6)
--- Below this line is a copy of the message.
Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 30043 invoked by uid 1001); 6 Sep 2001 14:23:32 -0000
Received: from host-194-163-14-210.i-sp.com (HELO mail.defense.at)
(194.163.14.210)
by 0 with SMTP; 6 Sep 2001 14:23:32 -0000
Received: (qmail 30040 invoked by uid 1001); 6 Sep 2001 14:23:32 -0000
Received: from host-194-163-14-210.i-sp.com (HELO mail.defense.at)
(194.163.14.210)
by 0 with SMTP; 6 Sep 2001 14:23:32 -0000
</snip>
-----------
I don't have a /var/qmail/control/smtproutes file at all and I tried to
change the domains from defense.at to mail.defense.at and the other way
around, but didn't work out.
-roland.
--
Roland Dworschak
http://www.defense.at/
"Guys are visually stimulated...They're easy to manipulate. All you have
to do is dress up in a sexy outfit. Girls just have this power over
guys. Guys are sort of stupid that way." - Jessica Alba
-----Original Message-----
From: Charles Cazabon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 06, 2001 4:08 PM
To: [EMAIL PROTECTED]
Subject: Re: 2nd mx relaying (looping)
Roland Dworschak <[EMAIL PROTECTED]> wrote:
>
> cct.at mail exchanger = 10 mail.cct.at.
> cct.at mail exchanger = 20 mail.defense.at.
>
> mail.defense.at has 'cct.at' in the /var/qmail/control/rcpthosts so it
> relays the mails directed to @cct.at to the mail.cct.at server when it
> gets back up. However, when cct.at is down and I try to send a mail to
> [EMAIL PROTECTED], mails get redirected to mail.defense.at (2nd mx)
They're not "redirected". They just happen to be going to a
lower-priority MX because the highest-priority one is unavailable.
> and then tries to send the mail to the 1st mx (mail.cct.at). Because
> the 1st mx isn't avaiable it gets delivered to the 2nd mx
> (mail.defense.at) and so it tries to resend the same message to itself
> every second and stops with 'too many hops':
This shouldn't happen. When qmail on mail.defense.at tries to send the
mail to cct.at and fails, it should automatically be able to determine
that the next-highest priority MX is itself, and therefore not attempt
to deliver to it.
Unless, of course, you've created a mail loop using smtproutes. Show us
the contents of /var/qmail/control/smtproutes. You've probably
configured it in a loop.
> Any ideas what's wrong here?
Show us the qmail-send logs of these deliveries occurring as well.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <[EMAIL PROTECTED]>
GPL'ed software available at: http://www.qcc.sk.ca/~charlesc/software/
-----------------------------------------------------------------------