The Advanced Email plugin gives you the ability to comment on blog posts, documents, reply to discussion thread, set your status and create discussion threads, documents, blog posts and tasks, all via email. By bringing the entire discussion to your desktop or mobile inbox you can participate in a manner both familiar and convenient, regardless of location or device.
End Users: once the plugin has been installed and configured appropriately (read the directions below before installing), you'll see an item added to the Your Stuff Menu called Mailing Lists. Clicking on this link will take you to a page that shows you all the spaces, projects, groups and blogs that you're either following or watching. You'll see a list of email addresses associated with each of those places: you can click on an email address if you want to test out the functionality. Type in a subject, add some text to the body of your email and click send. You should see the email show up as a discussion, document, blog post or task within a couple minutes. Publishing via email is usually necessary when you don't have an internet connection, so if you'll probably want to add any of the email addresses that you think you'll use on a regular basis to your address book.
Administrators: installing the plugin via the admin console is the easy part; the plugin does require some additional work from you and potentially some cooperation from your IT department or from your hosting provider. Read the installation instructions below for more information.
Coming soon!
Clearspace 2.0.x, Clearspace 2.5.x or Jive SBS 3.0.x
Download the plugin using the sidebar on the right.
IMPORTANT: This plugin requires that you have either a) deployed Clearspace to a server where the DNS A record of the server doesn't have a corresponding MX record or b) deployed Clearspace to a server where the DNS A record of the server does have a corresponding MX record and so you've created a separate DNS A record specifically for this email functionality. Additionally, it requires that you open inbound connections to port 25 and then use iptables to forward inbound requests on port 25 to port 2500 (or another port that is not a priveleged port). Here are some example configurations:
Clearspace deployed to jivesoftware.com/community. Because the DNS A record for 'jivesoftware.com' already has a corresponding MX record that handles mail for mail for the employees of jivesoftware.com, you'll need to create a separate DNS A record such as 'community.jivesoftware.com' which points to the same IP address as the server that Clearspace is deployed on and then (optionally) create an MX record that points to the A record 'community.jivesoftware.com'. If you don't create an MX record, email transfer agents use the A record as a fall back (this is sometimes called an implicit MX record).
Clearspace deployed to community.jivesoftware.com. It's unlikely that an MX record exists for the DNS A record community.jivesoftware.com so you most likely don't have to add or configure any DNS records. Mail transfer agents will first attempt to look up an MX record for community.jivesoftware.com, if they don't find one then they'll use the 'implicit' or 'fallback' A record.
As mentioned above, you'll need to make sure that Clearspace is able to receive mail on port 25 on the server it's deployed on. Ports 1024 and below are considered priveleged ports on Unix systems and so you'd have to run Clearspace as root if you wanted to bind to port 25, which isn't recommended. Instead, the plugin will by default attempt to bind to port 2500, which means you'll want to configure inbound requests on port 25 to forward to port 2500 using iptables. Here is a sample iptables command to forward requests on port 25 to port 2500:
> iptables -t nat -I PREROUTING -p tcp --dport 25 -j REDIRECT --to-ports 2500
> /sbin/iptables-saveIt's also possible to have your existing mail servers forward mail to Clearspace.
Qmail: Create a file under /var/qmail/control named smtproutes and with the content: domain.com:[IP MACHINE]:PORT where IP MACHINE would be something like 127.0.0.1 and port would be 2500. and then restart Qmail.
Sendmail: 1. Add your domain to access file: DOMAIN.COM RELAY 2. Add a mailertable in mailertable file: DOMAIN.COM smtp:[IP]:PORT 3. Rehash the files: makemap hash /etc/mail/access < /etc/mail/access makemap hash /etc/mail/mailertable < /etc/mail/mailertable
Exchange / IIS: 1.) Modify the Default Recipient Policy by adding your subdomain (i.e. community.jivesoftware.com) as a new non-primary address. Ensure that "This Exchange Organization is responsible for all mail delivery to this address." is unchecked for the new address. a. If prompted to change all address, choose no. 2.) Create a new SMTP Connector choosing "Forward all mail through this connector to the following smart hosts, providing the IP address of your SubEtha List Server as the address (i.e. 192.168.1.100) a. Add your local SMTP Virtual Server as a bridgehead server b. Select the Address Space tab and add a new SMTP address of your subdomain (community.jivesoftware.com). You can leave the cost at 1 and ensure that "Allow messages to be relayed to these domains" is checked.
Build and deploy the plugin.
Go to the Clearspace Admin Console and create the following system properties:
plugins.advancedemail.port: the port number that this plugin will bind to. By default the plugin will attempt to bind to port 2500.
plugins.advancedemail.maxconnections: the maximum number of connections that the email server will allow. By default the plugin will accept up to 1000 connections.
Once you've completed the above steps, you're ready to test out the email publishing functionality. Open a browser window and go to your Clearspace instance. Click on 'Your Stuff' and then on 'Mailing Lists'. Create an email publishing alias for a space / community or a blog. Click on the resulting email link: your email client should open. Type a subject and a body, optionally add an attachment and then click send. After a few moments (depending on the speed of your network), you should see the document, discussion thread or blog post created in your Clearspace system.
The Ant build.xml file at the root of the plugin includes a build.plugins target you can use to compile the code and package it into a JAR file. There's also a deploy.plugins target that copies the JAR into the <jiveHome>/plugins directory that accompanies your Clearspace distribution. Paths into your test Clearspace distribution assume that this plugin project is in the standalone Clearspace distribution at: <root>/plugins/plugins/helloworld.
Be sure to update the targets if you're testing another way, such as with the Clearspace WAR distribution.
Be sure to read the notes below about dependencies. The JAR files you'll need are included as part of Clearspace.
Q: Why can't you use an existing email server like the 'reply via email' feature already in Clearspace?
A: The existing 'reply via email' feature could be extended to other content types like documents and blog posts, but it would break down when you tried to create content. Instead of creating a single account, this plugin acts as an email server and a like an HTTP filter. It looks at the sender email address and the recipient email address and confirms that a) the sender exists as a user in Clearspace and that b) the recipient is a named alias (much like an HTTP resource) and that c) the named alias was created specifically by the recipient. If any of the aforementioned conditions are false, the email is dropped.
Q: Will this plugin allow spammers to relay?
A: No, the plugin only receives email, it doesn't send email. If you have an existing email server (like sendmail) installed on the same machine as Clearspace, you'll probably want to configure it to bind to another port and then configure Clearspace to send email on that new port.
If you'd rather deploy the plugin manually, you can do that in one of two ways:
Just copy the plugin JAR file into the <jiveHome>/plugins directory. Your running Clearspace instance will deploy it automatically.
Open the admin console and navigate to System > Settings > Plugins, then browse for your plugin JAR file.
Copyright 2009 Jive Software Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
hi Jay,
Yeah, you could probably modify it to work with forums as well, to be honest I've haven't kept up with the forums plugin API, so it might have to be done as a custom overlay.
We are using clearspace Version 1.10.6 and we want to implement email response functionality, by giving user the facility to reply to blogs, documents etc, via outlook, blackberry and other external emailing system. I am wondering about the success of this plugin.Have any one did test without modification to this plugin ???
Hi Aaron,
I am not able to follow as per the configuration instructions given above.
We have a Windows 2003 server with a DNS record called clearspaceXX pointing to this same server on which we have ClearSpace 2.0.4 installed.
You have mentioned the UNIX command "iptables" command that needs to be run to forward requests, however we are having a Windows 2003 server.
Could you please provide me with some clearer instructions on going about this using IIS.
Regards,
Karthik.
hi talrejaneeraj,
The current version of the plugin only works with 2.0.x, you'll need to upgrade if you want to use it.
Cheers,
AJ
hi Karthik,
iptables is used for to forward incoming requests on port 25 to port 2500: I put the example there for *nix users because the SMTP server that the plugin includes wouldn't be able to bind to port 25 on nix systems unless Clearspace / Tomcat was running as a root user (nix doesn't like non root users binding to priveleged ports).
Anyway, did you see the directions for IIS / Exchange below that? You should be able to use those without doing anything with iptables.
Cheers,
AJ
I thought this was supposed to come standard with 2.5, no?
Worked with my Exchange Admin & it works great! What about attachments? Should those post add the attachments as well?
FYI, a heads-up to those thinking of using this plugin -- it over-rides the vacation message filter. We wanted the capabilities offered by this plugin, but we have way too many "out of office" auto-replies trying to post to discussions and as comments for us to lose the capability to filter them out.
Thanks for advising on this (at least somebody did). We were just about to start using it and this would have been a major problem for us as well.
Hi Ted,
There's actually a system property that you'll want to have set on your instance, "mail.smtp.from". Set this property to a valid email address (or to something like null@example.com) and all the bounce / out of office emails will go to that address instead of showing up in Clearspace. Low level details: the mail.smtp.from property corresponds to the return path header in an email, more information here:
http://stackoverflow.com/questions/154718/precedence-header-in-email
Cheers,
AJ
I found that attachments only post when you are creating content, not replying.
HI Aaron,
I read somewhere that this plugin does not yet work in a hosted environment - please can you clarify?
Thanks,
Philippa
3 things:
1. Are there any documents that outline the enhancements/fixes in the 3.0 version? I noticed in the source that tags can be set from email now, but I haven't seen that communicated anywhere.
2. Also, can somebody update the source code in the svn? The build file doesn't include the lib folder or the readme.html in the .jar. I had the same problem with the 2.5.7 version
3. Are there any plans to include some logging for the plugin? Or if there already is logging, how do I turn it on?
Is there any end-user documentation for this plugin? For instance on the use of BBML like [code]private function xyz() {}[/code] and how that gets rendered in the forums? Or on the way it tries to strip out quoted replies which frequently results in completely empty messags from email users?
The advanced email plugin uses the same logic as the built-in reply via email as far as grabbing the content from messages, are the incoming messages HTML or plain text? can you post an example of the full email (full headers intact) in a thread here in the developer space?
I read somewhere that this plugin does not yet work in a hosted environment - please can you clarify?
Our hosting team will install and configure the plugin for you if you're hosted with us, IOW, there's nothing in the plugin that prevents a hosted installation.
AJ
can you post an example of the full email (full headers intact) in a thread here in the developer space?
I opened the thread .
we just upgraded from 2.5.4 to 3.0.1 and the ESMTP server always replys "553 <documents-community-development@clearspace.dbadirect.com> address unknown." I'm not sure if I missed something during the upgrade or something else... I'm trying to test using telnet to the ESMTP server to rule out all other parts. Any help would be appreciated
I just want to add that I'm seeing the same issue using this plugin with 3.0.4. I'm connecting directly to port 2500 via telnet; the smtp server correctly responds to HELO and MAIL FROM commands, but I receive a 553 "address unknown" response for any recipients.
When trying to upload the Jar file for SBS 3.05 through the admin console, I get "No file was specified"
Great plugin. We have 1 problem though. It works for everyone except me. I'm an administrator of our Clearspace environment and everytime I send a message to post content I get this error
There was a SMTP communication problem with the recipient's email server. Please contact your system administrator.
<xx.xxxxx.local #5.5.0 smtp;553 <xxxxx@xxxxx.xxx> address unknown.>
Other users can send the emails and it works fine
Is there a way we can tag the document that iam trying to post via e-mail ?
I was hoping to auto forward a few documents to a space and have the automatically fall under one of the tag groups based on the title, but that won't work obviously because the document is not tagged.
If you're using Jive SBS 3.0.x and the latest version of the plugin, then yes, you can tag content when publishing via email, simply append:
tags: tag1, tag2, tag3
to the body of the email.
Cheers,
AJ
I have installed the advanced email plugin. We are using sendmail, located on the same machine as the clearspace 3.x instance.
I have portforwarded port 25 to port 2500, and create the two system properties:
plugins.advancedemail.host: web209.mycompany.com
plugins.advancedemail.port: 2500
I am able to send mail when I create new content (through the email server setup, I imagine). however the reply-to address is <jive-1984937049-2005-2-1091@mycompany.com>, and not going directly to the machine that the sendmail instance is located web209.mycompany.com.
if I modify the address: jive-1984937049-2005-2-1091@web209.mycompany.com the email also bounces.
I am running clearspace 3.0.6 and advanced email plugin 3.0.2.
this sounds like a great feature. will it be updated for 4.0 (since we hope to migrate to it soon)?
It was like some thing so very useful for daily of my work. me n my best mate is 2 much into blogging I down loaded this plug in. Me and my mate applied this plug-in at the same day it’s working good in his cell phone but I am facing kinda dilemma in mine. I am not able to see the associated email addresses and after installing it am not able to open http://www.google.com and some other directories http://www.itbusinessdir.com/ is from one of them. Even me n my mate having a same cell and I have followed the instruction properly. This confusion is getting on the nerves.
Great plugin. We need to do something very similar in forums, do you think this code could work there (with modification of course)?
Thanks,
Jay