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 03-31-2009, 04:53 PM
Loyal Member
 
Posts: 83
Default Oops! Help! Postfix & mta-dummy

I screwed up. Ack.

I'm running still, thankfully. But, I don't want to do anything further until I figure out how to properly undo what I did without breaking Zimbra (further).

I was trying to install a command line mailer and forgot about the optional instructions in the Ubuntu 8.04 guide. So, mailx is installed and from the command line it works. (Logwatch doesn't though, that'll be another question).

So, there is a 'postfix' directory in the /etc directory dated today. When trying to run 'dpkg -i mta-dummy_1.0_all.deb' I get "postfix conflicts with mail-transport-agent.." and so on.

I also stopped receiving mail until I ran as zimbra zmmtactl restart.

So, if I run apt-get remove postfix mailx will I break Zimbra? What should I do?

I would like to end up with the command line mailer so that I can get logwatch to work.

Thanks,

Kazooless
Reply With Quote
  #2 (permalink)  
Old 04-01-2009, 03:18 AM
Moderator
 
Posts: 7,928
Default

Just uninstall it as Zimbra contains its own Postfix version which is outside of the normal repository. If you want a command line mail program that has no dependencies then
Code:
apt-get install sendemail
__________________
Reply With Quote
  #3 (permalink)  
Old 04-01-2009, 09:23 AM
Loyal Member
 
Posts: 83
Default

Okay, thanks. I was afraid that since Zimbra uses postfix that maybe removing postfix would break Zimbra. I removed them and it is still working.

However, I installed 'sendemail' as you suggested but I still get:

Quote:
root@mail:~/Downloads# mail user@mydomain.com
The program 'mail' can be found in the following packages:
* mailx
* mailutils
Try: apt-get install <selected package>
bash: mail: command not found
and if I just try to run 'sendemail,' I am told "command not found" even though there is a man page giving usage. I am guessing it needs to be in a path and somehow the command "mail" needs to be remapped to "sendemail" for this to work for cron jobs that mail stuff (such as logwatch). Is that right? Can you point me to instructions on how to do so?

Thanks,

kazoo

Last edited by kazooless; 04-01-2009 at 10:42 AM..
Reply With Quote
  #4 (permalink)  
Old 04-01-2009, 10:56 AM
Loyal Member
 
Posts: 83
Default

Okay, I've got it working now. Being that I am a total hack as it goes with Linux, what I did to get it working may or may not be recommended. And, who knows if I've broken something. So, you've been warned.

However, I uninstalled logwatch, postfix & mailx. Then I installed "sendemail" according to uxbod's suggestion above. Didn't seem to help or do anything.

But then I followed the instructions found at this link and added one more thing:

sending eMail on comand line (&logwatch) - Ubuntu 6.06

Quote:
1) MTA Dummy Package

"To install mailx without additional postfix" use "mta-dummy" package
e.g.
• wget http://ubuntu.lnix.net/misc/mta-dumm...my_1.0_all.deb
• dpkg -i mta-dummy_1.0_all.deb

Please check my further posts or google for it. It allows installing packages by resolve mailer dependencies.

2) Use apt-get to install the 'mailx' package.

3) Edit /etc/mail.rc to add the following:
set sendmail=/opt/zimbra/postfix/sbin/sendmail

4) ) Install Logwatch
• apt-get install logwatch

Tested mail by CLI & logwatch - OK!
The last step is what might just be a bad 'hack' by me, but logwatch started working for me after I did this:

Quote:
ln -s /opt/zimbra/postfix-2.4.7.5z/sbin/sendmail /usr/sbin/sendmail
Hopefully, that will help others, and more hopefully, someone who really knows what they're doing will respond with approval or an understandable correction.

Cheers!

kazoo
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.