#1  
Old 14th September 2006, 05:32
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default Mail routing issue

Hi,

I have am hosting a domain and website for example.com on my ISPconfig server. However primary mail for the domain is being done on another server. DNS records are correct and it works sometimes.

What is happening is that an entry is being created in /etc/postfix/local-host-names for example.com and this is causing issues when mail is relayed through the server. Mail arrives and b/c the destination domain is the same as the domain in local hostnames it is not forwarding it on to the correct mailserver but instead trying to deliver it locally. Of course it cant as the user does not exist and hence it bounces, see below

The following addresses had permanent fatal errors ----- punto@example.com
(reason: 550 <punto@example.com>: Recipient address rejected: User unknown in local recipient table)


As soon as I remove the entry in /etc/postfix/local-host-names it routes the mail correctly and it is delivered to the correct domain. However the entry re-appears again if I change/add any DNS records or of its own accord (maybe when I restart postfix).
I have tried deleting and hashing out the domain from /etc/postfix/local-host-names but it still comes back and mail fails once again.

Any ideas would be appreciated

Matt
Reply With Quote
Sponsored Links
  #2  
Old 14th September 2006, 08:54
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,075
Thanks: 826
Thanked 5,396 Times in 4,240 Posts
Default

Set the website and all co-domains of thei swebsite to external mailserver in ISPConfig.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 15th September 2006, 01:38
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Hi Till,

Thanks for the suggestion. I already have the primary mx for the domain set to another mail server, mx query below:

> set q=mx
> example.com
Server: ##########
Address: 192.168.10.1

Non-authoritative answer:
berginct.com MX preference = 10, mail exchanger = anothermailserver
berginct.com MX preference = 20, mail exchanger = example.com

berginct.com nameserver = ns.anotherserver
berginct.com nameserver = ns1.example.com
anothermailserver internet address = 150.101.166.217
example.com internet address = 203.89.212.186



As you can see the primary mx is another mail server, but my ISP config server is acting as a secondary, so it should be forwarding mail to the primary when it relays it, but when there is an entry for example.com in the local-host-names it doesnt?? Any other ideas?

Cheers

Matt
Reply With Quote
  #4  
Old 15th September 2006, 02:15
pablito pablito is offline
Junior Member
 
Join Date: Jan 2006
Location: Great White North, eh
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The config for the domain in ISPconfig has an option for "External Server". That is what is overwriting your manual config. Set that to external server and it will then obey the MX rules you have.
Reply With Quote
  #5  
Old 15th September 2006, 02:27
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Thankyou for the advice, will give that a try

Regards

Matt
Reply With Quote
  #6  
Old 15th September 2006, 08:53
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
Default

Pablito,

I set the config for the domain to external server, but it still tries to deliver mail locally, when there is an entry in the local-host-names. I have to edit the file and remove the domain before mail can be sent to that domain.

The following addresses had permanent fatal errors ----- user@example.com
(reason: 550 <user@example.com>: Recipient address rejected: User unknown in local recipient table)


It is not looking at the MX records correctly and forwarding the email to the correct mail server?? So frustrating
Reply With Quote
  #7  
Old 15th September 2006, 09:42
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Go to the "Options" tab and set the domain to "External Mailserver", then go to "Co-Domains", choose the appropriate Co-Domain, go to the "Options" tab and set that Co-Domain to "External Mailserver" as well.
__________________
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
  #8  
Old 15th September 2006, 09:46
punto punto is offline
Member
 
Join Date: Jul 2006
Posts: 84
Thanks: 12
Thanked 2 Times in 1 Post
 
Default

Quote:
Originally Posted by falko
Go to the "Options" tab and set the domain to "External Mailserver", then go to "Co-Domains", choose the appropriate Co-Domain, go to the "Options" tab and set that Co-Domain to "External Mailserver" as well.
Thanks Falko you are a champ, didnt realise I needed to set it in two places.

Much appreciated

Regards

Matt
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
Not receiving any incoming mail. Jcorrea920 General 11 3rd April 2010 13:08
Filtering emails using Spamassassin and Clamav for Exchange 2000 Server Rocky Server Operation 19 11th March 2008 08:27
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 mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47


All times are GMT +2. The time now is 12:47.


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