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 Search this Thread Display Modes
  #1 (permalink)  
Old 01-05-2010, 03:39 AM
Junior Member
 
Posts: 8
Default [SOLVED] Can't send emails through PHP

Hello.

I've recently updated Zimbra to 6.0.3 and can't actually send mails through PHP, using mail function.

I'm not sure if it worked in previous version...

I'm running it on a RHEL 4 with Plesk installed.
I've installed zimbra with different ports, and everything is running smoothly except this issue.

I've tried to change the simlink as adviced, without result...

Running phpinfo() I got "/opt/zimbra/postfix/sbin/sendmail" for sendmail_path...

Can someone help me?
Thank you
Reply With Quote
  #2 (permalink)  
Old 01-05-2010, 03:49 AM
Moderator
 
Posts: 7,928
Default

It would help if you were to provide any error messages from your logfiles ? Have you checked the Apache logs and /var/log/zimbra.log ?
__________________
Reply With Quote
  #3 (permalink)  
Old 01-05-2010, 04:48 AM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by uxbod View Post
It would help if you were to provide any error messages from your logfiles ? Have you checked the Apache logs and /var/log/zimbra.log ?

From the apache error_log I've got this:

Quote:
sendmail: fatal: setrlimit: Permission denied
sendmail: fatal: setrlimit: Permission denied
sendmail: fatal: setrlimit: Permission denied
sendmail: fatal: setrlimit: Permission denied
sendmail: fatal: setrlimit: Permission denied
sendmail: fatal: setrlimit: Permission denied

The /var/log/zimbra.log has this last lines:
Quote:
Jan 5 12:27:12 arturai imapd: Connection, ip=[127.0.0.1]
Jan 5 12:27:12 arturai imapd: 1262694432.695271 LOGOUT, ip=[127.0.0.1], rcvd=12, sent=308, maildir=/etc/rc.d/init.d
Jan 5 12:27:12 arturai imapd-ssl: 1262694432.736596 LOGOUT, ip=[127.0.0.1], rcvd=12, sent=310, maildir=/etc/rc.d/init.d
Jan 5 12:28:00 arturai zmmailboxdmgr[3521]: status requested
Jan 5 12:28:00 arturai zmmailboxdmgr[3521]: status OK
Jan 5 12:28:01 arturai zmmailboxdmgr[3553]: status requested
Jan 5 12:28:01 arturai zmmailboxdmgr[3553]: status OK
Jan 5 12:28:06 arturai zmmailboxdmgr[3899]: status requested
Jan 5 12:28:06 arturai zmmailboxdmgr[3899]: status OK
Jan 5 12:29:03 arturai postfix/anvil[18487]: statistics: max connection rate 1/60s for (smtp:79.48.16.93) at Jan 5 12:25:01
Jan 5 12:29:03 arturai postfix/anvil[18487]: statistics: max connection count 1 for (smtp:79.48.16.93) at Jan 5 12:25:01
Jan 5 12:29:03 arturai postfix/anvil[18487]: statistics: max cache size 3 at Jan 5 12:25:20
Jan 5 12:29:29 arturai zmmailboxdmgr[4954]: status requested
Jan 5 12:29:29 arturai zmmailboxdmgr[4954]: status OK
Jan 5 12:29:29 arturai zmmailboxdmgr[4986]: status requested
Jan 5 12:29:29 arturai zmmailboxdmgr[4986]: status OK
Jan 5 12:30:02 arturai zimbramon[5055]: 5055:info: 2010-01-05 12:30:02, QUEUE: 0 0
Does this helps?

Thank you for your response.
Reply With Quote
  #4 (permalink)  
Old 01-05-2010, 06:12 AM
Moderator
 
Posts: 7,928
Default

How have you configured PHP to sendmail then ?
__________________
Reply With Quote
  #5 (permalink)  
Old 01-05-2010, 07:01 AM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by uxbod View Post
How have you configured PHP to sendmail then ?
I've manage to solve it

Everything was correct, thing was related to SELinux.
It seems that SELinux is messing with postfix, só I edited the

Quote:
"/etc/selinux/config"
file with

Quote:
SELINUX= line to SELINUX=disabled
Found @ Postfix 0512: Re: fatal: setrlimit: Permission denied

Thanks uxbod anyway

Hope this helps someone too
Reply With Quote
  #6 (permalink)  
Old 01-05-2010, 07:10 AM
Moderator
 
Posts: 7,928
Default

Excellent; that is detailed in the Installation guide
__________________
Reply With Quote
  #7 (permalink)  
Old 01-05-2010, 07:20 AM
Junior Member
 
Posts: 8
Default

Quote:
Originally Posted by uxbod View Post
Excellent; that is detailed in the Installation guide
ehehe

Jumped that part :P
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.