Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: [SOLVED] Upgrade breaks destination for zmdailyreport

  1. #1
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default [SOLVED] Upgrade breaks destination for zmdailyreport

    I have had some headaches ever since an upgrade from 4.5.6 to 4.5.7 (now on .9) that have recently been fixed. At the same time as they started, I stopped getting my daily mail reports. I assumed--erroneously it now appears--that they were related. Now with a LOT of help I have my stats, logger and graphs working again, but I still am not getting the Daily Mail Report that goes to admin.

    I went to the cli and checked my crontab; zmdailyreport is scheduled to run nightly at 1:10 am. However if I try to run it from the command line I get the following error:
    Code:
    zimbra@mail:~/libexec$ . zmdailyreport -m
    -su: use: command not found
    -su: no: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: use: command not found
    -su: zmdailyreport: line 30: syntax error near unexpected token `('
    -su: zmdailyreport: line 30: `my %options = ();'
    Not being a perl expert (heck, having no clue at all in perl ) I don't know what that syntax error might be. Can anyone help me?

    Thanks

    Dan

  2. #2
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    try running /opt/zimbra/libexec/zmdailyreport -m
    instead.

  3. #3
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default

    Quote Originally Posted by jholder View Post
    try running /opt/zimbra/libexec/zmdailyreport -m
    instead.
    OK, when I put in the whole path it runs (well, it at least gives no errors). Confusing to me, because when I just cd to /opt/zimbra/libexec and then run zmdailyreport -m it doesn't. I thought those were equivalent??

    But more importantly, though it must run (as in there is no error) I'm not getting a message. What log files should I be looking in to see what is/isn't happening?

  4. #4
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    because if you run it via ./ it uses the bash as the interpreter. Are there any errors in your logs

  5. #5
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default

    Quote Originally Posted by jholder View Post
    Are there any errors in your logs
    Of course I should have thought of this myself; yes, there are. In /var/log/zimbra.log is the answer, though I am not sure what the solution is (domain obfuscated):
    Code:
    Oct 25 11:02:11 mail postfix/qmgr[12228]: 40CFC3D0BF2: removed
    Oct 25 11:02:11 mail postfix/smtp[28889]: 101093D0BF3: to=<admin@mail.mydomain.n
    et>, relay=none, delay=0, status=bounced (mail for mail.mydomain.net loops back
    to myself)
    Oct 25 11:02:11 mail postfix/cleanup[28884]: 37ABC3D0BF4: message-id=<20071025180211.
    37ABC3D0BF4@mail.mydomain.net>
    Oct 25 11:02:11 mail postfix/qmgr[12228]: 37ABC3D0BF4: from=<>, size=6461, nrcpt=1 (q
    ueue active)
    Oct 25 11:02:11 mail postfix/qmgr[12228]: 101093D0BF3: removed
    Oct 25 11:02:11 mail postfix/smtp[28889]: 37ABC3D0BF4: to=<zimbra@mail.mydomain.
    net>, relay=none, delay=0, status=bounced (mail for mail.mydomain.net loops back
     to myself)
    Oct 25 11:02:11 mail postfix/qmgr[12228]: 37ABC3D0BF4: removed

  6. #6
    jholder's Avatar
    jholder is offline Former Zimbran
    Join Date
    Oct 2005
    Location
    Thatcher, AZ
    Posts
    5,606
    Rep Power
    20

    Default

    k, let's change that

    zmlocalconfig -e smtp_destination=you@domain.com

  7. #7
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default

    John,

    It occurs to me that this may have started about the time you discovered I had not set up the FQDN properly (along with my bad syntax in the hosts file that was required to get .6 to install). Is there any chance that in changing the FQDN within Zimbra a setting got missed, that would lead to this issue?

  8. #8
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default

    Quote Originally Posted by jholder View Post
    k, let's change that

    zmlocalconfig -e smtp_destination=you@domain.com
    Yep. That did it. Thanks, and mark solved.

  9. #9
    NoN
    NoN is offline Starter Member
    Join Date
    Oct 2007
    Posts
    2
    Rep Power
    7

    Default Confirm of this bug on ubuntu

    Hello,

    I can confirm this bug. I had exactly the same problem after upgrading my zimbra installation 4.5.8 to 4.5.9_GA_1454.UBUNTU6. For some reason the upgrade process changed all my default users from:

    smtp_destination=admin@domain.com
    smtp_source=admin@domain.com
    av_notify_user=admin@domain.com

    to

    smtp_destination=admin@FQDN-hostname
    smtp_source=admin@FQDN-hostname
    av_notify_user=admin@FQDN-hostname

    Which ofcourse resulted in the same mailloop as mentioned above.

    After changing these three parameters with zmlocalconfig -e PARAMETER it works again as intended.

    Best regards,
    Pontus

  10. #10
    dwmtractor's Avatar
    dwmtractor is offline Moderator
    Join Date
    Jul 2007
    Location
    San Jose, CA
    Posts
    1,027
    Rep Power
    9

    Default

    Quote Originally Posted by NoN View Post
    Hello,

    I can confirm this bug. I had exactly the same problem after upgrading my zimbra installation 4.5.8 to 4.5.9_GA_1454.UBUNTU6. For some reason the upgrade process changed all my default users from:

    smtp_destination=admin@domain.com
    smtp_source=admin@domain.com
    av_notify_user=admin@domain.com

    to

    smtp_destination=admin@FQDN-hostname
    smtp_source=admin@FQDN-hostname
    av_notify_user=admin@FQDN-hostname

    Which ofcourse resulted in the same mailloop as mentioned above.

    After changing these three parameters with zmlocalconfig -e PARAMETER it works again as intended.

    Best regards,
    Pontus
    I just realized that this happened again when I upgraded from 4.5.9 to 4.5.10. Is this by design, that the system overwrites admin addresses? Is there a reason, for example, that I should maybe just create an alias admin@mail.mydomain.com (my fqdn) and point it to admin@mydomain.com which is what the address actually is? Or is this a legitimate cause to file a bug? Whatever it is, it's a pain!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Should I Upgrade Apache?
    By Omegasupreme in forum Installation
    Replies: 6
    Last Post: 11-05-2007, 01:04 PM
  2. Upgrade to 4.5.9 still breaks spam databases
    By dwmtractor in forum Installation
    Replies: 21
    Last Post: 10-25-2007, 08:10 AM
  3. Upgrade to zdesktop 0.58 : Failed to inject zimlets
    By Klug in forum Installation Help
    Replies: 2
    Last Post: 10-05-2007, 07:51 PM
  4. [SOLVED] Upgrade 3.0.1 > 4.5.7 Possible?
    By jimbo in forum Installation
    Replies: 3
    Last Post: 10-01-2007, 12:22 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
  •