[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Re: Re: Changing "Return-Path" in PHPmailfunction - Final posting
- Subject: Re: [cobalt-users] Re: Re: Changing "Return-Path" in PHPmailfunction - Final posting
- From: "Adrian Boismoreau" <aboismoreau@xxxxxxxxxxxxxxx>
- Date: Thu Oct 18 16:07:33 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
----- Original Message -----
From: "Marco Baurdoux" <linux@xxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, October 18, 2001 3:14 PM
Subject: Re: [cobalt-users] Re: Re: Changing "Return-Path" in
PHPmailfunction - Final posting
> le 18.10.2001 15:29, Adrian Boismoreau à aboismoreau@xxxxxxxxxxxxxxx a
> écrit :
>
> > Well, I've tried that but didn't work for me.
> >
> > Adrián E. Boismoreau
> > __________________
> > S K Y m e d i a
> > info@xxxxxxxxxxxxxxx
> > www.skymedia.com.ar
> >
> > ----- Original Message -----
> > From: "Marco Baurdoux" <linux@xxxxxxxxxxxxx>
> > To: <cobalt-users@xxxxxxxxxxxxxxx>
> > Sent: Thursday, October 18, 2001 9:18 AM
> > Subject: Re: [cobalt-users] Re: Re: Changing "Return-Path" in PHP
> > mailfunction - Help needed
> >
> >
> >> le 18.10.2001 13:38, Adrián Boismoreau à aboismoreau@xxxxxxxxxxxxxxx a
> >> écrit :
> >>
> >>> Well,
> >>> As I've tested many coding from php.net and other solutions sugested
> > here
> >>> and none of them did work for me, I did the following:
> >>>
> >>> Edited the /etc/mail/sendmail.cf. The header stuff looks like this:
> >>>
> >>> #########################
> >>> # Format of headers #
> >>> #########################
> >>>
> >>> H?P?Return-Path: <$g>
> >>> HReceived: $?sfrom $s $.$?_($?s$|from $.$_)
> >>> $.$?{auth_type}(authenticated)
> >>> $.by $?{if_name}${if_name}$|$j$. ($v/$Z)$?r with $r$. id $i$?u
> >>> for $u; $|;
> >>> $.$b
> >>> H?D?Resent-Date: $a
> >>> H?D?Date: $a
> >>> H?F?Resent-From: $?x$x <$g>$|$g$.
> >>> H?F?From: $?x$x <$g>$|$g$.
> >>> H?x?Full-Name: $x
> >>> # HPosted-Date: $a
> >>> # H?l?Received-Date: $b
> >>> H?M?Resent-Message-Id: <$t.$i@$j>
> >>> H?M?Message-Id: <$t.$i@$j>
> >>>
> >>>
> >>> I replaced the 2 first lines for this:
> >>>
> >>> H?P?Return-Path: <admin@xxxxxxxxxx>
> >>> HReceived: $?sfrom $s $.$?_(admin@xxxxxxxxxx)
> >>>
> >>> And now mail headers sent from every script using sendmail has a
return
> > path
> >>> that's not <httpd>
> >>> Hope hosts not to filter emails anymore.
> >>>
> >>> Regards,
> >>>
> >>> Adrián E. Boismoreau
> >>
> >>
> >> Nice starting point, but wouldn't it be better to set the return path
to
> > be
> >> the same as the "from" header ???
> >>
>
> OK well here's the answer to this PHP problem.
> Do not touch the sendmail config file.
> within your httpd.conf file you can add this to every virtualhost section
> php_admin_value sendmail_path " /usr/sbin/sendmail -t -i
> -fcatchall@xxxxxxxxxxxx"
>
> This will solve the return path problem for all the PHP users.
>
Well.... thank you very much my friend. That solved the Return-Path issue
for me, and didn't have to modify every script :)