HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=16)
-   -   Email Issues (http://www.howtoforge.com/forums/showthread.php?t=33370)

neilsaab 7th April 2009 12:13

Email Issues
 
Hi guys,

I am having some email issues with my installation of ispconfig 2.2.25. If I send an email to any of my users on any of my domains, the email obviously reaches the server but I then get an error message returned from my server.
I know this has to be a simple config error, almost certainly on my part, but I really want to get this sorted out please.

This is what I get from the server.

HTML Code:

This is the mail system at host cpc2-norw3-0-0-cust15.

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

<web6_thorpelegion@cpc2-norw3-0-0-cust15.localdomain> (expanded from
    <neil@thorpe-britishlegion.org.uk>): Host or domain name not found. Name
    service error for name=cpc2-norw3-0-0-cust15.localdomain type=A: Host not
    found

HTML Code:

Reporting-MTA: dns; cpc2-norw3-0-0-cust15
X-Postfix-Queue-ID: 7FE8EF504DC
X-Postfix-Sender: rfc822; neil.cordner@ntlworld.com
Arrival-Date: Tue,  7 Apr 2009 11:02:58 퍝㐅Ⓟ詶ꕅ꘧Ꞷ럜끹뺭蚊垠誉?춧ꊼ㟓䜮닝禖蜚闚♪⧎긨⊝ꥑ秈ꦉ: rfc822;neil@thorpe-britishlegion.org.uk
Action: failed
Status: 5.4.4
Diagnostic-Code: X-Postfix; Host or domain name not found. Name service error
    for name=cpc2-norw3-0-0-cust15.localdomain type=A: Host not found

Any help or pointers in the right direction would be greatly appreciated.

Neil

falko 8th April 2009 12:36

Do you use cpc2-norw3-0-0-cust15.localdomain in /etc/postfix/main.cf? What are the outputs of
Code:

hostname
and
Code:

hostname -f
? What's in /etc/hosts?

neilsaab 8th April 2009 15:59

Quote:

Originally Posted by falko (Post 180483)
Do you use cpc2-norw3-0-0-cust15.localdomain in /etc/postfix/main.cf? What are the outputs of
Code:

hostname
and
Code:

hostname -f
? What's in /etc/hosts?

Thanks for the response.

The strange hostname is due to Virgin. In order to use a static IP they insist on setting the hostname via dhcp.

Both hostname and hostname -f give
HTML Code:

cpc2-norw3-0-0-cust15.pete.cable.ntl.com
/etc/postfix/main.cf has
HTML Code:

myhostname = cpc2-norw3-0-0-cust15
This is /etc/hosts
HTML Code:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1              localhost.localdomain localhost
82.22.68.16            cpc2-norw3-0-0-cust15.pete.cable.ntl.com cpc2-norw3-0-0-cust15
::1            localhost6.localdomain6 localhost6


falko 9th April 2009 14:12

Please run
Code:

postconf -e 'myhostname = cpc2-norw3-0-0-cust15.pete.cable.ntl.com'
/etc/init.d/postfix restart


neilsaab 9th April 2009 18:00

Thanks Falko, worked a treat. I knew it would be something silly I'd missed.


All times are GMT +2. The time now is 20:43.

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