LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 02-02-2013, 07:25 PM   #1
AcorpComputers
LQ Newbie
 
Registered: Apr 2010
Posts: 14

Rep: Reputation: 1
Postfix prefering IPv6 over IPv4 and failing to send


Postfix 2.3.3 on CentOS 5.8

Problem: In a dual-stack server with Postfix using both IPv4 and IPv6, sending to a certain IPv4 only domain - with no AAAA DNS record - fails
Result: Postfix tries IPv6 first and then fails, with no IPv4 attempt
Fail message: status=bounced (Host or domain name not found. Name service error for name=DOMAIN.com type=AAAA: Host not found)

I have sanitized the log entries below, but if some information is necessary in determining what is happening, I can communicate the relevant domain directly to you.

For what it is worth, main.cf is set to use both IPv4 and IPv6, and the server has native IPv4 and IPv6 internet connections:

Code:
inet_protocols = all
And this is the log snippet - first with inet_protocol = all, then changed to inet_protocol = ipv4 and postfix restarted:

Code:
Feb  2 18:36:33 Calevra postfix/smtp[5581]: 05C6D285802C: to=<user@DOMAIN.com>, relay=none, delay=5.8, delays=0.46/0.02/5.3/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=DOMAIN.com type=AAAA: Host not found)
Feb  2 18:45:57 Calevra postfix/postfix-script: stopping the Postfix mail system
Feb  2 18:45:57 Calevra postfix/master[1045]: terminating on signal 15
Feb  2 18:45:57 Calevra postfix/postfix-script: starting the Postfix mail system
Feb  2 18:45:57 Calevra postfix/master[5986]: daemon started -- version 2.3.3, configuration /etc/postfix
Feb  2 18:46:49 Calevra postfix/smtp[5996]: 50D6A285802B: to=<user@DOMAIN.com>, relay=smtp.secureserver.net[216.69.186.201]:25, delay=1.6, delays=0.45/0/0.59/0.57, dsn=2.0.0, status=sent (250 ok:  Message 1004841767 accepted)
Anyone have any ideas why postfix is starting with IPv6, and doesn't fail back to IPv4 if there is a send failure? Is there some sort of domain misconfiguration that could cause this, a Postfix problem, or a GoDaddy mail server (smtp.secureserver.net) problem?!

TIA,

- Acorp
 
  


Reply

Tags
ipv4, ipv6, postfix


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IPv6 / IPv4 cheddarcheese Linux - Newbie 9 07-12-2012 04:40 PM
IPv4 to IPv6 Winanjaya Linux - Networking 1 06-14-2010 07:45 AM
IPv6 over IPv4 lo-kəy Linux - Networking 1 05-04-2009 01:45 AM
Postfix failing to send mail to Maildir subaruwrx Linux - Software 0 03-15-2005 05:47 AM
ipv4 vs. ipv6 radix Linux - Security 2 09-17-2003 01:39 PM


All times are GMT -5. The time now is 06:34 AM.

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