Eric on 19 Aug 2009 16:03:01 -0700

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

Re: [PLUG] postfix question

Thanks Casey... ha!  I'm not burning... yet :-)

The change worked exactly as described... it now wants to send the email to the
outside .  The script that runs the php code runs as root so the FROM of the
email is

Now I get bounces for this:

Domain of sender address <> does not exist (in reply to MAIL
FROM command)

OOPS:  Stumbled upon another issue that may contribute to this...

cat /etc/hostname

cat /etc/hosts maindomain localhost localhost.localdomain

Looks like I've got some configurin' to do.  Here's hoping I don't break Apache
in the process.


Casey Bralla wrote:
> I think your analysis is exactly correct.
> Go ahead and make the change, then force a few eMails.  It will either work 
> brilliantly, or you stupid idea will make you burn with embarrassment <grin>.
> On Wednesday August 19, 2009 4:25:58 pm Eric wrote:
>> 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  ""
>> The Linux server is outside the maindomain company's network and is called
>>  DNS routes only requests for 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
>> ( it works just fine.
>> When the program tries to send an email to the domain
>> ( it bounces it (apparently from/to itself?)
>> I think that's because the postfix server thinks it's handling mail for
>> *
>> My suggested cure is to change the line in /etc/postfix/
>>    mydestination =,, localhost
>> TO
>>    mydestination =,, 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         --
Announcements -
General Discussion  --