SQL Server 2014 - DB mail sending Issue - email

DB mail was working fine using SQL Server 2014; however since we moved our email to Office365 online Exchange, we are having issue. Whenever there are rapidly generated emails by our application; then sending emails is stopped with following message:
The mail could not be sent to the recipients because of the mail server failure. (Sending Mail using Account 3 (2018-04-08T08:25:06).
Exception Message: Cannot send mails to mail server. (Failure sending mail.)
Service again starts sending emails automatically after a lag of few hours.
I have already checked email account separately and it is working fine.

This is a limit set by Office 365. Check this image captured from microsoft technet post
Based on your subscription, limits are there for sending total emails per day as well as bulk email at a time. Same has been confirmed in this Microsoft blog question
That's why your task stops sending email for sometime to reset its Recipient limit.

Related

User cannot mail themself via Exchange

We currently experience the problem that a user cannot send a mail to herself.
She get the error that she's not allowed to send e-mails from this address.
(You are not allowed to send on behalf of this user...)
Her e-mail address is AAA#domain.com.
(From AAA#domain.com to AAA#domain.com)
She can:
Send e-mails internally
Send e-mails externally
Receive internal e-mails
Receive external e-mails
We make use of Office 2016 and Exchange 2010 14.03.0399.000
I found out that the local address book was corrupt.
Disabled addressbook, deleted the local file and enabled it again.
This solved the issue

OTRS 3.2.14 - How to know how many mails have been sent on each queue?

Is there any possibility to know how many emails have been sent through OTRS system ? When I try to search it on Google, response are about "How to schedule statistics by mail?" and this is not what I'm looking for.
In OTRS you can configure only one SMTP account to send mail (when you create a ticket or when you response/forward one ticket, you send a mail).
My mail provider is limiting send mail to 200 per hour, but I don't know which queue (which customer) is sending so much mail.
Is there any possibility to have a report under OTRS that shows me how many mails have been sent from each queue per hour ?
My Environment is : OTRS 3.2.14 Windows Server 2012 MSSQL 2012
All outgoing mail is recorded in the OTRS log. On Windows, this would be in <OTRS>/var/log/otrs.log. Just open this file and count the number of sent mails. It could well be that agent notifications are causing you hitting your limits.
Everything is saved in database.
You can use SQL query to determine that.
To get needed information you should join ticket, article and queue tables.

How can I prevent external entity from rejecting emails from a test server?

I am currently working with a client that allows users to generate emails, which are sent to the client's mail server, where they are parsed, content language is added, and they are resent to the recipient.
So, my server basically sends the following:
FROM: sender#myserver.com
TO: receiver#externalclient.com
SUBJECT: hello world
BODY:
|FROM:anyone#anyserver.com|TO:anyoneelse#anyotherserver.com|CC:anycc#anyserver.com|
Dear so-and-so.
Here is the information you were asking for.
Sincerely,
Anyone.
When these emails are sent from our production website (i.e. www.myserver.com) to our SMTP server, they go through without a hitch.
However, when I attempt to send one from our testing websites (i.e. test.myserver.com), they are rejected with the following information:
#5.0.0 smtp; 5.1.0 - Unknown address error 550-'rejecting spoofed message' (delivery attempts: 0)> #SMTP#
Is there any way on our end to get these emails to go through, or do we need to ask the external client to change their configuration to allow us to send emails from other sub-domains?
it has to be the recipient domain to cater the changes.

CRM email not appearing in queues

I have a CRM applicaton with queues setup to receive emails. It is all working as expected except for one exception.
The client is scanning letters that they receive and using a SMTP request via their exchange server to send the scanned letter to the queue in an email message. The message is being delivered to the email address but it is not going into the queue in CRM.
Relaying has been enabled on the exchange server for the CRM system. If the message is sent from a normal email address it enters the queue as expected. There is nothing in the Trace logs or the event viewer on the CRM server to indicate why the message is not going into the queue.
Can anybody provide me with some suggestions as to why this could be happening?
Thanks,
Neil
Turns out the mails weren't entering the mailbox at all

Moving IMAP mail to Gmail and retaining correct times

I am trying to use gmail to manage mail from an email account I have that is imap only. My strategy was to use (getmail to retrieve mail from the server and pass it through to procmail for forwarding.
This almost works. It successfully retrieves the mail and forwards it on to my gmail account. What it does not do it keep the appropriate "sent" times. That is, an email that I received 3 months ago shows up as me having received it at the time it was forwarded.
So the question is, how can I get these mails forwarded and have their original sent times honored?
You may try to enable imap in your gmail account and use imapsync:
http://freshmeat.net/projects/imapsync/