LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 12-30-2004, 04:15 PM   #1
dlublink
Member
 
Registered: Oct 2004
Location: Canada
Distribution: Ubuntu
Posts: 329

Rep: Reputation: 30
Postfix Mail Loop


Hey All!


My domain name has two MX servers, one with a priority of 0 and the second with a priority of 20.

When both servers are running. Any messages sent to the 20 priority level server is immediatly passed to the primary. But unfortunatly if the primary is down, the secondary looks up the domain and sees it self as the only available server and sends the message to it self over and over...

I have the backup mx server set to relay messages to the primary mail server for the domain.

Perhaps I have done this in the wrong way.

Is there a better way to do this?


thanks,

David

For obvious reasons I sensored private information.
The substitutions are pretty straight forward so I will not explain. This is the mail log from the server with priority 20. And is calling itself in the log mail2.mydomain.net.

This actually goes on for quite a bit, it tried about 100 times to send it to itself.


=== Clip ====
Dec 28 20:38:24 keble postfix/smtpd[6331]: connect from rproxy.gmail.com[64.233.170.203]
Dec 28 20:38:25 keble postfix/smtpd[6331]: 01AE533E6C: client=rproxy.gmail.com[64.233.170.203]
Dec 28 20:38:25 keble postfix/cleanup[6332]: 01AE533E6C: message-id=<a8452c8404122817461d28c884@mail.gmail.com>
Dec 28 20:38:25 keble postfix/nqmgr[28555]: 01AE533E6C: from=<someuser@gmail.com>, size=2162, nrcpt=1 (queue active)
Dec 28 20:38:25 keble postfix/smtp[6334]: connect to mail1.mydomain.net[PrimaryMXipaddress]: Network is unreachable (port 25)
Dec 28 20:38:25 keble postfix/smtpd[6331]: disconnect from rproxy.gmail.com[64.233.170.203]
Dec 28 20:38:25 keble postfix/smtpd[6335]: connect from unknown[192.168.1.1]
Dec 28 20:38:25 keble postfix/smtp[6334]: warning: host mail2.mydomain.net[SecondaryMXipaddress] greeted me with my own hostname mail.mail2.mydomain.net
Dec 28 20:38:25 keble postfix/smtp[6334]: warning: host mail2.mydomain.net[SecondaryMXipaddress] replied to HELO/EHLO with my own hostname mail.mail2.mydomain.net
Dec 28 20:38:25 keble postfix/smtp[6334]: 01AE533E6C: to=<Reciever's email>, relay=mail2.mydomain.net[SecondaryMXipaddress], delay=0, status=deferred (mail for mail1.mydomain.net loops back to myself)
Dec 28 20:38:25 keble postfix/smtpd[6335]: lost connection after EHLO from unknown[192.168.1.1]
Dec 28 20:38:25 keble postfix/smtpd[6335]: disconnect from unknown[192.168.1.1]
Dec 28 20:48:46 keble postfix/nqmgr[28555]: 01AE533E6C: from=<someuser@gmail.com>, size=2162, nrcpt=1 (queue active)
Dec 28 20:48:46 keble postfix/smtp[6348]: connect to mail1.mydomain.net[PrimaryMXipaddress]: Network is unreachable (port 25)
Dec 28 20:48:46 keble postfix/smtpd[6349]: connect from unknown[192.168.1.1]
Dec 28 20:48:46 keble postfix/smtp[6348]: warning: host mail2.mydomain.net[SecondaryMXipaddress] greeted me with my own hostname mail.mail2.mydomain.net
Dec 28 20:48:46 keble postfix/smtp[6348]: warning: host mail2.mydomain.net[SecondaryMXipaddress] replied to HELO/EHLO with my own hostname mail.mail2.mydomain.net
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 4 07-11-2005 09:12 PM
Postfix mail forwarding loop lacerto Linux - Networking 1 06-01-2005 06:07 PM
Postfix ---------- Loop backs to myself joseph Linux - General 0 08-20-2003 04:14 AM
Mail Loop kips Linux - Software 0 07-03-2003 06:03 AM
Postfix-spamassassin mail loop problem Pcghost Linux - Software 5 06-17-2003 05:55 PM


All times are GMT -5. The time now is 03:43 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration