Fedora Linux Support Community & Resources Center
  #1  
Old 5th February 2007, 05:56 PM
ganick Offline
Registered User
 
Join Date: Jan 2007
Posts: 3
Postfix and DNS error ?

Hi all,

We have RH9 Mail Server w/Sendmail, an old piece of hardware with lots of problems.
This is about to be replaced with new/better hardware (Athlon 64-bit, SATA RAID 1)
I try to setup this new mail server on Fedora Core 6 (Zod) x86_64 w/Postfix (MTA) and
Dovecot (MDA).
My Postfix configuration is as follows:
...
myhostname = mail.pireasnet.gr
mydomain = pireasnet.gr
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks_style = subnet
...
When I try to send mail between local users they don't get delivered.
Case A: When both mail servers, old and new, resides on the network the mails
sent to mail.pireasnet.gr (NEW) are automatically relayed to
collaboration.pireasnet.gr (OLD). The old one doesn't have the same accounts as the new one
so mails are lost. It seems that Postfix makes an MX lookup and relays the mail to the
server that DNS has recorded as 'default' mail server (existing MX record).
There is no 'relayhost' setting in /etc/postfix/main.cf
Case B:After editing /etc/postfix/access, and added some lines like
...
10.32.199 OK
192.168.1 OK
...
Note that there are no specific host ids but rather network ids, at least this
was my intention.
Done this because I thought that this will enforce the local users and will stop relaying.
Now I get: (/var/log/maillog)
...
Name service error for name=<IP-ADDRESS> type=A: Host found but no data record of requested type
...
Case C:Unplugged network cable from the old server, changed settings of the new
to match the old: hostname, IP address, myhostname etc.
Note that the old server has a valid MX record in its name server ! Now I get
/var/log/maillog):
...
status=bounced (mail for <...> loops back to myself)
...

First thing in the morning I will restore /etc/postfix/access with the original one, and
I will explicitly set the domain name into
mydestination= pireasnet.gr $myhostname, localhost.$mydomain, localhost, $mydomain

Any ideas of what else should I do ?
Should I try to upgrade Postfix ? 'yum' did not found new version of Postfix.
Please advise.

Thanks in advance.
Reply With Quote
  #2  
Old 19th May 2007, 01:14 PM
nimbius Offline
Registered User
 
Join Date: Nov 2004
Location: Kentucky
Posts: 131
get rid of localhost.$mydomain...wont work.

postfix disallows relay by default. no extra juice necessary

the error indicates a DNS failure.. check /etc/resolv.conf?

it looks like both servers are using the domain as "theirs" and the MX only points to one server...the easiest thing to do would be alter the MX to your postfix server, switch over immediately, then append mailqueues from the old server which may still have mail in them to the new queues for postfix server users

there is a way to turn dns lookups off in postfix, but i definitely do not recommend it long-term.
__________________
The sage does not hoard. The more he helps others, the more he benefits himself, The more he gives to others, the more he gets himself. The Way of Heaven does one good but never does one harm. The Way of the sage is to act but not to compete.

--Lao Tzu
Reply With Quote
Reply

Tags
dns, error, postfix

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix Connection Error coolbeansdude51 Servers & Networking 1 22nd April 2007 11:15 AM
Postfix Error fedorafan2 Using Fedora 1 11th April 2007 03:30 AM
POSTFIX Error mick-porter Using Fedora 6 26th March 2006 10:02 PM
Postfix Error jim Servers & Networking 3 14th December 2005 11:23 AM
Postfix Error msg.. help gabriellai Servers & Networking 0 1st August 2005 02:59 PM


Current GMT-time: 07:07 (Saturday, 26-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat