#1  
Old 13th January 2007, 16:37
yohon yohon is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mail Issue - Server name issues

I am having issues changing my hostname/domain so it is a DNS name that other mail servers can resolve as messages are being bounced.

Background - E-mail does work if I send to the domains hosted. As well, e-mail can be replied to in round cube webmail just fine. I am using a PHP script on a domain and this is where the problem is occurring. I am trying to send a confirmation to the user that has filled out the form. This is ISPConifg on a Fedora Core 6 Box.

I know that this is a hostname issue and that is should be an actual domain name appended onto the hostname but right now it is firestorm.localdomain

hostname -f
firestorm.localdomain

cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.1.250.5 firestorm.localdomain firestorm

[root@firestorm postfix]# cat local-host-names
###################################
#
# ISPConfig local-host-names Configuration File
# Version 1.0
#
###################################
localhost
firestorm.localdomain
localhost.firestorm.compassit.ca
localhost.compassit.ca
localhost.localdomain
www.compassit.ca
compassit.ca
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

If I change the hostname to firestorm.compassit.ca (which is my actual local domain) in etc/hosts and in /etc/postfix/local-host-names then my e-mail doesn't work at all. It says that the type A record could not be found.

Ok, so here is the mail error before I make the changes to the hostname
Jan 13 08:13:26 firestorm postfix/smtp[20274]: D784DB016F: to=<rschuet@telus.net>, relay=mx.svc.telus.net[199.185.220.200]:25, delay=0.45, delays=0.11/0.02/0.22/0.1, dsn=4.0.0, status=deferred (host mx.svc.telus.net[199.185.220.200] said: 450 <apache@firestorm.localdomain>: Sender address rejected: Domain not found (in reply to RCPT TO command))


And here is the error once I change the hostname around to firestorm.compassit.ca and restart postfix:
Jan 13 08:31:38 firestorm postfix/smtp[20693]: 7EE4AB0170: to=<root@firestorm.localdomain>, orig_to=<apache@firestorm.compassit.ca>, relay=none, delay=0.05, delays=0.01/0/0.04/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=firestorm.localdomain type=A: Host not found)

It seems that something is still looking for firestorm.localdomain but I am not sure where or what other files to configure. (The mail can now be delivered to the ISP's mail system but internal e-mail going to the domain no longer works - same error as above)

Am I missing some other settings for this or is my thinking off?

Thanks in advance
Reply With Quote
Sponsored Links
  #2  
Old 13th January 2007, 19:15
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
Default

1) Undo the changes you made in /etc/hosts. There must be a line:

Quote:
127.0.0.1 localhost.localdomain localhost
To solve the isuue, run these commands:

Quote:
echo server1.example.com > /etc/hostname
/bin/hostname -F /etc/hostname
replace server1.example.com with your full hostname in the above commands.

Then edit the file /etc/hosts and append the your full domainname to the line:

10.1.250.5 firestorm.localdomain firestorm

Then edit postfix main.cf and replace localhost.localdomain with your full hostname. Then restart postfix.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 13th January 2007, 22:01
yohon yohon is offline
Junior Member
 
Join Date: Dec 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for the info Till, however, after making the changes you suggested I know get a different error. This is when sending an e-mail outside of the server into a hosted domain.

Jan 13 13:57:43 firestorm postfix/smtp[25808]: E1B25B0174: to=<rschuett@firestorm.compassit.ca>, orig_to=<rschuett@compassit.ca>, relay=none, delay=0.24, delays=0.16/0/0.08/0, dsn=5.4.6, status=bounced (mail for firestorm.compassit.ca loops back to myself)

As well Till, I did not have a localhost.localdomain in the postfix main.cf file (output below - nothing shows up for localhost.localdomain)

[root@firestorm postfix]# cat main.cf | grep localhost
#inet_interfaces = $myhostname, localhost
# The default is $myhostname + localhost.$mydomain. On a mail domain
#mydestination = $myhostname, localhost.$mydomain, localhost
##mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
##mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,


Any thoughts now?

Thanks,

Last edited by yohon; 13th January 2007 at 22:04.
Reply With Quote
  #4  
Old 13th January 2007, 22:25
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,381
Thanks: 833
Thanked 5,482 Times in 4,316 Posts
 
Default

Please add:

firestorm.compassit.ca

at the end of the file

/etc/postfix/local-host-names

and restart postfix.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

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
php Apps email not going through palkat General 8 21st September 2011 05:35
Statistic not working mzo Installation/Configuration 49 20th April 2011 12:19
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 04:50.


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