Results 1 to 5 of 5

Thread: How to handle mails for local Linux accounts?

  1. #1
    Join Date
    Nov 2009
    Location
    Cannes, France
    Posts
    9
    Rep Power
    5

    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?

  2. #2
    phoenix is offline Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,587
    Rep Power
    58

    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


    Acompli: A new adventure for Co-Founder KevinH.

  3. #3
    Join Date
    Nov 2009
    Location
    Cannes, France
    Posts
    9
    Rep Power
    5

    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.

  4. #4
    Join Date
    Jun 2009
    Location
    Cincinnati, OH
    Posts
    3
    Rep Power
    6

    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.

  5. #5
    Join Date
    Nov 2009
    Location
    Cannes, France
    Posts
    9
    Rep Power
    5

    Default

    Thanks!!

    Unfortunately I've stopped Zimbra on the servers due to performance issues.
    Postfix seems to work much better in my case.

Similar Threads

  1. path for accounts and mails data
    By emcampos in forum Installation
    Replies: 1
    Last Post: 03-21-2009, 03:57 AM
  2. Antivirus suddenly stop
    By kowell in forum Administrators
    Replies: 17
    Last Post: 03-27-2007, 05:05 AM
  3. Replies: 4
    Last Post: 03-05-2007, 08:59 AM
  4. Still problems with snet mails in imap accounts
    By chh in forum Zimbra Connector for Outlook
    Replies: 3
    Last Post: 01-08-2007, 10:26 AM
  5. Replies: 2
    Last Post: 03-20-2006, 10:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •