monit sending multiple duplicate emails - monit

set alert bob123#test.com
The problem is when the filesystem goes down multiple duplicate emails are sent that spam my inbox. Is there a way to only send 1 email when the filesystem goes down?

Related

How to Detect Email that Lands in Inbox vs Spam of User with Amazon SES?

I would like to detect emails that arrive in the inbox (vs emails that land in the spam folder) sent using Amazon SES.
I know that I can set up notifications for delivered emails, bounced email, and emails with complaints.
When you get a delivery notification, does it mean that the email landed in the inbox and not in the spam folder, or does it only mean that the email didn't bounce and that the email provider didn't reject the email?
And if it only means that the email didn't bounce, is there a way to know what emails actually land in the inbox vs automatically landing in the spam folder of the user?
There is no way to know this information:
This is not specific to SES, but all email in general.
Each email reading application will handle SPAM in different way.
For example, in GMAIL, items in SPAM folder will not render or download external resources.
You will not be able to detect if a message has never been viewed and in an Inbox -vs- Spam folder.

Mailitem SentOn time in Sent Items folder is not the same in Inbox

My test case scenario is a user sends email to herself, i.e. To and From accounts are the same.
When email is sent, I record the SentOn time of the sent email. I use the Outlook.ItemsEvents_ItemAddEventHandler event handler attached to the Sent Item folder to pick up this time.
Few seconds later, email arrives to Inbox. However, when I get SentOn time of the Inbox email, it is different to the SentOn time of the sent email. The difference is consistent and it is about one second in all my tests. I wonder if it is a normal Outlook 2016 behaviour or I am missing something? Should these SentOn dates be the same for both emails?
Thank you
This is to be expected - for the outgoing messages, PR_CLIENT_SUBMIT_TIME is set based on the current date stamp. On the incoming messages, PR_CLIENT_SUBMIT_TIME is extracted from Date MIME header. The two are not necessarily the same, especially if Exchange server sends the messages.

Preventing an email from being sent to Outlook's Junk folder

I'm writing an application that creates a word document and emails it to a user from our shared mailbox. The code works fine, however the message is delivered to the Junk folder instead of the Inbox.
I believe this is because it's coming directly from the email address (mymailbox#company.com), instead of the mailbox name in our Global Address List (My Mailbox).
Is there a way to get VB.Net to recognize my Global Address List so I can send directly from the mailbox name; or is there another solution to this problem?
You can set the "from" address in mailmessage.from to the proper email address. However, the "from" address is usually not enough to get an email sent to the spam folder.
There are several steps you can take to make it more likely your email gets through. The links in the comment above Rachel Gallen cover these pretty well.
http://www.allspammedup.com/2009/09/7-ways-to-prevent-your-emails-being-blocked-as-spam/
http://www.interspire.com/content/2006/09/28/improve-your-email-delivery-rates/
Just why something ends up in the junk mail is something set by the recipient's email client and/or ISP and not something you have control over. You may be able to maximise your chances of appearing to be non-spam by making your email have fewer spammy characteristics - if you could re-cast your sending system to create the message as an email rather than an attachment this may help.

Qmail - Forward email without attachment

I have pretty standard Qmail toaster installation. I'm using the dot files to set up mail forwarding for my account, so when I recieve an e-mail, this e-mail stays in my mailbox and is also forwarded to another email address. Easy, you say. And yes, it is, it is working fine ... except ... That this another email adress is actually a cell phone number, so I get an SMS notification about each email I recieve.
But, as our phone provider limits the size of an SMS, if I recieve an email with attachment, Qmail tries to forward it to my mobile phone, but this fails, the error message gets back to original email sender and he thinks the email was not delivered at all.
I haven't found any solution to this, but I came to an idea - if there is a possibility to LIMIT the Qmail, so he doesn't forward the specific type of emails (in my case, emails with attachments) ? Or somehow restrict him from sending back the error messages from these forwards ?
Stripmime
http://www.phred.org/~alex/stripmime.html
.qmail-default:
| /usr/local/bin/stripmime.pl | /home/vpopmail/bin/vdelivermail '' myphone#example.com
or
Demime
http://scifi.squawk.com/demime.html (link not working anymore)
.qmail-default:
|/var/qmail/bin/demime -8 myphone#example.com

Track bounced back newsletter emails

I've built a newsletter system which tracks:
Openings
Link clicks
Unsubscriptions
However, I need to find a way of tracking which newsletter emails 'bounced back'.
Has anyone done this before and whats the best way of doing it?
When sending the mail via SMTP you supply the FROM command which is sometimes referred to as the 'Sender' or 'Envelope Sender'. This is separate from the From: header in the email itself. What you want to do is to create a 'bounced' mailbox and set that as the 'Sender' for the email. If there is a bounce, then most mail servers will send a (NDR) notification back to this sender.
Then you need to periodically check this mailbox for NDR's and parse them for the original recipient and if it was a hard or soft bounce. There are various libraries that can do this for you such as ListNanny