Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 3rd November 2010, 01:58
random.guy random.guy is offline
Junior Member
 
Join Date: May 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default Postfix: how to force MX lookup for 'local' domain?

Let's say my server's hostname is site.com. I also run various web based software packages, which send out e-mail to customers. This works great. The problem is that my server also sends out e-mail to user@site.com.

The problem is that the site.com e-mail is not hosted on this server, it's actually hosted on a 3rd party e-mail server, so I am not getting these e-mails. Is there a way of forcing Postfix to use the MX records for site.com, even if this is the local name of the server? The server will not be receiving ANY e-mail, just send out.

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 3rd November 2010, 08:19
jnsc jnsc is offline
rotaredoM
 
Join Date: Mar 2006
Location: Lausanne, Switzerland
Posts: 525
Thanks: 10
Thanked 172 Times in 77 Posts
Default

There is an "External mailserver" option in ISPConfig. Don't forget to set it also for co-domains.
Reply With Quote
  #3  
Old 3rd November 2010, 12:34
random.guy random.guy is offline
Junior Member
 
Join Date: May 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Oops, I didn't realize I was in the ISPConfig2 subforum, this is about a clean postfix install on Ubuntu 10.04 LTS. Hopefully a mod can move this thread.

I am hoping I can avoid hardcoding the SMTP server, or I will run into problems when the 3rd party changes its MX records. I just want to force postfix to look up the MX records for site.com whenever e-mail is sent to site.com.

Mods: please move this thread, thanks!
Reply With Quote
  #4  
Old 3rd November 2010, 13:34
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,687
Thanks: 819
Thanked 5,318 Times in 4,171 Posts
Default

Quote:
I just want to force postfix to look up the MX records for site.com whenever e-mail is sent to site.com.
Postfix is always doing this by default. So no need to configure something. Just do not create site.com as local email domain.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 3rd November 2010, 13:45
random.guy random.guy is offline
Junior Member
 
Join Date: May 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok, finally figured it out. It looks like I had to set mydestination to nothing:
Quote:
mydestination =
Reply With Quote
  #6  
Old 3rd November 2010, 14:36
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,687
Thanks: 819
Thanked 5,318 Times in 4,171 Posts
 
Default

Mydestination has to be set to the hostname of the server, it my not be empty. Just make sure that you use a subdomain for it as it is described in the perfect setup manuals.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Tags
postfix, relay

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
How cai remove amavis from postfix ? gabrix Server Operation 16 2nd October 2012 09:58
mail authentication failure - unknown user or password evok Installation/Configuration 9 16th October 2010 06:37
postfix - virtual domain n0viki Installation/Configuration 6 2nd January 2010 17:04
421 Unexpected failure Lizard King Installation/Configuration 20 7th July 2009 20:43
Postfix issues NewMee Installation/Configuration 7 20th April 2009 18:52


All times are GMT +2. The time now is 10:49.


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