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

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 03-27-2007, 04:40 AM
Junior Member
 
Posts: 8
Default Logwatch stops sending mail?

Hi!

This is a CentOS 4 based install, with the Zimbra Commmunity edition, version 4.5.1. Zimbra is running fine, managing domains, and its great stuff.

What I have noticed is that since installing Zimbra, logwatch stops sending mail to the root user. The Zimbra daily mail reports are making it fine, however

Logwatch is set to use /bin/mail and from what I can tell, /bin/mail isn't exactly working (since postfix/sendmail is disabled on the system in favour of having all mail handled by Zimrbra's postfix).

Should I set logwatch to use something rather than /bin/mail?

From what I can tell, this thread might be related: http://www.zimbra.com/forums/administrators/7615-unable-send-mail-using-usr-bin-mail.html#post40424

As will this thread: http://www.zimbra.com/forums/archive...php/t-180.html however that test of sending mail within the zimbra user, fails for me

Any help to getting logwatch working again, would rock? Its true, /bin/mail is not writing to zimbra's queue. Running mailq as the zimbra user shows no mail, but running mailq as root, I see "postqueue: warning: Mail system is down -- accessing queue directly" and there's a good 100+ messages waiting to be delivered (mainly logwatch, i presume)

Sendmail is not installed, postfix is postfix-2.2.10-1.RHEL4.2.mysql_pgsql.c4 but disabled (in favor of the zimbra version)

Any help will be greatly appreciated. Thanks
__________________
Colin Charles, http://www.bytebot.net/blog/
Reply With Quote
  #2 (permalink)  
Old 03-28-2007, 07:17 AM
Starter Member
 
Posts: 1
Default

What I did to get this working was to install the CentOS version of Postfix but leave it disabled in the startup scripts.

Ran "alternatives --config mta" to set sendmail.postfix as the default MTA for the system. I then configured postfix to use Zimbra's postfix spool directory as it's own spool (/etc/postfix/main.cf):

queue_directory = /opt/zimbra/postfix-2.2.9/spool


Result - the mail command (aliased to sendmail, which in turn uses sendmail.postfix) now drops mail in Zimbra's postfix queue, allowing it to be delivered.
Reply With Quote
  #3 (permalink)  
Old 03-28-2007, 07:37 AM
Junior Member
 
Posts: 8
Default

Thanks! Thats exactly what needed to be done.
__________________
Colin Charles, http://www.bytebot.net/blog/
Reply With Quote
  #4 (permalink)  
Old 12-11-2007, 03:41 PM
Active Member
 
Posts: 35
Thumbs up

I solved this by linking to quene folder
first I did is rename folder
Code:
mv /var/spool/postfix/ /var/spool/postfix_bck
then I sym. link to zimbra postfix
Code:
ln -s /opt/zimbra/postfix/spool/ /var/spool/postfix/
I had problems running SuSE default postfix and Zimbra postfix,
so I shutdown Suse postfix and remove all sym links in /etc/init.d/rc.xy folders
witch points to /etc/init.d/postfix
Now I can send email from console or script in case of errors...
like
Code:
echo "test"|mail -s ERROR my.mail@server.net
Reply With Quote
  #5 (permalink)  
Old 12-18-2010, 08:57 AM
New Member
 
Posts: 3
Default Simpler solution

A much simpler solution for me was to simply softlink the zimbra sendmail program to /usr/sbin. I didn't need to install any additional mailers or packages:

sudo ln -s /opt/zimbra/postfix-2.6.7.2z/sbin/sendmail /usr/sbin/sendmail
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.