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 01-09-2010, 10:54 AM
Junior Member
 
Posts: 9
Default How to handle mails for local Linux accounts?

Hi All,

I'm running Zimbra 6.03 SLES 11 on a OpenSUSE 11.2 for a couple of months now. And I've just noticed that I have a mail queue (I assume for postfix) for local account 'zimbra':

postqueue: warning: Mail system is down -- accessing queue directly
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
84DB39F4A 389 Sat Dec 12 22:30:01 zimbra
zimbra
342939F5B 389 Thu Dec 10 22:30:02 zimbra
zimbra
DD143A39A 389 Wed Dec 23 22:30:01 zimbra
zimbra
6C334A3E5 389 Thu Jan 7 22:30:01 zimbra
zimbra
60E169E0B 394 Tue Dec 1 16:44:01 zimbra
zimbra
D6DB4A39B 389 Fri Dec 25 22:30:01 zimbra
zimbra
61ED3A361 389 Fri Jan 1 22:30:01 zimbra
zimbra
DC7E9A445 389 Wed Dec 30 22:30:01 zimbra
zimbra
CA2C09C8C 389 Thu Dec 3 22:30:01 zimbra
zimbra
3FB7DA409 389 Thu Dec 31 22:30:01 zimbra
zimbra
26843A4AF 389 Mon Jan 4 22:30:02 zimbra
zimbra
.....
and so on

All messages are found in /var/spool/postfix/maildrop. And all contain the same:
T^Q1260397801 938389A^Urewrite_context=localF
CronDaemonS^FzimbraM^@N^LFrom: zimbraN
To: zimbraNHSubject: Cron <zimbra@myhost> /opt/zimbra/libexec/zmdailyreport -mNESCX-Cron-Env: <SHELL=/bin/sh>N^^X-Cron-Env: <HOME=/opt/zimbra>N X-Cron-Env: <PATH=/usr/bin:/bin>N^\X-Cron-Env: <LOGNAME=zimbra>N^YX-Cron-Env: <USER=zimbra>N^@N9gzip: /var/log/zimbra.log.1.gz: No such file or directoryX^@R^FzimbraE^@

This seems to be zimbra cron error. I don't know why it would search for /var/log/zimbra.log.1.gz whereas zimbra using bzip2 and logs are packed into this format:
-rw-r--r-- 1 zimbra zimbra 347 Jan 5 09:45 zimbra.log-20100105.bz2
-rw-r--r-- 1 zimbra zimbra 345 Jan 6 09:45 zimbra.log-20100106.bz2
-rw-r--r-- 1 zimbra zimbra 343 Jan 7 09:45 zimbra.log-20100107.bz2
-rw-r--r-- 1 zimbra zimbra 381427 Jan 9 09:45 zimbra.log-20100109.bz2


Of course I can just clean these messages from the queue, but may be someone has better ideas?
Reply With Quote
  #2 (permalink)  
Old 01-09-2010, 11:15 AM
Zimbra Consultant & Moderator
 
Posts: 20,312
Default

That mail, such as the daily report, would normally be sent to the Admin account - why not just add an alias to the admin account for that mail?
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 01-09-2010, 11:42 AM
Junior Member
 
Posts: 9
Default

Quote:
Originally Posted by phoenix View Post
That mail, such as the daily report, would normally be sent to the Admin account - why not just add an alias to the admin account for that mail?
As I understand, these mails for some reason are being dropped into wrong folder /var/spool/postfix/maildrop and not /opt/zimbra/data/postfix/spool/maildrop where zimbra will try to deliver them. So to my understanding alias will not solve the problem.
Cron (or whatever it spawns) must use Zimbra's postfix delivery system, not the standart one. I have no clue how to configure that.
Reply With Quote
  #4 (permalink)  
Old 03-26-2012, 12:16 AM
New Member
 
Posts: 3
Default Fix for local mail

Okay, a little late on the reply but figured I'd post for posterity. If you have an existing postfix directory in /var/spool because the package is installed at the system level (but it's not running of course), just symlink it to the Zimbra one. Then local mail for say root will be delivered (to admin account in the case of root.)

(as root)
cd /var/spool/
mv postfix dist-postfix
ln -s /opt/zimbra/data/postfix/spool postfix

That's it.
Reply With Quote
  #5 (permalink)  
Old 03-26-2012, 12:29 AM
Junior Member
 
Posts: 9
Default

Thanks!!

Unfortunately I've stopped Zimbra on the servers due to performance issues.
Postfix seems to work much better in my case.
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.