Thursday 28 July 2011

Sending emails from scripts inside zimbra

If you're using zimbra on a linux system with package dependancy management (so pretty much any linux system nowadays) You find it a bit "quirky" to use the "mail" command or mutt (if you need to use attachments).

First you should install this:

 http://ubuntu.lnix.net/misc/mta-dummy/mta-dummy_1.0_all.deb

then run this command:

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

Which should convince your system that, no, you don't need to install postfix to run mutt.

After that, it's as easy as installing mutt or mailx.

No comments:

Post a Comment