Products Downloads Prices Support Company
Search Manual
[SurgeMail List] Re: redirects not happening on local mail - Wed, 04 Nov 2009 10:14:54 +1300
Product Links
Download Now!
Email Support
Support Newsgroup
Prices
Customers
Manual
Activation Keys
   


surgemail-list@netwinsite.com wrote:
> I tried using the "mailfrom" header and the problem persists.   The relevant
> lines of the (PHP) script are:
> 
> $from = "From: admin@iliffe.ca\r\nReply-To:  admin@iliffe.ca\r\nMailfrom: admin@iliffe.ca\r\n";
>   *****
> $send = mail($admin_email, $m_subject, $adm_msg, $from);
> 
> When the script is executed by "root" the "Return-path:" header is 
> "Return-path: root@iliffe.ca", with the headers "From:", "Reply-to:" and 
> "Mailfrom:" as shown in the body of the script.
> 
> I checked RFC2822 and while there is a "mailto:" header, no "mailfrom" header is 
> defined. 
> 
> From the context of the reply I think I am not interpreting your comment correctly. Sorry.


Hi, the -mailfrom qualifier is a command line option for the 'sendmail' binary 
not a header.  When you use the 'mail' function in php it spawns 'sendmail' with 
  various command line options and you can add extra command line options with 
the additional parameter to the command... e.g.


$send = mail($admin_email, $m_subject, $adm_msg, $from,"-mailfrom admin@iliffe.ca");

That should set the 'from envelope' as desired.

	ChrisP.


> 
> John
> ==================
> Group: netwin.surgemail
> Subject: [SurgeMail List] Re: Invalid Return-Path on outgoing mail
> Date: Tue, 05 May 2009 12:13:29 +1200
> 
> surgemail-list@netwinsite.com wrote:
>> I am using the Linux version of Surgemail to handle automated outgoing notifications from my servers.  
>>
>> The "From:" and "Reply-To:" headers are set by the programme and are sent correctly.  The "Return-Path:" header is supplied by Surgemail so far as I can see and is set to the owner of the process that originates the e-mail (by connecting to port 127.0.0.1:25 and sending it/ PHP 'mail' command).  
>>
>> I get Return-Paths like "apache@iliffe.ca" and "12345@iliffe.ca" (where 12345 is the spawned child process number).  None of these are valid mailboxes and so bounces are not received.  Some remote mail servers don't accept these as valid senders either.
>>
>> Which parameter do I have set wrong?
>>
>> Regards,
>>
>> John
>>
>>   
> If possible make your script use the
>     -mailfrom bob@domain.name
> qualifier
> 
> 


Last Next

       

Simple index of items from the news group

Netwin -- Email Server Software SurgeMail -- Mail Server Software, SMTP, POP, IMAP
SurgeWeb -- Web Mail Client DBabble -- Chat Server, Instant Messaging SurgeFTP -- Ftp Server Software