Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 01-17-2007, 10:16 AM   #1
LQ Newbie
Registered: Jun 2005
Location: Midwest
Distribution: Fedora
Posts: 20

Rep: Reputation: 0
Sendmail re-writing return path

I'm having problems sending email using PHP on a Fedora 5 server. In the default configuration there appears to be a line that causes Sendmail to re-write any return path header I set to something like..

I can override this using the -f command line option in the PHP mail function, however, I would prefer not to have to do this.

The line in the is..

H?P?Return-Path: <$g>
The explanation I found for this line, doesn't tell me how to disable the feature..

This line defines a field called Return-Path: that displays the contents of
the $g macro (sender address relative to the receiver). The ?P? portion
indicates that this line is only used if the mailer uses the P flag (the
mailer requires a Return-Path line).
Is it safe to just comment out that line? Will that allow me to set the return path as I need it? The spam filters on various servers that we work with, have to resolve this address and I would like to be able to set within the code on a per/project basis on this machine.
Old 02-01-2007, 10:59 AM   #2
Registered: Feb 2005
Distribution: RHEL, CentOS
Posts: 113

Rep: Reputation: 16
Use -f -- that is what it is there for. Changing the sendmail configuration will break other things.


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
Postfix: why is 'Return-Path' of bounce message empty Chowroc Linux - Networking 1 12-28-2005 03:52 AM
Why usb_bulk_write return -16 on writing to PIC njel Programming 0 07-20-2004 06:03 AM
Configuring sendmail to return Vacation Messages jasonX Linux - Software 2 02-16-2004 11:32 AM
php mail script return path richard22 Linux - Software 1 08-22-2003 04:10 AM
Sendmail return path dj_relentless Linux - General 2 06-07-2002 06:40 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:38 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration