LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-09-2005, 02:41 AM   #1
kimashi
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Rep: Reputation: 0
Sendmail


currently send mail is set up so if it bounces it trys to return it to apache@localhost.localdomain. i would like that to be my e-mail address that it is being 'sent' from so i will be notified of all bounced e-mails.

Thanks
Kimashi
 
Old 09-09-2005, 09:37 AM   #2
thehungrypenguin
LQ Newbie
 
Registered: Sep 2005
Distribution: Suse 9.2 64-bit
Posts: 5

Rep: Reputation: 2
Hi,

Could we have bit more detail please... It sounds to me as if you are trying to send the email via PHP or a webmail account. Normally a mail server doesn't have place to send bounced mail other than the sender of the original email. There is the concept of a dead letter which is a returned email (bounced) which couldn't be sent back to the originator. Do you mean that?

So the question is how are you sending the email? When I know that, we will know why is it set to apache@localhost.local.

In passing apache and sendmail have nothing to do with each other so I doubt sendmail is "set up so if it bounces it trys to return it to apache@localhost.localdomain."

Thanks,

THP
 
Old 09-09-2005, 02:17 PM   #3
kimashi
LQ Newbie
 
Registered: Sep 2005
Posts: 2

Original Poster
Rep: Reputation: 0
that is correct i am trying to send mail thought a php script to people. it works just fine, and has a from of my e-mail i want. but if the mail bounces, like the e-mail no long exsists or was typed in wrong, i want it to go to the same 'from' address
 
Old 09-12-2005, 03:04 AM   #4
thehungrypenguin
LQ Newbie
 
Registered: Sep 2005
Distribution: Suse 9.2 64-bit
Posts: 5

Rep: Reputation: 2
Hi,

OK, so the problem is that using the PHP mail function and sendmail you can set the From: address in the contents of the email message but you can't on the envelope. The web server becomes the sender of the email which is why the MAIL FROM: in the envelope is being set to apache.

So I see two choices:

1) Don't use the built-in PHP mail functions in the script but rather use something like PHPMailer which is full featured email transfer class for PHP.
http://phpmailer.sourceforge.net/

2) Configure your machine correctly to have the right domain name (not localhost.local) and then forward all emails from the apache account to yourself using the .forward file.

I hope that helps,

THP
 
  


Reply



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
Sendmail ignores my sendmail smarthost entry Paul_assheton Linux - General 1 03-17-2009 07:55 AM
FC4 and Sendmail - Cannot create sendmail.pem Balderayne Linux - Security 2 11-09-2005 02:55 PM
php+ sendmail no good - python + sendmail ok nephish Linux - Networking 1 10-07-2005 01:19 PM
Sendmail - RunAsUser=sendmail:mail/What files to i have to change ForumKid Linux - Security 45 01-18-2002 11:47 AM
sendmail (dont just ignore it 'cause its got sendmail in the subject :P) GnomeKing Linux - Networking 1 11-12-2001 09:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:46 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