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 11-27-2009, 01:46 PM
Active Member
 
Posts: 26
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
Reply With Quote
  #2 (permalink)  
Old 11-28-2009, 05:16 AM
Active Member
 
Posts: 26
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.
Reply With Quote
  #3 (permalink)  
Old 11-28-2009, 06:58 AM
Active Member
 
Posts: 26
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
Reply With Quote
  #4 (permalink)  
Old 11-28-2009, 11:58 AM
Active Member
 
Posts: 26
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
Reply With Quote
  #5 (permalink)  
Old 12-01-2009, 01:25 AM
Advanced Member
 
Posts: 191
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?
Reply With Quote
  #6 (permalink)  
Old 12-01-2009, 03:08 AM
Active Member
 
Posts: 26
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
Reply With Quote
  #7 (permalink)  
Old 12-11-2009, 02:45 AM
Junior Member
 
Posts: 5
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
Reply With Quote
  #8 (permalink)  
Old 12-12-2009, 07:12 PM
Advanced Member
 
Posts: 191
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...
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.