LinuxQuestions.org
Review your favorite Linux distribution.
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 10-13-2004, 01:04 PM   #1
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Rep: Reputation: 30
DNS and Postfix problem


Having configured DNS for my home network, postfix stopped working. I've obviously missed something.

All I'm trying to do right now is send an email within my own network - e.g. from the command line on the mail server to my own user account (i.e. to my Linux user account on the server on which Postfix is running, rather than forwarding it onto another mail server or anything like that).

If I put an MX record in DNS, it comes back with the error

Oct 13 18:39:16 willow postfix/smtp[13532]: F0F25C263: to=<iain@mail.cl-office.co.uk>, relay=none, delay=0, status=bounced (mail for mail.cl-office.co.uk loops back to myself)

If I take the MX record out I get

Oct 13 18:42:22 willow postfix/smtp[13551]: 77D1C4018: to=<iain@cl-office.co.uk>, orig_to=<iain>, relay=none, delay=0, status=bounced (Host or domain name not found. Name service error for name=cl-office.co.uk type=A: Host found but no data record of requested type)

Other than this, bind9 seems to be working fine.

[root@willow postfix]# postconf -n
alias_maps = hash:/etc/postfix/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
delay_warning_time = 4h
disable_dns_lookups = no
html_directory = /usr/share/doc/postfix-2.1.1/html
inet_interfaces = localhost $myhostname
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
myhostname = willow.cl-office.co.uk
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
owner_request_special = no
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.1.1/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.1.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
smtpd_sasl_path = /etc/postfix/sasl:/usr/lib/sasl2
unknown_local_recipient_reject_code = 450

Here's the zone file (without MX entry in this case)

[root@willow pz]# cat cl*
$TTL 3D
@ IN SOA ns.cl-office.co.uk. willow.cl-office.co.uk. (
199802151; Serial
8H; Refresh
2H; Retry
4W; Expire
1D); Minimum TTL
;
NS ns;
;
localhost A 127.0.0.1
ns A 192.168.1.11
willow CNAME ns
spike A 192.168.1.10
tiny A 192.168.1.20
router A 192.168.1.1
mail CNAME ns

Last edited by iainr; 10-13-2004 at 03:04 PM.
 
Old 10-13-2004, 03:15 PM   #2
iainr
Member
 
Registered: Nov 2002
Location: England
Distribution: Ubuntu 9.04
Posts: 631

Original Poster
Rep: Reputation: 30
Problem solved (I think).

I did need the MX entries in DNS - so my zone file now looks like this :

$TTL 3D
@ IN SOA ns.cl-office.co.uk. willow.cl-office.co.uk. (
199802151; Serial
8H; Refresh
2H; Retry
4W; Expire
1D); Minimum TTL
;
NS ns;
MX 10 mail;
;
localhost A 127.0.0.1
ns A 192.168.1.11
willow CNAME ns
spike A 192.168.1.10
tiny A 192.168.1.20
router A 192.168.1.1
cl-office.co.uk IN MX 10 ns
mail CNAME ns


I also needed to explicitely name the different hosts I might receive mail for in mydestinations in main.cf (wildcards or just the domain name didn't seem to work - is that right?)

mydestination = mail.$mydomain ns.$mydomain $myhostname $mydomain localhost $localhost.$mydomain
 
  


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 DNS issue collen Linux - Networking 1 11-30-2004 12:59 PM
Postfix+fetchmail+DNS? DavidHayes Linux - Networking 4 01-29-2004 01:51 PM
Postfix+fetchmail+DNS? DavidHayes Linux - Networking 2 01-27-2004 07:50 AM
Postfix/Reverse DNS Problem otisthegbs Linux - Software 0 12-15-2003 01:05 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:41 AM.

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