Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd June 2010, 21:06
djbaze djbaze is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question Postfix error when trying to send message to web

Hi Guys,

I am getting an error when I try to send an email from the inside network (where my server is too) to the internet, (local to local goes perfect), this is the error i get:


This is the mail system at host xxx

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

<xxx@xxx>: Host or domain name not found. Name service error for
name=xxx type=A: Host found but no data record of requested type.


Also when I send a mail from the internet to my server nothing is being received, but there is no postmaster message coming back that the smtp server (not the local one, the one on the web) isn't being delivered...

Ports 25, 110, 465, 995, and 80 are open, and I'm using Postfix SMTP server and Dovecot POP/IMAP server on CentOS 5.4.

Hope you can find the solution 'cuz i'm getting crazy!


Edit:

when I send my mail from local server to gmail, nothing happens, only the log tells me that it tries to connect and that the connection times out, i dont know why

Last edited by djbaze; 22nd June 2010 at 21:35. Reason: I found out more
Reply With Quote
Sponsored Links
  #2  
Old 23rd June 2010, 01:32
matty matty is offline
Member
 
Join Date: Apr 2010
Location: Australia
Posts: 85
Thanks: 2
Thanked 12 Times in 11 Posts
Default

Quote:
Originally Posted by djbaze View Post
<xxx@xxx>: Host or domain name not found. Name service error for
name=xxx type=A: Host found but no data record of requested type.
This is saying you need some DNS records for your domain and your mail server. Your mail server needs matching forward and reverse DNS records, and it should announce itself as whatever you set the forward name as. If you are using NAT, this will be related to whatever the IP address is on your Internet connection.

Your domain (in this case, whatever comes after the @) needs at least either an A or MX record so that the receiving server can check the authenticity of your domain.


Quote:
Also when I send a mail from the internet to my server nothing is being received,
Do some testing to and from your server with telnet. An example from your server might be as follows. You should substitute your own info. Remote server responses are italicised. Swap the obvious bits around for testing into your server. This lets you emulate what a mail server does, and might give you some clues as to where it fails (like, are your ports really open, etc).

telnet alt1.gmail-smtp-in.l.google.com 25
Trying 74.125.65.27...
Connected to alt1.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP b18si26144582anl.98

helo myservername.example.com
250 mx.google.com at your service
mail from:<you@yourdomain.example.com>
250 2.1.0 OK b18si26144582anl.98
rcpt to:<someone@gmail.com>
250 2.1.5 OK b18si26144582anl.98
data
354 Go ahead b18si26144582anl.98
To: someone@gmail.com
From: you@yourdomain.example.com
Subject: test 123

foo
bar
.
250 2.0.0 OK 1277248974 b18si26144582anl.98
quit
221 2.0.0 closing connection b18si26144582anl.98
Connection closed by foreign host.
Reply With Quote
  #3  
Old 23rd June 2010, 08:53
djbaze djbaze is offline
Junior Member
 
Join Date: Jun 2010
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by matty View Post
Your domain (in this case, whatever comes after the @) needs at least either an A or MX record so that the receiving server can check the authenticity of your domain.
I am sure my server got 1 A and 1 MX record, but my domainhost is having some problems at the moment, maybe that's the problem, I will try this again in about 1-2 days when the server of my domain is fully online again.


Quote:
Originally Posted by matty View Post
Do some testing to and from your server with telnet. An example from your server might be as follows. You should substitute your own info. Remote server responses are italicised. Swap the obvious bits around for testing into your server. This lets you emulate what a mail server does, and might give you some clues as to where it fails (like, are your ports really open, etc).

telnet alt1.gmail-smtp-in.l.google.com 25
Trying 74.125.65.27...
Connected to alt1.gmail-smtp-in.l.google.com.
Escape character is '^]'.
220 mx.google.com ESMTP b18si26144582anl.98

helo myservername.example.com
250 mx.google.com at your service
mail from:<you@yourdomain.example.com>
250 2.1.0 OK b18si26144582anl.98
rcpt to:<someone@gmail.com>
250 2.1.5 OK b18si26144582anl.98
data
354 Go ahead b18si26144582anl.98
To: someone@gmail.com
From: you@yourdomain.example.com
Subject: test 123

foo
bar
.
250 2.0.0 OK 1277248974 b18si26144582anl.98
quit
221 2.0.0 closing connection b18si26144582anl.98
Connection closed by foreign host.

Sending an email from my to my gmail account worked perfectly, and it arrived, in the gmail mailbox, but the other side around doesn't work yet.
Reply With Quote
  #4  
Old 23rd June 2010, 16:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by djbaze View Post
Sending an email from my to my gmail account worked perfectly, and it arrived, in the gmail mailbox, but the other side around doesn't work yet.
Please make sure that your MX record points to the right server. You can check that by running
Code:
dig mx yourdomain.com
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Tags
email, error, mx record, postfix

Thread Tools
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
Help configure Postfix to use alt port 465 or 587 BoloMarkIII Installation/Configuration 10 16th March 2009 17:57
Errors Installing Postfix, PostfixAdmin, Courier asyadiqin Installation/Configuration 15 13th November 2008 17:28
Mail System Error - Returned Mail tristanlee85 General 16 16th March 2008 09:40
Problems with the virtual email system with postfix, courier,mysql Greg Parker HOWTO-Related Questions 3 3rd January 2007 17:59
Virtual Users And Domains With Postfix, Courier And MySQL (mail not relaying) RinoM1 Server Operation 1 12th November 2006 15:31


All times are GMT +2. The time now is 06:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.