PDA

View Full Version : Email Issues


neilsaab
7th April 2009, 13:13
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.

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

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, 13:36
Do you use cpc2-norw3-0-0-cust15.localdomain in /etc/postfix/main.cf? What are the outputs of hostname and hostname -f? What's in /etc/hosts?

neilsaab
8th April 2009, 16:59
Do you use cpc2-norw3-0-0-cust15.localdomain in /etc/postfix/main.cf? What are the outputs of hostname and 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 cpc2-norw3-0-0-cust15.pete.cable.ntl.com

/etc/postfix/main.cf has
myhostname = cpc2-norw3-0-0-cust15

This is /etc/hosts
# 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, 15:12
Please run
postconf -e 'myhostname = cpc2-norw3-0-0-cust15.pete.cable.ntl.com'
/etc/init.d/postfix restart

neilsaab
9th April 2009, 19:00
Thanks Falko, worked a treat. I knew it would be something silly I'd missed.