LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-14-2004, 11:06 AM   #1
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Rep: Reputation: 15
Emails sent out have no sender


I have noticed that some of my emails that are being sent out have no sender. I know this is again RFC policy so I am trying to fix it but I don't know where to start looking. I have programs that I wrote in php that automatically send out email. Are my programs not entering in the sender or is that something that sendmail is configured to do. Am I suppose to have something configured in the sendmail.mc file that I don't have possibly.

Here is an example email:

From MAILER-DAEMON@<mydomain>.com Mon Jun 14 08:39:17 2004
Date: Mon, 14 Jun 2004 08:39:17 -0600
From: Mail Delivery Subsystem <MAILER-DAEMON@<mydomain>.com>
To: postmaster@<mydomain>.com
MIME-Version: 1.0
Content-Type: multipart/report; report-type=delivery-status;
boundary="i5EEdH830859.1087223957/<mydomain>.com"
Subject: Postmaster notify: see transcript for details
Auto-Submitted: auto-generated (postmaster-notification)

This is a MIME-encapsulated message

--i5EEdH830859.1087223957/<mydomain>.com

The original message was received at Mon, 14 Jun 2004 08:39:16 -0600
from apache@localhost
with id i5EEdG930856

----- The following addresses had permanent fatal errors -----
mrsathya@india.com
(reason: 550 <>: No thank you rejected: Account Unavailable, Possible Forgery)

----- Transcript of session follows -----
... while talking to india-com.mr.outblaze.com.:
>>> RCPT To:<cathyg@india.com>
<<< 550 <>: No thank you rejected: Account Unavailable, Possible Forgery
550 5.1.1 mrsathya@india.com... User unknown
550 5.1.1 @... User unknown

--i5EEdH830859.1087223957/<mydomain>.com
Content-Type: message/delivery-status

Reporting-MTA: dns; <mydomain>.com
Arrival-Date: Mon, 14 Jun 2004 08:39:16 -0600

Final-Recipient: RFC822; cathyg@india.com
Action: failed
Status: 5.1.1
Remote-MTA: DNS; india-com.mr.outblaze.com
Diagnostic-Code: SMTP; 550 <>: No thank you rejected: Account Unavailable, Possible Forgery
Last-Attempt-Date: Mon, 14 Jun 2004 08:39:17 -0600

Last edited by linuxboy69; 06-14-2004 at 11:07 AM.
 
Old 06-14-2004, 05:45 PM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
Quote:
Are my programs not entering in the sender
Well, you should know if you wrote the scripts.

Using php's mail() function you can specify the sender, so it gets put in the headers:
Code:
mail("someone@foo.com","Hello there", "hello",
	"From: me@myaddress.com\r\nReply-to: me@myaddress.com");
Of course if you are scripting it, it will look more like:
Code:
$mail_to = "someone@foo.com";
$subject = "Hello there";
$message = "hello";
$mail_from = "From: me@myaddress.com\r\nReply-to: me@myaddress.com";
mail($mail_to,$subject,$message,$mail_from);
HTH
 
Old 06-21-2004, 11:28 AM   #3
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
Quote:
Well, you should know if you wrote the scripts
It is not that easy because I deal with dynamic data so I am trying to determine whether my email program is putting in @ as the sender address or sendmail is doing that for some reason. I believe that it is my php scripts on the web server cause I get messages such as:

Authentication-Warning: <server>: apache set sender to @ using -f

I am using the functions that was mentioned in the previous post. I am so confused, why is it doing this? I have scripts that run in 20 different places and they seem to be setting the sender to @ yet when I test each of my scripts, they work perfectly. Can anyone help me out?
 
Old 06-22-2004, 09:26 AM   #4
linuxboy69
Member
 
Registered: Oct 2003
Distribution: Redhat 9
Posts: 138

Original Poster
Rep: Reputation: 15
I figured out what the problem was. We were using the mime class that comes with pear and it has troubles getting the sender address if you put a domain name with the tld in the "From_Name" such as From Name = mydomain.com staff.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
convert html emails to plain text emails andredude Linux - General 6 03-20-2005 12:33 PM
sendmail to fake sender? wizardmax Linux - Newbie 1 09-23-2004 03:18 PM
Sender domain must exist? J_Szucs Linux - Software 5 09-10-2003 11:38 PM
smail - how to adjust sender lea Linux - General 0 12-11-2002 02:33 AM
Sender domain must exist. royb Linux - Newbie 15 01-19-2002 11:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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