Mail delivery problem

14 posts / 0 new
Last post
#1 Sat, 04/10/2010 - 14:53
AllanIT

Mail delivery problem

I have a bit of a problem. I wanted to install ubuntu 8.04 but during the installation it sais that it cant detect the network card. And then I cant go any further with the installation. Apparently my hard ware is to new. So I had no choice but to use Ubuntu Linux 9.04 and the install.sh. But I have run into problems.

When mail is sent to me or I send mail with in my server (from one mail account on my server to another also on my server) I get the following error and the mail returned.

This is the mail system at host binserv2.binaryone.com.au.

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

               The mail system

<firstname.surname.mydomain@hostname> (expanded from firstname.surname@mydomain.com): Host or domain name not found. Name service error for name=hostname type=A: Host not found

I have spent quit some time looking at this and the dns records look correct. However I cant find the reverse zone and I was wondering if that could have something to do with the problem.

Sat, 04/10/2010 - 19:25
andreychek

Yeah, you'll probably run into a few issues with a non-LTS version of Ubuntu. The good news is that after the new 10.04 release comes out, Virtualmin will support that :-)

In the meantime, make sure that whatever your hostname is -- that the name appears in /etc/hosts, as well as on the "mydestination" line of your /etc/postfix/main.cf file.

-Eric

Sun, 04/11/2010 - 02:06
AllanIT

Hi Eric

Thanks for you help, I really appreciate it. below is the info in the two files on my server you discuss above It looks correct to me but I don’t really know.

I don't know weather it matters or not but at this stage I only have one virtual server on this server and I will refer to it here as myvirtualserver.com.

Allan

/etc/hosts

127.0.0.1 localhost
192.168.0.175 hostname.mydomain.com hostname

# The following lines are desirable for IPv6 capable hosts
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

mydestination line in main.cf

hostname.mydomain.com, localhost.mydomain.com, , localhost

Sun, 04/11/2010 - 14:03
andreychek

Howdy,

Okay... and, what's the exact output you see when typing the command "hostname" on the command line of your server?

-Eric

Sun, 04/11/2010 - 14:19
AllanIT

The output of the command "hostname" is

hostname

Sun, 04/11/2010 - 14:24
andreychek

Okay, try setting that to the FQDN "hostname.mydomain.com" instead of just "hostname".

You can do that by typing this on the command line:

hostname hostname.mydomain.com

Sun, 04/11/2010 - 14:33
AllanIT

I have done that and the output is

> hostname -f

hostname.mydomain.com

> hostname -s

hostname

Thu, 04/15/2010 - 06:11
AllanIT

Hi Eric

thanks for your help but nothing above worked and as it is only a few weeks till the new Ubuntu is released I have decided my best plan of action is to star a fresh then. Fortunately I kept my old server running just in case. I will however start a new thread and see if I cant get the setup right from the start.

Thanks Allan

Fri, 04/16/2010 - 10:28
barney

I am getting the same problem. I can send emails but my hostname does not want to resolve so I can't get them in. Please help. It's fresh install of Ubuntu Linux 8.04.4.

This is the error....

I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can delete your own text from the attached returned message.

              The mail system

<chris.offyerface@chris-lamp-farm> (expanded from chris@offyerface.com): Host or domain name not found. Name service error for name=chris-lamp-farm type=A: Host not found Reporting-MTA: dns; c18-ss-2-lb.cnet.com X-Postfix-Queue-ID: 9FC5B168696 X-Postfix-Sender: rfc822; chrismeacock@mac.com Arrival-Date: Fri, 16 Apr 2010 14:03:27 +0100 (BST)

Final-Recipient: rfc822; chris.offyerface@chris-lamp-farm Original-Recipient: rfc822;chris@offyerface.com Action: failed Status: 5.4.4 Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=chris-lamp-farm type=A: Host not found

Fri, 04/16/2010 - 10:46
andreychek

Howdy,

Well, I'm seeing this error message in the above:

Name service error for name=chris-lamp-farm

Note the lack of any tld on the end of that... it seems like something is awry in there somewhere :-)

We don't want those emails being delivered to "chris-lamp-farm", we want it to deliver to "chris-lamp-farm.domain.tld".

So for starters, I'd suggest verifying the same items that I mentioned for AllenIT above:

  1. The output of "hostname" returns a full FQDN (hostname.example.com)

  2. The contents of /etc/hosts include an IP address associated with your FQDN

  3. The "mydestination" line in /etc/postfix/main.cf has your FQDN listed on it

Those three items not being in sync is a common cause of email issues.

-Eric

Fri, 04/16/2010 - 16:16
barney

This OK?

root@hostname:~# hostname hostname.offyerface.com root@hostname:~#

is this correct?

195.160.212.66 hostname.offyerface.com

..and this

mydestination = c18-ss-2-lb.cnet.com, localhost.cnet.com, , localhost, step39.com, hostname.offyerface.com, localhost.gyw-getactive.co.uk

still can't get it to go..

Sun, 04/18/2010 - 01:19
AllanIT

This is the same problem I had, even when I put the correct information in I could not get it going.

What are the steps to trouble shoot this problem, please.

Mon, 04/19/2010 - 09:21
andreychek

It looks like the command you ran above changed the systems hostname... I would suggest restarting Postfix at that point and seeing if that happens to work for you.

If not, what I'd also try is going into /etc/postfix/main.cf, and adding "chris-lamp-farm" to the mydestination line (and then restarting Postfix when you're done).

-Eric

Mon, 04/19/2010 - 14:32
barney

My Tech has had a long peek and cleaned the whole machine down and reloaded Ubuntu. He says there is a nasty bug in the postfix main.cf file mynetworks line. He says Postfix won't work out of the box as it stands. We will try installing virtualmin tomorrow and keep you posted.

Topic locked