LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-05-2007, 11:51 AM   #1
ganick
LQ Newbie
 
Registered: Jan 2006
Posts: 19

Rep: Reputation: 0
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.
 
Old 02-06-2007, 11:26 PM   #2
socceroos
Member
 
Registered: Aug 2005
Location: Australia
Distribution: Ubuntu, FreeBSD, Fedora
Posts: 125

Rep: Reputation: 16
Have you tried following a howto? If you go to postfix.org there are many howtos for many desired configurations.

Also there is this howto (I've followed the one for the Ubuntu server and it all worked):

http://www.howtoforge.com/installing...dora_core_6_p5

Sorry that I did not directly answer your question, I am not very familiar with mail systems, but I do hope this helps!
 
  


Reply



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 and dns.. mmoor Fedora 8 05-17-2006 01:16 AM
Postfix and DNS Sapient Linux - Networking 17 12-29-2005 11:20 AM
DNS and Postfix problem iainr Linux - Software 1 10-13-2004 03:15 PM
can't start postfix ./postfix status error jules_fraser Linux - Software 3 12-06-2003 06:33 PM
Postfix & DNS error mayankjohri Linux - Networking 3 06-11-2002 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:15 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration