Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 19/20 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 17th November 2005, 08:03 AM
niloshima Offline
Registered User
 
Join Date: Jun 2004
Posts: 41
How to change apache email address apache@localhost to admin@proporta.lk

Hi,

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 ([220.247.229.137]) by mc6-f39.hotmail.com with Microsoft SMTPSVC(6.0.3790.211); Thu, 17 Nov 2005 00:01:06 -0800
Received: from linux (localhost [127.0.0.1] (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]




Rgds
Prasad
Reply With Quote
  #2  
Old 17th November 2005, 10:59 AM
giulix Offline
"Fixed" by (vague) request
 
Join Date: Oct 2005
Location: GMT+ 1
Posts: 2,950
Have you tried to change the ServerAdmin directive in /etc/httpd/conf/httpd.conf ?
Reply With Quote
  #3  
Old 17th November 2005, 11:36 AM
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
http://at2.php.net/manual/en/ref.mail.php
http://at2.php.net/manual/en/function.mail.php
Reply With Quote
Reply

Tags
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 08:04 PM
apache@localhost.com pannet1 Servers & Networking 4 9th November 2005 10:46 PM


Current GMT-time: 19:21 (Friday, 31-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Bayonne - Benidorm - Champlin Travel Photos on Instagram