I have broken my email and could use sime help

17 posts / 0 new
Last post
#1 Fri, 11/26/2010 - 00:29
dkelly60

I have broken my email and could use sime help

I seem to have broken my email it was working but I added a new IP address and setup a secure server for it after that I discovered I was no longer receiving emails.

I can send them via webmin read user mail but they are not being sent via php (my CMS website) any more. The error message on bounced emails is Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error for name=ns1 type=A: Host not found Now ns1 is my server name the email I am trying to reach is vcch@vcch.biz I have read the email trouble shooting guide but I am pretty new to this and a bit lost.

Any guidance on how to trouble shoot this would be greatly appreciated.

Fri, 11/26/2010 - 01:30
ronald
ronald's picture

IF the CMS has trouble sending mail, then you may have to correct the CMS configuration
or are there other trouble as well?

Did you check the logs?

Fri, 11/26/2010 - 01:36 (Reply to #2)
dkelly60

The CMS not sending is how I found there was a problem but the main problem for me at the moment is I am unable to receive mail to virtual server addresses. eg vcch@vcch.biz the main email for vcch.biz

Fri, 11/26/2010 - 15:52
ronald
ronald's picture

okay well to start troubleshooting the first thing is to look into the logs.
Under Webmin - System - System Logs maillog and messages around the time you send/receive mail
Without logs no one can guess what is happening.

However since you added an IP, you can start with DNS.
telnet 173.255.226.62 25
Trying 173.255.226.62...
Connected to li236-62.members.linode.com (173.255.226.62).
Escape character is '^]'.
220 ns1.pcsmarts.biz ESMTP Postfix (Ubuntu)

the hostname for postfix seems odd.
I think it should be ns1.linode.com not ns1.pcsmarts.biz

Fri, 11/26/2010 - 16:24
Locutus

I agree with ronald there... Postfix on the server which is, according to DNS entries, the responsible MX for "vcch.biz", is identifying itself with a hostname that resolves to a completely different IP.

It'd be good to know what precisely was changed in the first place, which caused mail reception to stop functioning. "Added an IP address" means? Which IP does your server have, and which one did you add? Add where? What else did you change concerning mail configuration?

PHP email sending and email reception is basically two different things, even though PHP of course does use Postfix to send out its mail.

In other words, in addition to checking the log files, which indeed is always the first thing to do when there's such trouble, we need to know more about your configuration to make a worthwhile problem assessment. :)

Fri, 11/26/2010 - 19:43
dkelly60

Thanks for the help:)

Here is a copy of the mail.log for a failed attempt to receive email.

Nov 27 11:55:14 ns1 postfix/smtpd[3182]: connect from mail06.syd.optusnet.com.au[211.29.132.187]
Nov 27 11:55:16 ns1 postfix/smtpd[3182]: 34F7516EAE: client=mail06.syd.optusnet.com.au[211.29.132.187]
Nov 27 11:55:16 ns1 postfix/cleanup[3201]: 34F7516EAE: message-id=<4CF056F2.4070302@therapiesnet.com>
Nov 27 11:55:16 ns1 postfix/qmgr[2873]: 34F7516EAE: from=<dk@therapiesnet.com>, size=824, nrcpt=1 (queue active)
Nov 27 11:55:16 ns1 postfix/smtp[3204]: 34F7516EAE: to=<vcch@ns1>, orig_to=<vcch@vcch.biz>, relay=none, delay=0.79, delays=0.75/0.02/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=ns1 type=A: Host not found)
Nov 27 11:55:16 ns1 postfix/cleanup[3201]: C267816EB0: message-id=<20101127005516.C267816EB0@ns1.pcsmarts.biz>
Nov 27 11:55:16 ns1 postfix/bounce[3205]: 34F7516EAE: sender non-delivery notification: C267816EB0
Nov 27 11:55:16 ns1 postfix/qmgr[2873]: C267816EB0: from=<>, size=2723, nrcpt=1 (queue active)
Nov 27 11:55:16 ns1 postfix/qmgr[2873]: 34F7516EAE: removed
Nov 27 11:55:17 ns1 postfix/smtpd[3182]: disconnect from mail06.syd.optusnet.com.au[211.29.132.187]
Nov 27 11:55:17 ns1 postfix/smtp[3204]: C267816EB0: to=<dk@therapiesnet.com>, relay=therapiesnet.com[72.29.104.140]:25, delay=0.62, delays=0/0/0.32/0.3, dsn=2.0.0, status=sent (250 OK id=1PM94X-0006WP-Ex)
Nov 27 11:55:17 ns1 postfix/qmgr[2873]: C267816EB0: removed

Regarding the postfix hostname I could well have made a mistake when I set it up. This is not an active live site I am still learning about working with a VPS I am using Linode and eventually would like to move some of my live sites onto it.

I must admit that some basic things still seem to escape me. For instance when I installed Virtualmin I had to set a FQDN I used ns1.pcsmarts.biz as I own the pcsmarts.biz domain and would like to host a few websites on this server. Is there a problem with this as the name?

I have 2 IP address for this VPS and the current Reverse DNS are

69.164.218.202 li133-202.members.linode.com

173.255.226.62 li236-62.members.linode.com

The original setup had vcch.biz on IP 69.164.218.202 I then changed the IP for vcch.biz to 173.255.226.62 to setup a secure certificate for it.

Now pcsmarts.biz is hosted on a shared hosting service elsewhere and ns1.pcsmarts.biz has an A type name record pointing to 69.164.218.202 .

Should I change the reverse DNS for 69.164.218.202 to ns1.pcsmarts.biz ? And I guess that the email problem is todo with the lack A type name for 173.255.226.62

Do I need to change the postfix hostname? If I do how will this affect other sites hosted on the original 69.164.218.202 IP?

Sat, 11/27/2010 - 07:56
Locutus

Whew, this is getting complicated. :) Don't have time right now unfortunately to try and reproduce all you said there. For now I can point to an obvious problem in the mail reception:

Nov 27 11:55:16 ns1 postfix/smtp[3204]: 34F7516EAE: to=<vcch@ns1>, orig_to=<vcch@vcch.biz>, relay=none, delay=0.79, delays=0.75/0.02/0.02/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=ns1 type=A: Host not found)

There seems to be a misconfiguration in the Virtual Domains table of Postfix, mapping vcch.biz to just "ns1" instead of the whole hostname. That can happen when another mapping entry is missing.

I think the best way to proceed here would be to create another dummy/test virtual server with some email user, then check Webmin's Postfix module, section Virtual Domains, to see what the mappings for domain and users should look like. Then compare to the failing domain.

How did you change the IP? Through Vmin's Server Configuration -> Change IP Address? IP address changes should not affect Postfix at all, since email, in this regard, works on host/domain names only.

Sun, 11/28/2010 - 23:07 (Reply to #7)
dkelly60

The problem turned out to be /etc/mailname was not the FQDN it was ns1 I changed it to ns1.pcsmarts,biz and all is good now.

Mon, 12/20/2010 - 16:55
crocman

Hi: I'm having problems with my incoming mail. After following the various previous postings I am still stumped. It seems to me to be a problem with my Host mail.xxx.com ip address not up dating with my Virtualmin network settings. I checked and the Host mail.xxx.com ip address is incorrect. So how would I change the mail ip address that is not matching the host configuration? Thanks

Mon, 12/20/2010 - 19:39
Locutus

Can you elaborate "IP address"? What part of the configuration are we talking about exactly, as in, where is the address set wrong?

Tue, 12/21/2010 - 10:31
crocman

Hi: I was referring to the address that is listed with host mail.xxx.com address xxxx I corrected the address to match my external ip but the same problem still results with the email not working with an error 4.71 Postfix cleanup milter_reject. Any ideas? Thanks

Tue, 12/21/2010 - 11:41
Locutus

Sorry, I still don't get what IP address exactly you're talking about...

Tue, 12/21/2010 - 11:55
crocman

Hi Locutus: Previously the network settings default ip address for DNS records was different then the Bind DNS records. Where I now corrected the Bind DNS records to be the same in the var/named/xxx.com.hosts file. Still this did not help.

Tue, 12/21/2010 - 18:00
Locutus

I'm afraid I'd need much more information about your setup and especially about log entries, e.g. in /var/log/mail.log, to venture any meaningful guess.

Tue, 12/21/2010 - 19:34
crocman

Ok, here is some of the files below. message-id=20101221025929.D4BC124A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4094]: D4BC124A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: 12CFA24A8278: message has been queued for 2 days Dec 20 20:59:30 host postfix/pickup[2468]: 12CFA24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: 12CFA24A8278: message-id=20101221025930.12CFA24A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: 12CFA24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: 3A0B724A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4094]: 3A0B724A8278: message-id=20101221025930.3A0B724A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4094]: 3A0B724A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: 3AEF924A8278: message has been queued for 12 days Dec 20 20:59:30 host postfix/pickup[2468]: 3AEF924A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: 3AEF924A8278: message-id=20101221025930.3AEF924A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: 3AEF924A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: 3C33D24A8278: message has been queued for 14 days Dec 20 20:59:30 host postfix/pickup[2468]: 3C33D24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4094]: 3C33D24A8278: message-id=20101221025930.3C33D24A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4094]: 3C33D24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: 45BD824A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: 45BD824A8278: message-id=20101221025930.45BD824A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: 45BD824A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: 54F6624A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4094]: 54F6624A8278: message-id=20101221025930.54F6624A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4094]: 54F6624A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: 7A47624A8278: message has been queued for 9 days Dec 20 20:59:30 host postfix/pickup[2468]: 7A47624A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: 7A47624A8278: message-id=20101221025930.7A47624A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: 7A47624A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: 8F69024A8278: message has been queued for 10 days Dec 20 20:59:30 host postfix/pickup[2468]: 8F69024A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4094]: 8F69024A8278: message-id=20101221025930.8F69024A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4094]: 8F69024A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xxxyz.com to=root@host.xxxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: A2D1E24A8278: message has been queued for 12 days Dec 20 20:59:30 host postfix/pickup[2468]: A2D1E24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: A2D1E24A8278: message-id=20101221025930.A2D1E24A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: A2D1E24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.yoxyz.com to=root@host.yoxyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: A38DD24A8278: message has been queued for 5 days Dec 20 20:59:30 host postfix/pickup[2468]: A38DD24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4094]: A38DD24A8278: message-id=20101221025930.A38DD24A8278@host.xxxyz.com Dec 20 20:59:30 host postfix/cleanup[4094]: A38DD24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xyz.com to=root@host.xyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: BE82F24A8278: message has been queued for 15 days Dec 20 20:59:30 host postfix/pickup[2468]: BE82F24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: BE82F24A8278: message-id=20101221025930.BE82F24A8278@host.xyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: BE82F24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xyz.com to=root@host.xyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: C1B7D24A8278: message has been queued for 12 days Dec 20 20:59:30 host postfix/pickup[2468]: C1B7D24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4629]: C1B7D24A8278: message-id=20101221025930.C1B7D24A8278@host.xyz.com Dec 20 20:59:30 host postfix/cleanup[4629]: C1B7D24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xyz.com to=root@host.xyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: C2FFC24A8278: message has been queued for 14 days Dec 20 20:59:30 host postfix/pickup[2468]: C2FFC24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: C2FFC24A8278: message-id=20101221025930.C2FFC24A8278@host.xyz.com Dec 20 20:59:30 host postfix/cleanup[4125]: C2FFC24A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xyz.com to=root@host.xyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: C3B8524A8278: message has been queued for 1 days Dec 20 20:59:30 host postfix/pickup[2468]: C3B8524A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4629]: C3B8524A8278: message-id=20101221025930.C3B8524A8278@host.xyz.com Dec 20 20:59:30 host postfix/cleanup[4629]: C3B8524A8278: milter-reject: END-OF-MESSAGE from localhost[127.0.0.1]: 4.7.1 Service unavailable - try again later; from=root@host.xyz.com to=root@host.xyz.com Dec 20 20:59:30 host postfix/pickup[2468]: warning: C45AD24A8278: message has been queued for 3 days Dec 20 20:59:30 host postfix/pickup[2468]: C45AD24A8278: uid=0 from= Dec 20 20:59:30 host postfix/cleanup[4125]: C45AD24A8278: message-

Wed, 12/22/2010 - 04:01
Locutus

Can you please put screen output listings in   tags? Then they'll have proper line breaks and a fixed-width font. Should have mentioned that before, sorry. :)

Wed, 12/22/2010 - 11:48
crocman

Ok, I understand. Is the font ok for you too? I'll just reload Virtualmin again, never mind. It seems the email service still has issues and we can't be experts at everything but thanks anyway for the help.

Topic locked