Fedora Linux Support Community & Resources Center
Old 17th November 2005, 09:03 AM
niloshima Offline
Registered User
Join Date: Jun 2004
Posts: 41
How to change apache email address apache@localhost to admin@proporta.lk


In my LAN I am running apache and sendmail.
I use some php scripts to send mails.

I can send mail to hotmail yahoo etc

But when I send mail to some other domains my mails get reject saying sender verify fails.

Because when i send mail using php it use apache@localhost as sender address

How do I change this apache mail address. i mean apache@localhost to admin@proporta.lk some thing like that.

this is my mail headers

Received: from linux.proporta.lk ([]) by mc6-f39.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Nov 2005 00:01:06 -0800
Received: from linux (localhost [] (may be forged))by linux.proporta.lk (8.13.4/8.13.4) with ESMTP id jAH8993x019489for <rasika_prasad@hotmail.com>; Thu, 17 Nov 2005 14:09:09 +0600
Received: (from apache@localhost)by linux (8.13.4/8.13.4/Submit) id jAH899fV019488;Thu, 17 Nov 2005 14:09:09 +0600
X-Message-Info: JGTYoYF78jGXnAEvgnDkdL8IM6qE4g3K0xii65MX/pQ=
X-Mailer: PHPMailer [version 1.73]
Return-Path: apache@proporta.lk
X-OriginalArrivalTime: 17 Nov 2005 08:01:06.0990 (UTC) FILETIME=[10639CE0:01C5EB4D]

Reply With Quote
Old 17th November 2005, 11:59 AM
giulix's Avatar
giulix Offline
Join Date: Oct 2005
Location: CE(S)T
Posts: 3,242
Have you tried to change the ServerAdmin directive in /etc/httpd/conf/httpd.conf ?
Asus K55VD, i5 3230M - Productivity/Programming (F24)
Asus M32CD - i7-6700, Asus STRIX-GTX970-DC2OC-4GD, 1x8 GB Sk Hynix 2133 MHz DDR4 - Gaming (W10)
HP Proliant DL 360 G5 - Heavy lifting (CentOS 7.2)
Reply With Quote
Old 17th November 2005, 12:36 PM
Balthazor Offline
Registered User
Join Date: May 2004
Posts: 46
As giulix posted already change the ServerAdmin directive, but you should define this in your php scripts.
when you run this script on another server, then it will send emails with notyou@notyourdomain.com
Have a look at the docu php mail funtions
Reply With Quote

address, admin@proportalk, apache, apache@localhost, change, email

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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
apache localhost works but not the ip? Beagleboy Servers & Networking 5 30th March 2009 12:19 PM
Apache & SSL - localhost.localdomain? savage Servers & Networking 10 13th December 2005 09:04 PM
apache@localhost.com pannet1 Servers & Networking 4 9th November 2005 11:46 PM

Current GMT-time: 09:54 (Monday, 25-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat