LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-23-2010, 09:58 AM   #1
katru
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Postfix relayhost not working, if domain hosted on same server, but MX points outside


sorry people can anyone help me. i compiled and install postfix, and i using relayhost that point to my ISP. but my "DNS server" is on the same server where is installed postfix. and there is running apache with vhosts so i have domain that hosted on same server and in zonefiles of my domain my MX records points to Google Apps, to google's MX servers. But when i try send E-mail via sendmail to mail@mydomainonsameserver.com it not deliver mail to Google Apps totally, if i try to send to another E-mail everything fine it deliver it. so finally i done research this problem in Internet. And find that need to disable deliver mail to localhost(localdelivery). as i think postfix understand that the domain point to the same server where postfix have itself. and try to deliver mail local. but zonefile MX record even the domain on same server can point to another server outside. So i disabled localdelivery in postfix. and problem not fixed. Do anyone have eny ideas?
 
Old 06-23-2010, 04:49 PM   #2
katru
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
ok i will ask the next question by this topic, how to tell to postfix that virual_domains must deliver through relayhost and not with local_delivery?
 
Old 06-23-2010, 06:25 PM   #3
katru
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Original Poster
Rep: Reputation: 0
i found the problem
in my main.cf

wasn't present
transport_maps = hash:/etc/postfix/transport

in that file for each domain i must edit relay like this:
mydomain smtp:[relay.host]

thanks to this forum. the answer i found here but in other problem of postfix.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
postfix - relayhost configuration problem kalinic Ubuntu 20 03-02-2009 03:36 AM
Sendmail - route mail off server for hosted domain SystemOverload Linux - Server 4 07-21-2008 10:32 PM
I cannot ping hosted domain (site) at server Peon1 Linux - Newbie 4 10-06-2007 04:39 AM
I cannot ping hosted domain (site) at server Peon1 Linux - Networking 3 10-05-2007 09:21 PM
postfix relayhost gabsik Linux - Networking 1 02-08-2007 02:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration