Re: [xmail] Dbg&Fix: Mail loop detected

2012-10-18 Thread fcxmail
Hello

The MaxMTAOps variable have nothing to do with 'dns' name resolution
mechanism so dns name resolution problems will 'normaly' not be resolved
increasing this parameter (except bug in xmail, but I don't think, dns code
is very isolated from mails process in xmail code)..

If you have a 'Mail loop detected', even you can have two sort of reasons :
- Real loop : some server in the route resend the mail to one of the
previously used smtp servers (or itself) in the 'route' to the last, and
your server is one that receive again and again the message (it detect loops
regarding smtp headers counting the Received: lines).
Nothing to do here on your xmail server to correct this problem, the mail is
in a loop, increasing MaxMTAOps will not correct the 'loop'
Very likely some chain of forwarding accounts that send to others forwarding
accounts, that ... and another forwarding account 'forwarding' back in the
chain, in this case find the 'back forwarder' and correct the forward will
be the only solution
To know if this is the problem, try capture the mail reaching your server
again in again (see logs, ... use a filter) and verify the Received: headers
chain to see a loop

- In normal situation on the Internet it's rare to reach the default 16
'MaxMTAOps', even with big ISP having many servers (front ends, avscan, spam
scan, , backends, forwarders, final clients servers, ... if each task in a
different server). But if you suspect this is the problem ^(and not a real
loop) try increasing by steps (say by 4 step, 20, 24, ...) until the 'loop'
detection stops (if you reach more than 32, I think it’s a Real Loop you
detected)

Regards
Francis


-Message d'origine-
De : xmail-boun...@xmailserver.org [mailto:xmail-boun...@xmailserver.org] De
la part de David Lord
Envoyé : mardi 16 octobre 2012 18:15
À : U.Mutlu
Cc : xmail@xmailserver.org
Objet : Re: [xmail] Dbg&Fix: Mail loop detected

On 12 Oct 2012 at 16:54, U.Mutlu wrote:

> Just wanted to share a "debug session" to trace down a "Mail loop
detected" situation:
> 
> A bounce mail with reason "Mail loop detected" is generated under this
circumstance:
>   if it takes too many steps (operations) to get the first MX record
>   (or the final A record when MX is missing after trying all)
>   of the recipient domain than what is defined in server.tab under
> "MaxMTAOps" "16"

I had problems with some mailing lists and over a period gradually increased
MaxMTAOps to 28. 

Oldest server.tab in archive on this server is Jul 7, 2009 and that has
'"MaxMTAOps"  "28"' and other changes go back to 2005.


David

> 
> For example:
> I had a mail to an address xx...@embarqnow.net and got that error 
> because that domain has many nameservers and a depth of 3 levels to 
> finally get the MX record, but the number of steps to get to the MX 
> exceeds the above defined 16 ...
> 

___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Dbg&Fix: Mail loop detected

2012-10-16 Thread David Lord
On 12 Oct 2012 at 16:54, U.Mutlu wrote:

> Just wanted to share a "debug session" to trace down a "Mail loop detected" 
> situation:
> 
> A bounce mail with reason "Mail loop detected" is generated under this 
> circumstance:
>   if it takes too many steps (operations) to get the first MX record
>   (or the final A record when MX is missing after trying all)
>   of the recipient domain than what is defined in server.tab under
> "MaxMTAOps" "16"

I had problems with some mailing lists and over
a period gradually increased MaxMTAOps to 28. 

Oldest server.tab in archive on this server is
Jul 7, 2009 and that has '"MaxMTAOps"  "28"' and
other changes go back to 2005.


David

> 
> For example:
> I had a mail to an address xx...@embarqnow.net and got that error
> because that domain has many nameservers and a depth of 3 levels
> to finally get the MX record, but the number of steps to get to the MX
> exceeds the above defined 16 ...
> 
> 
> #
> # dig  embarqnow.net any
> 
> ; <<>> DiG 9.8.1-P1 <<>> embarqnow.net any
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41501
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13
> 
> ;; QUESTION SECTION:
> ;embarqnow.net. IN  ANY
> 
> ;; ANSWER SECTION:
> embarqnow.net.  39916   IN  A   64.45.201.2
> 
> ;; AUTHORITY SECTION:
> net.62167   IN  NS  f.gtld-servers.net.
> net.62167   IN  NS  d.gtld-servers.net.
> net.62167   IN  NS  b.gtld-servers.net.
> net.62167   IN  NS  i.gtld-servers.net.
> net.62167   IN  NS  g.gtld-servers.net.
> net.62167   IN  NS  k.gtld-servers.net.
> net.62167   IN  NS  a.gtld-servers.net.
> net.62167   IN  NS  e.gtld-servers.net.
> net.62167   IN  NS  j.gtld-servers.net.
> net.62167   IN  NS  c.gtld-servers.net.
> net.62167   IN  NS  l.gtld-servers.net.
> net.62167   IN  NS  m.gtld-servers.net.
> net.62167   IN  NS  h.gtld-servers.net.
> 
> ;; ADDITIONAL SECTION:
> a.gtld-servers.net. 22812   IN  A   192.5.6.30
> a.gtld-servers.net. 120523  IN  2001:503:a83e::2:30
> b.gtld-servers.net. 2525IN  A   192.33.14.30
> b.gtld-servers.net. 9837IN  2001:503:231d::2:30
> c.gtld-servers.net. 11423   IN  A   192.26.92.30
> d.gtld-servers.net. 79977   IN  A   192.31.80.30
> e.gtld-servers.net. 119385  IN  A   192.12.94.30
> f.gtld-servers.net. 70410   IN  A   192.35.51.30
> g.gtld-servers.net. 23788   IN  A   192.42.93.30
> h.gtld-servers.net. 23957   IN  A   192.54.112.30
> j.gtld-servers.net. 23958   IN  A   192.48.79.30
> l.gtld-servers.net. 22980   IN  A   192.41.162.30
> m.gtld-servers.net. 25511   IN  A   192.55.83.30
> 
> ;; Query time: 5 msec
> ;; WHEN: Fri Oct 12 16:20:56 2012
> ;; MSG SIZE  rcvd: 500
> 
> 
> #
> And picking one of the nameservers gives:
> 
> # dig @b.gtld-servers.net embarqnow.net any
> 
> ; <<>> DiG 9.8.1-P1 <<>> @b.gtld-servers.net embarqnow.net any
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7771
> ;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 2
> ;; WARNING: recursion requested but not available
> 
> ;; QUESTION SECTION:
> ;embarqnow.net. IN  ANY
> 
> ;; AUTHORITY SECTION:
> embarqnow.net.  172800  IN  NS  ns1.embarqservices.net.
> embarqnow.net.  172800  IN  NS  ns2.embarqservices.net.
> 
> ;; ADDITIONAL SECTION:
> ns1.embarqservices.net. 172800  IN  A   138.210.81.3
> ns2.embarqservices.net. 172800  IN  A   64.45.205.2
> 
> ;; Query time: 97 msec
> ;; WHEN: Fri Oct 12 16:29:17 2012
> ;; MSG SIZE  rcvd: 114
> 
> 
> #
> And continuing:
> 
> # dig @ns1.embarqservices.net embarqnow.net any
> 
> ; <<>> DiG 9.8.1-P1 <<>> @ns1.embarqservices.net embarqnow.net any
> ; (1 server found)
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61425
> ;; flags: qr aa rd; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 3
> ;; WARNING: recursion requested but not available
> 
> ;; QUESTION SECTION:
> ;embarqnow.net. IN  ANY
> 
> ;; ANSWER SECTION:
> embarqnow.net.  86400   IN  SOA ns1.embarqservices.net. 
> dns-admin.embarqservices.net. 
> 2011070100 10800 3600 604800 86400
> embarqnow.net.  86400   IN  NS  ns2.e

Re: [xmail] Dbg&Fix: Mail loop detected

2012-10-16 Thread Edinilson - ATINET

Try to use SmartDNSHost...

Regards

Edinilson
--
ATINET
Tel Voz: (0xx11) 4412-0876
http://www.atinet.com.br


- Original Message - 
From: "U.Mutlu" 

To: "XMail Users Mailing List" 
Cc: "Edinilson - ATINET" 
Sent: Monday, October 15, 2012 6:01 PM
Subject: Re: [xmail] Dbg&Fix: Mail loop detected



Hi,
no, SmartDNSHost is not enabled in server.tab.


Edinilson - ATINET wrote, On 10/15/2012 07:58 PM:

Are you using SmartDNSHost in server.tab?

If so, is SmartDNSHost pointing to the same server that you had issued 
the command:

dig embarqnow.net MX
?

Regards

Edinilson
--
ATINET
Tel Voz: (0xx11) 4412-0876
http://www.atinet.com.br





___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Dbg&Fix: Mail loop detected

2012-10-15 Thread U.Mutlu

Hi,
no, SmartDNSHost is not enabled in server.tab.


Edinilson - ATINET wrote, On 10/15/2012 07:58 PM:

Are you using SmartDNSHost in server.tab?

If so, is SmartDNSHost pointing to the same server that you had issued the 
command:
dig embarqnow.net MX
?

Regards

Edinilson
--
ATINET
Tel Voz: (0xx11) 4412-0876
http://www.atinet.com.br


___
xmail mailing list
xmail@xmailserver.org
http://xmailserver.org/mailman/listinfo/xmail


Re: [xmail] Dbg&Fix: Mail loop detected

2012-10-15 Thread Edinilson - ATINET

Are you using SmartDNSHost in server.tab?

If so, is SmartDNSHost pointing to the same server that you had issued the 
command:

dig embarqnow.net MX
?

Regards

Edinilson
--
ATINET
Tel Voz: (0xx11) 4412-0876
http://www.atinet.com.br


- Original Message - 
From: "U.Mutlu" 

To: 
Sent: Friday, October 12, 2012 11:54 AM
Subject: [xmail] Dbg&Fix: Mail loop detected


Just wanted to share a "debug session" to trace down a "Mail loop 
detected" situation:


A bounce mail with reason "Mail loop detected" is generated under this 
circumstance:

 if it takes too many steps (operations) to get the first MX record
 (or the final A record when MX is missing after trying all)
 of the recipient domain than what is defined in server.tab under
   "MaxMTAOps" "16"

For example:
I had a mail to an address xx...@embarqnow.net and got that error
because that domain has many nameservers and a depth of 3 levels
to finally get the MX record, but the number of steps to get to the MX
exceeds the above defined 16 ...


#
# dig  embarqnow.net any

; <<>> DiG 9.8.1-P1 <<>> embarqnow.net any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41501
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13

;; QUESTION SECTION:
;embarqnow.net. IN  ANY

;; ANSWER SECTION:
embarqnow.net.  39916   IN  A   64.45.201.2

;; AUTHORITY SECTION:
net.62167   IN  NS  f.gtld-servers.net.
net.62167   IN  NS  d.gtld-servers.net.
net.62167   IN  NS  b.gtld-servers.net.
net.62167   IN  NS  i.gtld-servers.net.
net.62167   IN  NS  g.gtld-servers.net.
net.62167   IN  NS  k.gtld-servers.net.
net.62167   IN  NS  a.gtld-servers.net.
net.62167   IN  NS  e.gtld-servers.net.
net.62167   IN  NS  j.gtld-servers.net.
net.62167   IN  NS  c.gtld-servers.net.
net.62167   IN  NS  l.gtld-servers.net.
net.62167   IN  NS  m.gtld-servers.net.
net.62167   IN  NS  h.gtld-servers.net.

;; ADDITIONAL SECTION:
a.gtld-servers.net. 22812   IN  A   192.5.6.30
a.gtld-servers.net. 120523  IN  2001:503:a83e::2:30
b.gtld-servers.net. 2525IN  A   192.33.14.30
b.gtld-servers.net. 9837IN  2001:503:231d::2:30
c.gtld-servers.net. 11423   IN  A   192.26.92.30
d.gtld-servers.net. 79977   IN  A   192.31.80.30
e.gtld-servers.net. 119385  IN  A   192.12.94.30
f.gtld-servers.net. 70410   IN  A   192.35.51.30
g.gtld-servers.net. 23788   IN  A   192.42.93.30
h.gtld-servers.net. 23957   IN  A   192.54.112.30
j.gtld-servers.net. 23958   IN  A   192.48.79.30
l.gtld-servers.net. 22980   IN  A   192.41.162.30
m.gtld-servers.net. 25511   IN  A   192.55.83.30

;; Query time: 5 msec
;; WHEN: Fri Oct 12 16:20:56 2012
;; MSG SIZE  rcvd: 500


#
And picking one of the nameservers gives:

# dig @b.gtld-servers.net embarqnow.net any

; <<>> DiG 9.8.1-P1 <<>> @b.gtld-servers.net embarqnow.net any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7771
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;embarqnow.net. IN  ANY

;; AUTHORITY SECTION:
embarqnow.net.  172800  IN  NS  ns1.embarqservices.net.
embarqnow.net.  172800  IN  NS  ns2.embarqservices.net.

;; ADDITIONAL SECTION:
ns1.embarqservices.net. 172800  IN  A   138.210.81.3
ns2.embarqservices.net. 172800  IN  A   64.45.205.2

;; Query time: 97 msec
;; WHEN: Fri Oct 12 16:29:17 2012
;; MSG SIZE  rcvd: 114


#
And continuing:

# dig @ns1.embarqservices.net embarqnow.net any

; <<>> DiG 9.8.1-P1 <<>> @ns1.embarqservices.net embarqnow.net any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61425
;; flags: qr aa rd; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;embarqnow.net. IN  ANY

;; ANSWER SECTION:
embarqnow.net.  86400   IN  SOA ns1.embarqservices.net. 
dns-admin.embarqservices.net. 201107

[xmail] Dbg&Fix: Mail loop detected

2012-10-12 Thread U.Mutlu

Just wanted to share a "debug session" to trace down a "Mail loop detected" 
situation:

A bounce mail with reason "Mail loop detected" is generated under this 
circumstance:
 if it takes too many steps (operations) to get the first MX record
 (or the final A record when MX is missing after trying all)
 of the recipient domain than what is defined in server.tab under
   "MaxMTAOps" "16"

For example:
I had a mail to an address xx...@embarqnow.net and got that error
because that domain has many nameservers and a depth of 3 levels
to finally get the MX record, but the number of steps to get to the MX
exceeds the above defined 16 ...


#
# dig  embarqnow.net any

; <<>> DiG 9.8.1-P1 <<>> embarqnow.net any
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41501
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 13, ADDITIONAL: 13

;; QUESTION SECTION:
;embarqnow.net. IN  ANY

;; ANSWER SECTION:
embarqnow.net.  39916   IN  A   64.45.201.2

;; AUTHORITY SECTION:
net.62167   IN  NS  f.gtld-servers.net.
net.62167   IN  NS  d.gtld-servers.net.
net.62167   IN  NS  b.gtld-servers.net.
net.62167   IN  NS  i.gtld-servers.net.
net.62167   IN  NS  g.gtld-servers.net.
net.62167   IN  NS  k.gtld-servers.net.
net.62167   IN  NS  a.gtld-servers.net.
net.62167   IN  NS  e.gtld-servers.net.
net.62167   IN  NS  j.gtld-servers.net.
net.62167   IN  NS  c.gtld-servers.net.
net.62167   IN  NS  l.gtld-servers.net.
net.62167   IN  NS  m.gtld-servers.net.
net.62167   IN  NS  h.gtld-servers.net.

;; ADDITIONAL SECTION:
a.gtld-servers.net. 22812   IN  A   192.5.6.30
a.gtld-servers.net. 120523  IN  2001:503:a83e::2:30
b.gtld-servers.net. 2525IN  A   192.33.14.30
b.gtld-servers.net. 9837IN  2001:503:231d::2:30
c.gtld-servers.net. 11423   IN  A   192.26.92.30
d.gtld-servers.net. 79977   IN  A   192.31.80.30
e.gtld-servers.net. 119385  IN  A   192.12.94.30
f.gtld-servers.net. 70410   IN  A   192.35.51.30
g.gtld-servers.net. 23788   IN  A   192.42.93.30
h.gtld-servers.net. 23957   IN  A   192.54.112.30
j.gtld-servers.net. 23958   IN  A   192.48.79.30
l.gtld-servers.net. 22980   IN  A   192.41.162.30
m.gtld-servers.net. 25511   IN  A   192.55.83.30

;; Query time: 5 msec
;; WHEN: Fri Oct 12 16:20:56 2012
;; MSG SIZE  rcvd: 500


#
And picking one of the nameservers gives:

# dig @b.gtld-servers.net embarqnow.net any

; <<>> DiG 9.8.1-P1 <<>> @b.gtld-servers.net embarqnow.net any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7771
;; flags: qr rd; QUERY: 1, ANSWER: 0, AUTHORITY: 2, ADDITIONAL: 2
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;embarqnow.net. IN  ANY

;; AUTHORITY SECTION:
embarqnow.net.  172800  IN  NS  ns1.embarqservices.net.
embarqnow.net.  172800  IN  NS  ns2.embarqservices.net.

;; ADDITIONAL SECTION:
ns1.embarqservices.net. 172800  IN  A   138.210.81.3
ns2.embarqservices.net. 172800  IN  A   64.45.205.2

;; Query time: 97 msec
;; WHEN: Fri Oct 12 16:29:17 2012
;; MSG SIZE  rcvd: 114


#
And continuing:

# dig @ns1.embarqservices.net embarqnow.net any

; <<>> DiG 9.8.1-P1 <<>> @ns1.embarqservices.net embarqnow.net any
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 61425
;; flags: qr aa rd; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 3
;; WARNING: recursion requested but not available

;; QUESTION SECTION:
;embarqnow.net. IN  ANY

;; ANSWER SECTION:
embarqnow.net.  86400   IN  SOA ns1.embarqservices.net. dns-admin.embarqservices.net. 
2011070100 10800 3600 604800 86400

embarqnow.net.  86400   IN  NS  ns2.embarqservices.net.
embarqnow.net.  86400   IN  NS  ns1.embarqservices.net.
embarqnow.net.  86400   IN  MX  10 localhost.embarqnow.net.
embarqnow.net.  86400   IN  A   64.45.201.2

;; ADDITIONAL SECTION:
ns1.embarqservices.net. 10800   IN  A   138.210.81.3
ns2.embarqservices.net. 10800   IN  A   64.45.205.2
localhost.embarqnow.net. 86400  IN  A   127.0.0.1

;; Query time: 130 msec
;; WHEN: Fri Oct 12 16:30:11 2012
;; MSG SIZE  rcvd: 218