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

Thread: [SOLVED] logwatch emails

  1. #1
    Join Date
    Oct 2007
    Location
    Santa Rosa. CA
    Posts
    40
    Rep Power
    8

    Default [SOLVED] logwatch emails

    My original installation of zimbra 18 months ago was configured with the FQN host name as the mail domain--zimbra.scoe.org. I then created the actual mail domain--scoe.org--and added users. Realizing that the mail hostname "zimbra.scoe.org" was a lame duck, I hunted down the global settings that were made in that empty domain, and put them under mail hostname "scoe.org." After waiting 6 month for problems to appear (none did, till now), I deleted the mail host "zimbra.scoe.org."

    Delivery of logwatch emails stopped. They had been sent by "logwatch@zimbra.scoe.org" to "root@zimbra.scoe.org. " How do I correct these sender/recipient settings? I have combed /opt/zimbra to no avail.

  2. #2
    Join Date
    Apr 2009
    Posts
    46
    Rep Power
    6

    Default

    Mail server should have a hostname different from the mail domain. using the email domain as hostname is not a good idea. If you want to change the hostname in the zimbra configuration. follow the link below. Of course you still have to configure the hostname for your sytem first. The link only handle hostname configuration in the zimbra installation.

    ZmSetServerName - Zimbra :: Wiki

    Of course, that wasn't your question.
    To fix your issue, you can do one of following.
    1. recreate the zimbra.scoe.org domain and add the root@zimbra.scoe.org and logwatch@zimbra.scoe.org as an aliases of of the account you want to recive those emails.
    or
    2. create an alias domain zimbra.scoe.org and forward all emails to scoe.org.
    This gets a nice side effect of every account in scoe.org also receive for zimbra.scoe.org. so depend on if want behavior you want.
    Last edited by thorng; 05-21-2009 at 05:25 PM. Reason: typo

  3. #3
    Join Date
    Oct 2007
    Location
    Santa Rosa. CA
    Posts
    40
    Rep Power
    8

    Default

    Thanks for the input. In a similar post, forum user phoenix stated that logwatch parameters are not made by zimbra, but are set by the Linux utility logwatch itself. The config file on our RHEL 5.3 box is /usr/share/logwatch/default.conf/logwatch.conf. The MailTo and MailFrom settings are in this file, and can be email addresses or usernames. Making these settings, my logwatch emails resumed last night.

  4. #4
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default Here's what worked for me

    Code:
    vi /usr/share/logwatch/default.conf/logwatch.conf
    Change MailTo = admin@domain.example
    Change MailFrom = Logwatch@domain.example
    Change mailer = "sendmail -t" > "mailer = "/opt/zimbra/postfix-*/sbin/sendmail -t"
    Because there are over a 1000 hits to this one on google. I also want to point back to the original thread with the fix (#8). This one took me a while to find because so many similar threads ended without an answer.

    todd_dsm

    Don't forget to Vote for this RFE:
    RFE: A place To Display the contents of 'My Documents'
    Reasoning: It's new, bold, and cool.
    Last edited by todd_dsm; 10-08-2010 at 09:45 AM.

  5. #5
    Join Date
    Feb 2010
    Location
    Auckland, NZ
    Posts
    47
    Rep Power
    5

    Default

    This does not seem to work for me with Z6.0.5 Ubuntu 8.04. I added the following to logwatch.conf
    "mailer = "/opt/zimbra/postfix-*/sbin/sendmail -t"

    But still get error:
    sendmail: fatal: open /etc/postfix/main.cf: No such file or directory

    Do I need to install sendmail and disable it to get logwatch to work since mailer is looking for main.cf?

    Cheers
    Andy

  6. #6
    Join Date
    Oct 2010
    Posts
    1
    Rep Power
    5

    Default

    You have to actually verify the path for the postfix binary, which is likely called sendmail.postfix or something of that nature. Then you have to replace the "*" with the proper version if necessary. I am pretty sure that logwatch won't resolve the * character in the path.

    On my RHEL system, the sendmail compatible binary from postfix is:

    /opt/zimbra/postfix/sbin/sendmail

  7. #7
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default Not so my friend

    Quote Originally Posted by makfinsky View Post
    I am pretty sure that logwatch won't resolve the * character in the path.
    Logwatch parses the asterisk just fine. Again, mine looks like this:

    Code:
    mine:
    $ ll /opt/zimbra/postfix-2.6.7.2z/sbin/sendmail
    -rwxr-xr-x 1 root root 751331 Jun 30 13:50 /opt/zimbra/postfix-2.6.7.2z/sbin/sendmail
    
    yours:
    $ ll /opt/zimbra/postfix/sbin/sendmail
    -rwxr-xr-x 1 root root 751331 Jun 30 13:50 /opt/zimbra/postfix/sbin/sendmail
    
    /usr/share/logwatch/default.conf/logwatch.conf
    mailer = "/opt/zimbra/postfix-*/sbin/sendmail -t"
    The asterisk (*) was there to prevent against breaks when upgrading versions. Somehow I missed the soft link to the postfix directory. All things being equal, yours achieves the same requirement and its simpler; I like yours better. Making the change now...

  8. #8
    Join Date
    Feb 2010
    Location
    Auckland, NZ
    Posts
    47
    Rep Power
    5

    Default

    Thank for the suggestions guys but still no joy.

    Sendmail is located at /opt/zimbra/postfix-2.6.5.2z/sbin/sendmail

    logwatch config: mailer = "/opt/zimbra/postfix-*/sbin/sendmail -t"

    When I run "logwatch -mailto bob@bob.com" I still get:
    sendmail: fatal: open /etc/postfix/main.cf: No such file or directory

    I also tried logwatch config: mailer = "/opt/zimbra/postfix-2.6.5.2z/sbin/sendmail -t"

    But no luck

    Cheers
    Andy

  9. #9
    Join Date
    May 2008
    Location
    Des Moines, IA
    Posts
    89
    Rep Power
    7

    Default

    I'm not familiar with ubuntu but can you find sendmail to see if it's in the right location?

    $ find /opt/zimbra/postfix/ -name sendmail

    Whatever is returned goes into your logwatch config file. PS: any other sendmail should be uninstalled

  10. #10
    Join Date
    Feb 2010
    Location
    Auckland, NZ
    Posts
    47
    Rep Power
    5

    Default

    Running: $ find /opt/zimbra/postfix/ -name sendmail
    Returns: /opt/zimbra/postfix/sbin/sendmail

    I put this in logwatch config:
    mailer = "/opt/zimbra/postfix/sbin/sendmail -t"

    But still get: sendmail: fatal: open /etc/postfix/main.cf: No such file or directory

    Cheers
    Andy

Similar Threads

  1. default path for emails
    By adeelbashir in forum General Questions
    Replies: 1
    Last Post: 03-23-2009, 01:34 PM
  2. Incorrect dates on inbox emails
    By owen howlett in forum Error Reports
    Replies: 4
    Last Post: 03-11-2009, 09:42 PM
  3. Discussion: Printing Emails
    By Nox in forum /etc
    Replies: 1
    Last Post: 09-02-2008, 01:05 PM
  4. Not receiving emails
    By koby in forum Installation
    Replies: 2
    Last Post: 08-28-2006, 03:29 AM
  5. emails don't show up in inbox in browser
    By pstelzer in forum Installation
    Replies: 10
    Last Post: 12-13-2005, 09:21 AM

Posting Permissions

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