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 Display Modes
  #1 (permalink)  
Old 12-12-2007, 09:22 AM
Active Member
 
Posts: 30
Default sending eMail on comand line (&logwatch) - Ubuntu 6.06

Hiya,

I've a zimbra 4.5 NE installation on Ubuntu 6.06 Server.

PROBLEM: Send email from local server via command line:
My problem is following, that I'm not able to send eMails on CLI or via logwatch and always got the message "sendmail: invalid option -- s"


1) Installed the
• MTA Dummy Package (dpkg -i mta-dummy_1.0_all.deb)
to resolve mailer dependencies
• Logwatch (apt-get install logwatch)

Recognized that zimbra places the postfix-sendmail compatibility binary in
/opt/zimbra/postfix-2.2.9/sbin/sendmail
and proceeded.

Config [vi /etc/logwatch/conf/logwatch.conf] to
mailer = /opt/zimbra/postfix-2.2.9/sbin/sendmail
I also tried "sendmail -t" and many other possibilities

2) echo "test" | /opt/zimbra/postfix-2.2.9/sbin/sendmail -s test mymail@de.mail.com
sendmail: invalid option -- s
sendmail: fatal: usage: sendmail [options]

3) logwatch
sendmail: invalid option -- s
sendmail: fatal: usage: sendmail [options]

Any idea or clue why it's not working?

Cheers
Christian

* As reference I checked:
Sending email locally
Logwatch stops sending mail?
[SOLVED] Logwatch & Debian
Multi-server and Logwatch
...
__________________
--
Zimbra NE - Ubuntu 6.06 LTS : FC SAN
Reply With Quote
  #2 (permalink)  
Old 12-27-2007, 02:26 AM
Active Member
 
Posts: 30
Default sending eMail on comand line (&logwatch) - Ubuntu 6.06 [SOLVED]

SOLUTION:
-----------

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!

Big THANKS for the great support of Sean Gallagher from Zimbra Network Support Team

RESOLVED, everything works fine.

Cheers
Christian
__________________
--
Zimbra NE - Ubuntu 6.06 LTS : FC SAN
Reply With Quote
Reply


Thread Tools
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.

Zimbrablog.com




 

Search Engine Optimization by vBSEO 3.1.0