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 10-12-2011, 10:15 AM
tgx tgx is offline
Elite Member
 
Posts: 291
Default Cron emails

I have read a bit on this in various threads but I have not been able to discern a winning combination. I am running Zimbra 7.0.12 on SLES 11 and I have a cron job on the server that is supposed to email the log file results of an overnight job but the emails go nowhere. If I run mailq you can see the backlog of emails and basically it is telling me Postfix is down. Now from what I have gathered I need to somehow create a link such that the OS understands that Zimbra's Postfix is in charge. However to create such a link I would have to remove the sendmail or postfix executables in /usr/sbin since I cannot link with those files in situ. Can someone verify this is the correct direction to take before I go deleting OS dependent files. Also, I'm at a loss for changing my platform information in my profile I cannot find anywhere in User CP to change it anymore.
Reply With Quote
  #2 (permalink)  
Old 10-12-2011, 10:31 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by tgx View Post
I have read a bit on this in various threads but I have not been able to discern a winning combination. I am running Zimbra 7.0.12 on SLES 11 and I have a cron job on the server that is supposed to email the log file results of an overnight job but the emails go nowhere. If I run mailq you can see the backlog of emails and basically it is telling me Postfix is down. Now from what I have gathered I need to somehow create a link such that the OS understands that Zimbra's Postfix is in charge. However to create such a link I would have to remove the sendmail or postfix executables in /usr/sbin since I cannot link with those files in situ. Can someone verify this is the correct direction to take before I go deleting OS dependent files.
site:zimbra.com +sendmail +link - Yahoo! Search Results

Quote:
Originally Posted by tgx View Post
Also, I'm at a loss for changing my platform information in my profile I cannot find anywhere in User CP to change it anymore.
The feature went walkabout during a recent forums software upgrade, it will return in the not too distant future and meanwhile you can edit your profile here: www.zimbra.com/forums/profile.php?do=editprofile
__________________
Regards


Bill
Reply With Quote
  #3 (permalink)  
Old 10-12-2011, 11:14 AM
tgx tgx is offline
Elite Member
 
Posts: 291
Default

Link is only valid for systems with alternatives.
Doesn't work for SLES/SUSE based systems.
Reply With Quote
  #4 (permalink)  
Old 10-12-2011, 11:40 PM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by tgx View Post
Doesn't work for SLES/SUSE based systems.
Really, that's a surprise to me and my openSUSE machines:

+sles +"update-alternatives" - Yahoo! Search Results

Code:
whereis update-alternatives 
update-alternatives: /usr/sbin/update-alternatives /usr/lib/update-alternatives /usr/share/man/man8/update-alternatives.8.gz
Code:
update-alternatives 
update-alternatives: need --display, --config, --set, --install, --remove, --all, --remove-all or --auto

Usage: update-alternatives [<option> ...] <command>

Commands:
  --install <link> <name> <path> <priority>
    [--slave <link> <name> <path>] ...
                           add a group of alternatives to the system.
  --remove <name> <path>   remove <path> from the <name> group alternative.
  --remove-all <name>      remove <name> group from the alternatives system.
  --auto <name>            switch the master link <name> to automatic mode.
  --display <name>         display information about the <name> group.
  --list <name>            display all targets of the <name> group.
  --config <name>          show alternatives for the <name> group and ask the
                           user to select which one to use.
  --set <name> <path>      set <path> as alternative for <name>.
  --all                    call --config on all alternatives.

<link> is the symlink pointing to /etc/alternatives/<name>.
  (e.g. /usr/bin/pager)
<name> is the master name for this link group.
  (e.g. pager)
<path> is the location of one of the alternative target files.
  (e.g. /usr/bin/less)
<priority> is an integer; options with higher numbers have higher priority in
  automatic mode.

Options:
  --altdir <directory>     change the alternatives directory.
  --admindir <directory>   change the administrative directory.
  --verbose                verbose operation, more output.
  --quiet                  quiet operation, minimal output.
  --help                   show this help message.
  --version                show the version.
What is it that 'doesn't work'? I've used it recently for testing a java problem.
__________________
Regards


Bill
Reply With Quote
  #5 (permalink)  
Old 10-13-2011, 09:27 AM
tgx tgx is offline
Elite Member
 
Posts: 291
Default

I misunderstood a bit about how it works. The actual update alternatives works just fine, what is throwing me off is this:

[root@zimbra ~]# ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Jun 23 12:21 /usr/sbin/sendmail -> /etc/alternatives/mta

On SLES, at least this instance, there is no link from /usr/bin/sendmail to /etc/alternatives so I assumed that alternatives were not configured on this machine. It would seem simply that there is no 'alternative' configured for the MTA.

I'm asssuming I can simply run this:

update-alternatives --install /usr/sbin/sendmail mta-sendmail /opt/zimbra/postfix/sbin/sendmail 25

and it will be fixed up. I just want to make sure it's not going to suddenly cause Zimbra heartburn.
Reply With Quote
  #6 (permalink)  
Old 10-13-2011, 10:57 AM
Zimbra Consultant & Moderator
 
Posts: 20,315
Default

Quote:
Originally Posted by tgx View Post
I'm asssuming I can simply run this:

update-alternatives --install /usr/sbin/sendmail mta-sendmail /opt/zimbra/postfix/sbin/sendmail 25

and it will be fixed up. I just want to make sure it's not going to suddenly cause Zimbra heartburn.
I believe that should work and there's no reason that should cause a problem for Zimbra.
__________________
Regards


Bill
Reply With Quote
  #7 (permalink)  
Old 10-13-2011, 02:42 PM
tgx tgx is offline
Elite Member
 
Posts: 291
Default

Not working. Ran the update alternatives line,

------------
update-alternatives --display mta-sendmail
mta-sendmail - status is auto.
link currently points to /opt/zimbra/postfix/sbin/sendmail
/opt/zimbra/postfix/sbin/sendmail - priority 25
Current `best' version is /opt/zimbra/postfix/sbin/sendmail.
-------------

For good measure also tried the RedHat variant

------------------
host:~ # update-alternatives --display mta
mta - status is auto.
link currently points to /opt/zimbra/postfix/sbin/sendmail
/opt/zimbra/postfix/sbin/sendmail - priority 25
Current `best' version is /opt/zimbra/postfix/sbin/sendmail.
-------------

Here is current mailq status:

-----------------
host:~ # mailq
postqueue: warning: Mail system is down -- accessing queue directly
-------------

Last edited by tgx; 10-14-2011 at 02:58 PM..
Reply With Quote
  #8 (permalink)  
Old 10-14-2011, 02:58 PM
tgx tgx is offline
Elite Member
 
Posts: 291
Default

Any ideas?
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.