LinuxQuestions.org
Review your favorite Linux distribution.
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 07-07-2011, 09:51 AM   #1
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Rep: Reputation: 25
Mail server issue


Hey,

I have a few servers that are used solely as webservers with postfix installed for notifications etc.

It was brought to my attention yesterday that emails were not being received by clients of the webserver. This is because the local webserver with postfix is grabbing the local domain email instead of sending it on to the external mail server. I.e a contact form going to fred@domain.com is not being delivered to their external exchange box because the webserver is trying to route the mail locally.

I figured I have two options. Rename postfix domain address. So instead of domain.com use vps1.domain.com and setup postfix accordingly. Or to setup a smtp server for them and have all the servers relay through to that.

Generally what do you guys do for webservers with separate mail services elsewhere?

Thanks,
 
Old 07-08-2011, 04:57 AM   #2
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
By default, Postfix will try to deliver for mail that matches the mydestination parameter. Since you want it to pass the mail elsewhere instead, I am pretty sure you need to configure a virtual alias to tell Postfix to send the mail to your exchange server instead. There are a few different ways to do this and what I am not sure of is whether or not you can globally specify it saying all mail goes to this domain or if you need to handle it on a per email address basis. Here is a link to the Postfix virtual readme that discuss the different options and provides some examples.
 
Old 07-08-2011, 05:25 AM   #3
Zetec
Member
 
Registered: Jul 2006
Distribution: Debian, Ubuntu, W7, openSUSE, Centos
Posts: 152

Original Poster
Rep: Reputation: 25
Hey thanks for the link. .

I ended up creating a subdomain to run postfix off. i.e web1.domain.com. This allows postfix to send mail out from the server to the correct destination.

I'll check out the virtual alias.
 
  


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
Mail server issue--Suggestion required aq_mishu Linux - Server 5 10-28-2010 11:29 AM
Mail Server Issue madfed Linux - Server 5 05-06-2009 06:08 AM
Issue forwarding mail to new server jaysin78 Linux - Networking 2 04-14-2009 07:07 PM
Issue with postfix Mail Server??? ajeetraina Linux - Server 2 11-13-2007 12:19 AM
Mail Server Issue WXMistress Linux - Newbie 4 07-09-2003 07:20 PM

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

All times are GMT -5. The time now is 07:57 PM.

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