Mulesoft - Can the IMAP connector be used on cloudhub - email

I've created a Mulesoft project using the IMAP connector to retrieve e-mail messages. It works fine running locally via Anypoint Studio. When I attempt to deploy it to cloudhub, I get the following error:
Your application has failed with exception com.mulesoft.mmc.agent.v3.dto.DeploymentException: Failed to start inbound endpoint "endpoint.imaps.jwu.platform.gmail.com"
I understand the limitations with inbound connections to cloudhub. My question is this, Is there a way to make use of the IMAP connector on cloudhub? Or am I better off switching over to the POP connector?

Yes IMAP connector can be used in the cloudhub.
The IMAP Connector, which is configurable only as an inbound endpoint (also known as a message source) with a one-way exchange pattern, implements a transport channel that enables your Mule application to retrieve email from an IMAP email server.
IMAP is similar to POP3, except IMAP supports both online and offline modes. For instance, IMAP users can leave email messages on the IMAP server until they explicitly delete them. Like POP3, IMAP cannot send email; for that, you must implement an SMTP outbound endpoint.
For a secure transport channel (either TLS or SSL), you can specify the IMAPS protocol.

Please try this flow I have deployed successfully in cloudhub
<imaps:connector name="IMAP" validateConnections="true" checkFrequency="1" doc:name="IMAP" deleteReadMessages="false">
<imaps:tls-client path="*" storePassword="*"/>
<imaps:tls-trust-store path="*" storePassword="*"/>
</imaps:connector>
<flow name="imapFlow">
<imaps:inbound-endpoint host="imap.gmail.com" port="993" user="example%40gmail.com" password="password" connector-ref="IMAP" responseTimeout="10000" doc:name="IMAP"/>
<logger message="#[payload]##############" level="INFO" doc:name="Logger"/>
</flow>
</mule>

Related

Configure Fail over SMTP Sever in JBoss Fuse 6.1.0

I am trying to add one more SMTP server as a fail over Server.
Currently I have configured One mail server details and added in System Properties and sending mail Transport.
Is it possible using configuration file ?

MSMQ with transactional support and Transport security

I am looking for a working reference sample MSMQ remote receive and remote send with transactional support and transport level security.
I have looked into Microsoft documentation and it talks about Message Encryption in theory but I couldn't see a sample.
I knew about WCF implementation however it does only MSMQ as a transit during client to server whereas I am looking for a console client to push a message from a server and later the message could be received by some other client from another server.
Thanks in Advance.

How to get namespaces for xmpp server

I know the xmpp server and port. And able connect via telnet.
However, when try to query for creating new user or authenticate (existing user), getting error as invalid namespace.
So how to know what are the namespace and XML tags to be used for a given any host.
XML Namespaces aren't specific to an XMPP server. In general, all XMPP servers follow the same XMPP protocol and start by undergoing normal XMPP stream negotiation as specified by RFC 6120. To see this in action, you can start this process by telneting to teh server and sending a new stream:
<?xml version='1.0'?>
<stream:stream
from='juliet#im.example.com'
to='im.example.com'
version='1.0'
xml:lang='en'
xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
(you'll need to substitute to/from for the appropriate address, of course). The XML namespaces in this start stream element (jabber:client and http://etherx.jabber.org/streams_ are used by all XMPP servers. The server should then respond with its own opening stream; from there you can complete stream negotiation as specified by the RFC.

send/receive mail from OWIN self-host webapp with custom domain

I have a domain, a Console Application with OWIN self-host.
The Console app host on AWS EC2 server windows server 2012.
My mail feature of server is sending Verification Mail
I've google many owin mail send or receive infomation,
but all of them are smtp/pop3 on google or some other smtp/pop3 server.
Is it possible to do send / receive mail in a console with current ip or custom domain?
I've try method.
Use hMailServer:
No luck in this. can't send/receive any mail, and set gmail for add smtp and pop3,
but fail.
the error msg: "We were unable to locate the other domain. Please contact your other provider."
Use AWS SES:
Still fail on this.
AWS SES need vail domain with anyaccount#domain, but i have no mail feature on my server.
Use my gmail:
Connect gmail need SSL. I have no SSL.
And research hours for host ssl on OWIN self-host,
Is there other solution for this?
I set a DNS MX Record from my DNS provider.
Now,I can send/receive mail with hamilserver and gmail smtp/pop3.
not best solution, but my problem solved.

Configuring Outbound email in Alfresco

I have configured Outbound email in Alfresco, by following this link:
http://docs.alfresco.com/4.1/concepts/email-outboundsmtp-props.html
My alfresco-global.properties contains:
### email server config smtp outbound
mail.host=emailserver.domain.com
mail.port=25
mail.username=example#domain.com
mail.password=password
mail.encoding=UTF-8
mail.from.default=example#domain.com
mail.smtp.auth=false
mail.protocol=smtp
mail.smtp.timeout=30000
I get the following error:
No authentication mechanisms supported by both server and client
The same configuration works with Alfresco hosted on a Windows server but doesn't work with Cent OS server.
Any idea what could be the cause ?
Make sure that your email id which you are using to send emails is less secure#
# Outbound Email Configuration
#-------------
mail.host=smtp.gmail.com
mail.port=465
mail.encoding=UTF-8
mail.username=****#gmail.com
mail.password=*******
mail.protocol=smtps
mail.from.default=****#gmail.com
mail.smtps.starttls.enable=true
mail.smtps.auth=true