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 02-06-2012, 06:17 AM
Junior Member
 
Posts: 5
Default Best way to send email from command line?

Okay, I'm getting a series of emails from another program that need to be loaded into Zimbra somehow. I tried using Postfix directly, but that seems to randomly drop emails (emails the system is receiving will be randomly lost between the other program and Zimbra). So what's the best way to load emails into Zimbra from an outside program via command line? Is there some sort of command in Zimbra's binaries for this?
Reply With Quote
  #2 (permalink)  
Old 02-07-2012, 02:07 AM
Active Member
 
Posts: 31
Default

(echo "Subject: SUBJECT_TO_BE_CHANGED";echo "MESSAGE_TO_BE_EDITED") | /opt/zimbra/postfix/sbin/sendmail user@domain.com


Don't remove the "Subject:", it's a keyword, or your mail won't have any subject.

Cheers
Reply With Quote
  #3 (permalink)  
Old 02-07-2012, 05:53 AM
Junior Member
 
Posts: 5
Default

Quote:
Originally Posted by nameless' View Post
(echo "Subject: SUBJECT_TO_BE_CHANGED";echo "MESSAGE_TO_BE_EDITED") | /opt/zimbra/postfix/sbin/sendmail user@domain.com


Don't remove the "Subject:", it's a keyword, or your mail won't have any subject.

Cheers
Like I said, I tried that, but it appears to randomly drop email (or at least, every once in a while an email won't appear in the system at all).
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.