Results 1 to 8 of 8

Thread: [SOLVED] Receive system email through Zimbra

  1. #1
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default [SOLVED] Receive system email through Zimbra

    I'm running Ubuntu 8.04 and have installed logcheck. Logcheck usually sends it's email through exim or some other MTA. My system mail, i.e. root@localhost, is not being picked up by zimbra.

    I've adjusted my /etc/aliases - root: user@mydomain.com

    I've tried adding: set sendmail=/opt/zimbra/postfix/sbin/sendmail to my /etc/mail.rc

    I've even tried moving /usr/sbin/exim4 and sym-linking /opt/zimbra/postfix/sbin/sendmail. So, that zimbra's sendmail would be called in place of the standard MTA for my system...

    However, when then postfix complains about: status=bounced (mail for mail.thisdomain.com loops back to myself)

    I remember having this working properly in my last install with Zimbra 5.02. Any hints?

    Thanks
    Daniel

  2. #2
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default

    Update:

    All attempts to replace exim with zimbra's default mailer have resulted in this error in zimbra.log:

    Nov 28 08:13:26 mail postfix/smtp[24136]: 724FF16A047: to=<root@mail.mydomain.com>, relay=none, delay=2.7, delays=1.3/1.3/0.16/0, dsn=5.4.6, status=bounced (mail for mail.mydomain.com loops back to myself)

    Is there some setting in zimbra that I'm missing?

    I read a some tutorials that had to do with editing postfix.conf to add a localhost relay entry. Although, I'm not sure this is the way to go with zimbra.

  3. #3
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default

    I've attempted editing /opt/zimbra/postfix/conf/main.cf:

    mydestination = localhost (which is the default)

    my attempted changes:

    mydestination = localhost $myhostname

    However - my changes are reverted after postfix reload...

    What am I missing here? I know it's something simple... I don't think manually editing zimbra's postfix conf files is the correct approach. Where/How can I change this through either zmprov or the admin login?

    Thanks

  4. #4
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default Solved

    Well, I guess in case anyone else has this issue - I'll wrap it up for you...

    After much gnashing of teeth, cursing and swearing... I purged exim completely... then issued a simple command:

    Code:
    update-alternatives --install /usr/sbin/sendmail mta /opt/zimbra/postfix/sbin/sendmail 90
    logcheck now sends mail to zimbra from the local system... I still don't understand what behavior changed from 5.02 to 6 - if someone could enlighten me around that I would be most appreciative...

    Thanks

  5. #5
    borngunners is offline Advanced Member
    Join Date
    Jun 2009
    Posts
    195
    Rep Power
    6

    Default

    Quote Originally Posted by internalkernel View Post
    Well, I guess in case anyone else has this issue - I'll wrap it up for you...

    After much gnashing of teeth, cursing and swearing... I purged exim completely... then issued a simple command:

    Code:
    update-alternatives --install /usr/sbin/sendmail mta /opt/zimbra/postfix/sbin/sendmail 90
    logcheck now sends mail to zimbra from the local system... I still don't understand what behavior changed from 5.02 to 6 - if someone could enlighten me around that I would be most appreciative...

    Thanks
    What will happen if you reboot your server? will sendmail of the root computer take precedent ofr the zimbra sendmail, causing zimbra mta to stop?

  6. #6
    internalkernel's Avatar
    internalkernel is offline Active Member
    Join Date
    Mar 2009
    Location
    got root?
    Posts
    26
    Rep Power
    6

    Default

    Quote Originally Posted by borngunners View Post
    What will happen if you reboot your server? will sendmail of the root computer take precedent ofr the zimbra sendmail, causing zimbra mta to stop?
    No, sendmail is stopped and doesn't start with the machine - essentially turned off and wasting space unfortunately. Logcheck requires an MTA to be installed.

    The update-alternatives command only updates system symlinks in /etc/alternatives. The end result is making my system use the zimbra sendmail instance as the default mailer for the system. /etc/alternatives allows for multiple packages of the same application to be installed and through this mechanism one is defined as a system default.

    I've rebooted since then to make sure and everything seems to be functional. Although, I have to say this seems like new behavior to me in zcs 6, I've never had to do this previously...

    Daniel

  7. #7
    infajb is offline Junior Member
    Join Date
    Jun 2009
    Posts
    5
    Rep Power
    6

    Default

    Quote Originally Posted by internalkernel View Post
    Well, I guess in case anyone else has this issue - I'll wrap it up for you...

    After much gnashing of teeth, cursing and swearing... I purged exim completely... then issued a simple command:

    Code:
    update-alternatives --install /usr/sbin/sendmail mta /opt/zimbra/postfix/sbin/sendmail 90
    logcheck now sends mail to zimbra from the local system... I still don't understand what behavior changed from 5.02 to 6 - if someone could enlighten me around that I would be most appreciative...

    Thanks
    Hi, if you understand spanish, here is a tutorial that I think it can be useful:
    zimbra mta logwatch Kamus Blog

  8. #8
    borngunners is offline Advanced Member
    Join Date
    Jun 2009
    Posts
    195
    Rep Power
    6

    Default

    Quote Originally Posted by infajb View Post
    Hi, if you understand spanish, here is a tutorial that I think it can be useful:
    zimbra mta logwatch Kamus Blog
    How do I unintsall the update-alternatives as it is putting my system offline...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] parts_decode_ext error
    By jsabater in forum Administrators
    Replies: 7
    Last Post: 10-13-2008, 07:24 AM
  2. Zimbra spam system
    By rajahd in forum Administrators
    Replies: 9
    Last Post: 04-16-2008, 07:25 PM
  3. zmperditionctl start asking for password
    By k7sle in forum Administrators
    Replies: 32
    Last Post: 02-20-2008, 11:13 AM
  4. [SOLVED] Clamav problem ? What's happening ?
    By aNt1X in forum Installation
    Replies: 23
    Last Post: 02-14-2008, 05:43 AM
  5. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 08:55 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
  •