Eric on 19 Aug 2009 13:26:41 -0700


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] postfix question


I'm looking at a Linux web server with postfix running.  It's just handling a
web application and occasionally sending out alerts via email.

Let's say that the main domain is  "maindomain.com"
The Linux server is outside the maindomain company's network and is called
web.maindomain.com.  DNS routes only requests for web.maindomain.com to this
server and all other traffic goes to their company network.

When the program (php) tries to send an email to an outside domain
(user@userhome.com) it works just fine.

When the program tries to send an email to the maindomain.com domain
(user@maindomain.com) it bounces it (apparently from/to itself?)

I think that's because the postfix server thinks it's handling mail for
*.maindomain.com.

My suggested cure is to change the line in /etc/postfix/main.cf

FROM

   mydestination = maindomain.com, localhost.org, localhost

TO

   mydestination = web.maindomain.com, localhost.org, localhost

Does that make sense or am I out in left field? (yes, those are mutually
exclusive for purposes of this question.)


Thanks,
Eric
-- 
#  Eric Lucas
#
#                "Oh, I have slipped the surly bond of earth
#                 And danced the skies on laughter-silvered wings...
#                                        -- John Gillespie Magee Jr
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug