Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
 
Go Back   Zimbra - Forums > Zimbra Collaboration Suite > Installation

Welcome to the Zimbra - Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-11-2007, 02:36 PM
Member
 
Posts: 13
Default Return-Path header and PHP mail()

I've got a bit of a problem on one of our web servers that also runs Zimbra as its MTA. By default, sendmail (or something buried deep within the server) adds a Return-Path header of the current user to any email sent out using the PHP mail command - for example, if Apache is running under the user apache, the return path becomes apache@yourdomain.com

Of course, this behaviour affects reply processing etc. We use to be able to override this by setting the Return-Path header explicitly in the php code:

For example:

mail("to@123.com", "Subject", "Message Text", "From: from@123.com\r\nReply-To: from@123.com");

however this no longer works, and the Reply-To header is still set to apache@yourdomain.com

Has anyone else had this problem and fixed it? The problem seems peculiar to this one server running Zimbra.
Reply With Quote
  #2 (permalink)  
Old 01-11-2007, 07:21 PM
Zimbra-Yahoo Consultant
 
Posts: 5,608
Default

Yeah.
That is the default apache mailer's address.
I would say to google changing it.
Reply With Quote
  #3 (permalink)  
Old 02-21-2007, 08:13 PM
New Member
 
Posts: 3
Default

I have a linux noob question

the wiki on installation says you have to turn off sendmail:

"You must disable Sendmail in order to run the Zimbra Collaboration Suite. Disable the Sendmail service with these commands, chkconfig sendmail off, service sendmail stop."

I'd like to have my other php apps able to send email with Zimbra running on the same server. (I haven't tried Zimbra yet, or Linux, but I have a box and want to). How would that work? Is the wiki just talking about installation? Do you restart Sendmail or can other apps use postfix?

thanks in advance for the help

Last edited by shlashdot : 02-21-2007 at 09:59 PM. Reason: unclear
Reply With Quote
  #4 (permalink)  
Old 02-21-2007, 11:16 PM
Zimbra Consultant & Moderator
 
Posts: 11,508
Default

It depends how you're using send mail at the moment. Sendmail can be run from the command line or it can be run as a daemon, the wiki is talking about sendmail running permanently as a daemon. Sendmail (and every other MTA) uses port 25 to communicate, if you have sendmail running it binds to port 25 - bad, as Zimbra (postfix) uses that port so it woon't run. So, you need to disable sendmail and stop it from starting at boot time (and any other services mentioned in the docs, wiki etc.).

If you use sendmail from the cammand line then you can continue using it that way.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 02-22-2007, 10:22 PM
New Member
 
Posts: 3
Default

Quote:
Originally Posted by phoenix View Post
It depends how you're using send mail at the moment. Sendmail can be run from the command line or it can be run as a daemon, the wiki is talking about sendmail running permanently as a daemon. Sendmail (and every other MTA) uses port 25 to communicate, if you have sendmail running it binds to port 25 - bad, as Zimbra (postfix) uses that port so it woon't run. So, you need to disable sendmail and stop it from starting at boot time (and any other services mentioned in the docs, wiki etc.).

If you use sendmail from the cammand line then you can continue using it that way.
Thanks. I'm just trying to make sure php mail() will still work on a server running Zimbra. Can I just use postfix for that, like this -

http://www.petermac.com/?p=10
Reply With Quote
Reply


Thread Tools
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0