use php mail function to send email is now sent by user@server-hostname

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
I'm hoping this may solve the problem some users report with email generated on the server going to hotmail/gmail/yahoo/etc spamboxes.

Jeff
 

Dennis

Verified User
Joined
Nov 13, 2004
Messages
123
Location
The Netherlands
Hi Jeff,

tested it.....but that does not work. Only when you already have added the emailaddress to the secure list. Hotmail sees everything as possible spam even when I send a mail through my Outlook program.

Do not know if Gmail has the same policy, but what I do know now is that the sender is a nice normal emailaddress without the "On behalf of" and hostname of the server.

Regards,

Dennis
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
I don't see how hotmail could tell if you'd added the asterisk vs adding the individual email address, as exim will send the email with the same headers either way.

Jeff
 

Dennis

Verified User
Joined
Nov 13, 2004
Messages
123
Location
The Netherlands
I think Hotmail got a security setting with something like: "Always see new mail senders as spam" :)

Because I also got mail from other businesses in my Hotmail which are in the spambox...

With sending through my Outlook I meant that I send through my providers smtp server (sorry should have told that). So it's not going through my own exim server. And still it ends up in the spambox.

Regards,

Dennis
 

elbarto

Verified User
Joined
Oct 8, 2008
Messages
134
Hi, I'm bringing this thread back to life. What happened with this?
I have a client with a reseller account who doesn't want the emails that his clients send from their websites to go out with my hostname.
How should I set this up?
I tried doing this but it didn't work.
I'm running PHP with suPHP.
Thanks
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
The problem with bringing an ancient thread back to life is that none of us have any recollection of the thread; we have to start reading again with the first post to see just what it is to which you refer.

Are you in fact writing about the sender being user@hostname.example.com, or are writing about the hostname defined in the various From fields in the header? Either way, fixes have been discussed several times on these forums.

If the former, then how are your users sending email? Are they using direct injection (what some call the sendmail interface), or are they using authenticated login? Have they properly coded the php they're using to send the mail?

Jeff
 

elbarto

Verified User
Joined
Oct 8, 2008
Messages
134
The problem with bringing an ancient thread back to life is that none of us have any recollection of the thread; we have to start reading again with the first post to see just what it is to which you refer.
Sorry for this! I've been doing some other tests, so let me explain what I need.

I'm running PHP with suPHP. Currently if I send an email using PHP's mail() function, the default From address and the return-path are user@myhostname. So, when I call the function with the mininum parameters like this:

PHP:
mail('some@email.com', 'Test', 'Testing');
both the "From" and "Return-path" headers are set to user@myhostname. The thing is that "myhostname", includes my Web Hosting company's domain name.

This hasn't been a problem so far, but now I have a reseller client who wishes to implement private branding and is complaining about this, because when his own clients in their websites use PHP's mail() function, emails are sent with my company's domain name.

So what I would like to be able to do is to have all my client's users to have as the default "From"/"Return-path", something like user@their-domain.com.

Is this possible? If it is, how?

Thanks!
 

nobaloney

NoBaloney Internet Svcs - In Memoriam †
Joined
Jun 16, 2003
Messages
26,119
Location
California
I'm not a PHP programmer so I don't know the details of the command; perhaps someone who is will reply as well. I do know it's been discussed on these forums before.

But what I do see is that your command, as shown in your prior post doesn't tell PHP who the sender is. So unless PHP is getting that somewhere else, it wouldn't know to tell exim anything. I'm not going to discuss PHP commands and interfaces here; first because I'm not a php programmer so I'd feel I was missing something, and second because this is a SpamBlocker subforum, and this isn't really a SpamBlocker issue; it's an exim/php issue. Perhaps if you posted it under a PHP subforum someone would see it and reply. Once you've posted it there, let me know here, and I'll delete the posts in this subforum.

Thanks.

Jeff
 
Top