LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-17-2007, 10:16 AM   #1
hammer65
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..

Code:
apache@theservernameanddomain.com
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 sendmail.cf is..

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

Quote:
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
mackdav
Member
 
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.
 
  


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
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

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

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