Welcome, Guest
Please Login or Register.
Lost Password?
Return-Path header in php emails (1 viewing)
Post Reply

TOPIC: Return-Path header in php emails

#3391
sciallo (User)
Posts: 16
graphgraph
Return-Path header in php emails 2006/12/12 10:28  
I have a debian box with virtualmin-pro apache2 php4, I've been scratching my head on this for a while and can't figure it out. When I use a php form to send email the server automatically sets the Return-Path header to www-data@localhost.localdomain. That is technically correct, username at domain, since it's a script on the same server the domain is localhost.localdomain. But some servers will reject that wanting a real domain.

I googled it and tried the following:
- Added the Return-Path header to the php script, that got ignored, it still used Return-Path: www-data@localhost.localdomain (Also it wouldn't be my first choice of fix since I would have to get into every form and 'email sending' php script on the server)

- Set a 'ServerAdmin default@validdomain.com' entry in /etc/apache2/apache2.conf - Again that did nothing.

- I tried the same within the virtualserver in the host config file. - No go

- Set 'sendmail_from = default@validdomain.com' in /etc/php4/apache2/php.ini - Nothing still

Where do I look next?

TIA
Rick
  The administrator has disabled public write access.
Post Reply
get the latest posts directly to your desktop

Talk and Get Help

Support
Forums
Bugs and Issues

Get Virtualmin

OS Support
Buy Online
Download
Copyright 2005-2007 Virtualmin, Inc. All rights reserved.