SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Comments on the Strongbolt v1.x Centos/Bluequartz installer for RaQ 3/4's and 550s - including any fixes or help requests when things go wrong!

Moderator: LiamM

SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Postby Flintstone on Tue Oct 14, 2008 8:35 pm

I switched over to VDSL without realizing that there are no static IPs with that technology :oops:

As a result I have had to move my DNS over to DynDNS and am having problems getting SMTP working. www, ftp and everything else appears to work just fine. I will give as much information as possible in the hope that somebody can spot something.

The error does not just seem to be a local issue as checking ratcliffefamily.org at:
http://www.dnscolos.com/free-dns-report.html
Produces the following error under the Mailserver connection test:
Connect to mailserver mail.ratcliffefamily.org FAILED (could be greylisting)
554 5.0.0 rewrite: excessive recursion (max 50), ruleset canonify

This is the same error I receive in Thunderbird.
############################################
maillog
=======
Oct 14 22:23:57 centos sendmail[4144]: m9EKNupX004144: SYSERR(root): rewrite: excessive recursion (max 50), ruleset canonify
############################################
DynDNS Setup
============
Mail Exchangers: mail.ratcliffefamily.org
ratcliffefamily.org A-record 213.3.34.76 Oct. 09, 2008 9:38 AM
centos.ratcliffefamily.org A-record 213.3.34.76 Oct. 14, 2008 3:55 PM
ftp.ratcliffefamily.org A-record 213.3.34.76 Oct. 14, 2008 2:55 PM
mail.ratcliffefamily.org A-record 213.3.34.76 Oct. 14, 2008 2:54 PM
pop3.ratcliffefamily.org A-record 213.3.34.76 Oct. 14, 2008 2:56 PM
smtp.ratcliffefamily.org A-record 213.3.34.76 Oct. 14, 2008 2:57 PM
http://www.ratcliffefamily.org A-record 213.3.34.76 Oct. 14, 2008 2:58 PM
ratcliffefamily.org txt-record v=spf1 include:ratcliffefamily.org -all

Name Servers:
ns1.mydyndns.org
ns2.mydyndns.org
ns3.mydyndns.org
ns4.mydyndns.org
ns5.mydyndns.org

############################################
BQ Setup
========
http://www.ratcliffefamily.org Forward 127.0.0.1
mail.ratcliffefamily.org Forward 127.0.0.1
smtp.ratcliffefamily.org Forward 127.0.0.1
ratcliffefamily.org Forward 127.0.0.1
centos.ratcliffefamily.org Forward 127.0.0.1
ftp . ratcliffefamily.org Forward 127.0.0.1
pop3 . ratcliffefamily.org Forward 127.0.0.1
ratcliffefamily.org Mail Highest mail.ratcliffefamily.org
ratcliffefamily.org TXT v=spf1 include:ratcliffefamily.org -all

Primary Name Server: ns1.mydyndns.org
Secondary Name Server: ns2.mydyndns.org
############################################

Does anybody see anything wrong with this setup? I have also tried disabling BQ DNS but it seems to make no difference.

I am at the end of my tether, does anybody have any ideas?
Flintstone
Forum member
 
Posts: 17
Joined: Fri Dec 15, 2006 2:34 pm

Re: SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Postby Flintstone on Wed Oct 15, 2008 12:32 pm

I have noticed that in /etc/mail/virtusertable all the emails are in the format:
username@www.ratcliffefamily.org

If I remove www. from the file and restart sendmail it then works but this is really a workaround rather than a fix. How can I have BQ automatically create the emails in the format username@ratcliffefamily.org?
Flintstone
Forum member
 
Posts: 17
Joined: Fri Dec 15, 2006 2:34 pm

Re: SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Postby macwunder on Wed Oct 15, 2008 10:18 pm

With regards to the accepting mail at "domain.org"... make sure every domain has the mail server alias filled in (the mail services tab of the virtual site) with the domain minus the "www.".
Jeff -- Yellow RaQ XTR, 1x (so far) 1GHz P-III, 2GB RAM, 4 x 80GB RAID 1+0, SB1
PowerMac G3 500 MHz, 512 MB RAM, 40 GB, Ubuntu
HP DC7100 3 GHz P4 HT, 2.5 GB RAM, 4 x 320 GB RAID 1+0, BlueOnyx
HP has 12,000 BOGOMIPS Baby!!!
User avatar
macwunder
Legendary Forum member
 
Posts: 171
Joined: Tue Sep 19, 2006 9:34 pm
Location: Texas, USA

Re: SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Postby Flintstone on Thu Oct 16, 2008 7:37 pm

Yes, they all have the email aliases set just like you said. It is sending email that causes the recursion, receiving email works just fine.

I suppose when a new user is added then their email address is set to the "Host and Domain Name" specified in the virtual sites general settings.

Because it is not possible to set the host to an empty string I have it set to www. When new users are created they automatically have the email address in virtusertable set to username@www.ratcliffefamily.org

Unfortunately sending an email then causes a circular reference with my setup (above). All I can do really is edit the virtusertable and remove all of the www. entries when I add a user :cry:
Flintstone
Forum member
 
Posts: 17
Joined: Fri Dec 15, 2006 2:34 pm

Re: SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Postby macwunder on Thu Oct 16, 2008 11:54 pm

I don't think it is a good idea to have dns info loaded in your RaQ if you want DynDNS to do it. The RaQ will always consider itself to be authoritative. And a localhost IP (127.0.0.1) is a bad thing to put in dns.

Could that be the source of recursion?

VirtUser should have this entry by default when you enter the ratcliffefamily.org email alias:

@ratcliffefamily.org www.ratcliffefamily.org

Which will accept all mail addressed without the "www." part.
Jeff -- Yellow RaQ XTR, 1x (so far) 1GHz P-III, 2GB RAM, 4 x 80GB RAID 1+0, SB1
PowerMac G3 500 MHz, 512 MB RAM, 40 GB, Ubuntu
HP DC7100 3 GHz P4 HT, 2.5 GB RAM, 4 x 320 GB RAID 1+0, BlueOnyx
HP has 12,000 BOGOMIPS Baby!!!
User avatar
macwunder
Legendary Forum member
 
Posts: 171
Joined: Tue Sep 19, 2006 9:34 pm
Location: Texas, USA

Re: SMTP - 554 5.0.0 rewrite: excessive recursion (max 50), rule

Postby Flintstone on Mon Oct 20, 2008 8:44 am

I have disabled DNS on the raq and still have the same issue. It is sending emails that causes the problem ... receiving works fine.

I suspect this may be something to do with the way DynDNS works. I will gather the information together and post on their forums ... I will post back here when I get a reply.
Flintstone
Forum member
 
Posts: 17
Joined: Fri Dec 15, 2006 2:34 pm


Return to Strongbolt Installation

Who is online

Users browsing this forum: No registered users and 2 guests

cron