exchange-server

Is the UID provided by MS Exchange POP3 UIDL command truly unique?

≡放荡痞女 提交于 2019-12-05 08:19:50
I'm using Net::POP3 in Perl to iterate through a mailbox on an MS Exchange server. I run the UIDL command on each message number and compare the ID returned to previously-seen IDs to see if I've dealt with this message in the past. However, I'm also finding that within an individual POP3 mailbox, the same UID seems to come up multiple times for different messages. Any idea why this might be happening? Is the UID not truly unique? Or are the messages somehow being duplicated within the same mailbox? The RFC says: While it is generally preferable for server implementations to store arbitrarily

Can't Retrieve Resources (rooms) from Exchange Web Services

喜夏-厌秋 提交于 2019-12-05 07:53:16
I'm stumped. I'm using Exchange Web Services to retrieve calendar information from both my local and other calendars in my company, but the ".Resources" are always empty. We use Resources to store conference room information. Interestingly even ".RequiredAttendees" is empty, but I can retrieve values from the ".DisplayTo" and ".DisplayCc" without issue. Any suggestions? I have included a cope snippet below for reference. CalendarView calendarView = new CalendarView(startDate, endDate); Mailbox mailbox = new Mailbox(mailboxSMTP); FolderId calendarFolder = new FolderId(WellKnownFolderName

Cant emails through exchange: An existing connection was forcibly closed by the remote host

若如初见. 提交于 2019-12-05 07:21:37
问题 I just noticed that some of the email operations in my code have been failing and am trying to fix it up, however I keep getting the following error: System.Net.Mail.SmtpException: Failure sending mail. ---> System.IO.IOException: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host at System.Net.Sockets.Socket.Receive(Byte[]

Is there a Perl module to monitor an email queue?

ぐ巨炮叔叔 提交于 2019-12-05 07:18:59
I'm working on an issue tracking system and would like the application to handle email replies. That is, I would like a script that can monitor an email queue and perform some action based on the email contents. It should then be able to delete the email, etc. I currently use MIME::Lite to send email, and I can handle writing the script etc. (read: I'm not new to Perl). However, I have no idea what modules are good for doing this particular task. I'd like to get started on this as quickly as possible so I hope to narrow my search space for possible modules. In case you need to know, the

Exchange server will not accept username/password provided with javax.mail API

对着背影说爱祢 提交于 2019-12-05 06:51:01
问题 I have a lovely little Java client that sends signed email messages. We have an Exchange server that requires username/password authentication to send a message. When I connect to the exchange server, I get this error: avax.mail.AuthenticationFailedException: failed to connect at javax.mail.Service.connect(Service.java:322) at javax.mail.Service.connect(Service.java:172) When I connect to other servers (Unix servers), I have no problem. Below is the full debug trace. I can't figure it out.

Download attachments using Exchange Web Services Java API?

こ雲淡風輕ζ 提交于 2019-12-05 05:56:57
I am writing a Java application to download emails using Exchange Web Services. I am using Microsoft's ewsjava API for doing this. I am able to fetch email headers. But, I am not able to download email attachments using this API. Below is the code snippet. FolderId folderId = new FolderId(WellKnownFolderName.Inbox, "mailbox@example.com"); findResults = service.findItems(folderId, view); for(Item item : findResults.getItems()) { if (item.getHasAttachments()) { AttachmentCollection attachmentsCol = item.getAttachments(); System.out.println(attachmentsCol.getCount()); // This is printing zero all

com.sun.mail.smtp.SMTPSenderFailedException: 550 5.7.1 Client does not have permissions to send as this sender

眉间皱痕 提交于 2019-12-05 05:53:07
i am trying to send email from an application email (exchange server) and appear for the user as it was sent from another email using javamail , i am using the following code: public void sendEmail(String from, String to, String subject, String emailBody) throws Exception { try { emailHostSMTPs = MessageProvider.getConfig("email.host.smtps"); emailHostSMTP = MessageProvider.getConfig("email.host.smtp"); emailProtocol = MessageProvider.getConfig("email.protocol"); senderEmail = MessageProvider.getConfig("email.sender"); senderPassword = MessageProvider.getConfig("email.password"); senderUser =

Dead letter exchange RabbitMQ dropping messages

白昼怎懂夜的黑 提交于 2019-12-05 04:54:59
I'm trying to implement a dlx queue in RabbitMQ. The scenario is quite easy I have 2 queues: 1) alive 2) dead (x-dead-letter-exchange: "immediate", x-message-ttl: 5000) and an exchange "immediate" that is bound to 1) alive I tried to run this example: http://blog.james-carr.org/2012/03/30/rabbitmq-sending-a-message-to-be-consumed-later/ but it seems that the messages are dropped after the ttl expires and they dont get published on the exchange, so my alive queue is always empty. I also tried to create the queues by hand in the management console and I get the same behaviour. I tested it with

Exchange Web Services: Finding emails sent to a recipient

拜拜、爱过 提交于 2019-12-05 02:47:31
I'm using Exchange Web Services to connect to a mailbox and look for messages matching certain criteria, using FindItems with a SearchFilter . I can get emails in a mailbox filtering on 'from' email address like this: var service = new ExchangeService(ExchangeVersion.Exchange2010_SP1) { TraceEnabled = true, Credentials = new WebCredentials(username, password) }; var filter = new SearchFilter.ContainsSubstring(EmailMessageSchema.From, "some@email.com"); service.FindItems(WellKnownFolderName.Inbox, filter, new ItemView(50)) And I can filter on the DisplayTo property like this: var filter = new

Get inbox message from Exchange server using .net

余生长醉 提交于 2019-12-05 01:53:21
问题 Anybody knows how to do this? I need to create a service that will connect to the exchange server and download the messages ever x minutes... thanks! 回答1: You'll probably want to use WebDAV. Here's a good article on the subject Also, here's the MSDN reference on the Exchange Store 回答2: Which version of Exchange Server are you using? If it's 2007, you could use the web service API. The FindItem method will let you access items in a specific folder. 回答3: Or again if its 2007 you can use