AWS Pinpoint - Both 'Campaign' and 'Test messaging' fail to send email - aws-pinpoint

I followed the following guide to setup an AWS Pinpoint project:
https://docs.aws.amazon.com/pinpoint/latest/userguide/gettingstarted-create-campaign.html
After I launch the campaign, the email is not sent (I chose 'immediately'). So, I checked 'Test messaging'. It also failed to send mail. I had already activated my sender email address.
The campaign analytics says:
Messages sent - 1
Messages delivered - 1
Delivery rate - 100%
Email open rate - 0%
Bounce rate - 0%
May I know why the mails are not delivered by AWS Pinpoint please?

This is my be due to Sandbox mode having following restrictions:
Limitations Of Sandbox Mode :-
You can send an email only from verified addresses and domains
addresses that are associated with the mailbox simulator. maximum of
200 messages per 24-hour and maximum of one message per second.

Related

Send an alert when memory and cpu on linux VPS

I have a private linux vps and want to monitor it by sending email when memory or process usage is high.
Is there any free service to send email ? (solution like Sendinblue are requiring profesionnel account)
Other method to monitor vps are welcome too.
I've used HetrixTools and was satisfied with it. They have instructions for you to install an open source agent on your VPS which then sends data to your HetrixTools dashboard.
You can then set up alerts based on different criteria (like RAM or CPU usage) and also "Contact Lists" which include different services (like email and Telegram messages).
Whenever one of your criteria is met, you will receive a notification.
Disclaimer: I've no affiliation with HetrixTools.

When sending e-mail to "self" using gmail API, how do you determine when/if message will arrive?

I'm using google's latest python libraries to send/receive e-mails to self (i.e., to and from fields are the same as the user account being used to send) to collect network performance metrics.
When I send a message, a 'msgId' is created which can be used to track the message that was sent. I can then subsequently delete (or trash) that 'msgId'. However, from time to time, AFTER I delete the msgId, the same message seems to "arrive" but is given a different msgId. If I wait sufficiently long enough period (10-15seconds) between sending and deleting, I only ever see the same msgId as returned by the user.message.create(), the delete is successful and only ever see the single msgId.
I believe there may be some kind of race condition whereby when sending within GMAIL (or perhaps only when sending to self), it uses the same message instance for both the sent and received message...and if the sent message is deleted before it is actually received, a new msgId is created for the received msg.
Question: Is there a way to determine whether a sent message (to self) has been received and can be deleted without risk of the message being received later and a new msgId generated?
I've tried moving the sent message to TRASH and then poll the message to receive the label for 'INBOX' without avail.

How to send Alert SMS to multiple numbers and collect response using Twilio Studio and Functions

Alert is originally generated by external system and it is routed to Twilio (incoming SMS message). Twilio provides smart, prioritized SMS alerting for group of receivers. I have used Twilio Studio to implement the basic flow.
In the beginning, there is only a few numbers on receiver list and each of them is receiving an SMS, that is send by Twilio flow (I have used Twilio functions to send these outbound SMS messages) . If any receiver accepts to handle alert root cause (by pressing 1) the system logs the data, distributes that information to other on receiver list and stops repeating alerts. If receiver skips the alert (by pressing 2), the system logs the information and does not send any more alerts for this specific receiver. If there is no reply at all or if answering receivers have only selected 2 (skipping), the system increases new numbers to group of receivers and repeats the alert distribution (except numbers that have skipped). This is done a few times in configurable interval e.g. 10mins or until alert is accepted by some of the receivers. Group of receivers may be increased in all rounds. In the end, summary message is sent to all receivers (e.g. alert not accepted/number XXX accepted).
So my problems are 1.) how to collect answers (accept/skipped) from received SMS messages and 2.) how to implement that 10min pause to Twilio flow.
For problems, I'm thinking of following options:
By using Twilio Functions call from Studio flow, read all inbound message resources from Programmable SMS API. "inbound messages received during last hour, to my TwilioNumber, and from receiver that belong to list of receivers" and figure out then message by message, what belong to this flow? Is there anywhere an example how that is done?
Maybe it would be possible to pass each outbound SMS message through REST API back to Studio Flow and use "Send and Wait for Reply" widget - If this would be possible it would solve also the next problem pausing/delaying the studio flow.
How to stop/delay studio flow execution after each SMS group message has been send, e.g. for 10 minutes (or until someone accepts the alert by replying with "1"). Can I do it inside Studio flow, is there pause/wait function somewhere. Or should the delay be implemented otherwise. Any examples, how it is done.
Thanks in advance

FreeRadius , How to exclude certain urls from accounting packet

I have many users doing Authentication + Accounting packet sent from Network Device [LNS] to freeradius server.
in the accounting packet, client send's how much KB used in their current session.
I have a limit for each user and this limit gets decreased on each accounting packet sent and i stop the user when their limit is reached .
how can I exclude certain URLs from being added into Accounting Packet .
You cant do it on RADIUS - it only recieve that NAS sends to it. You can do in on few network access types, that uses queues to account, ie hotspots, by adding walled garden rule. But not l2tp - it sends bytes on interface.
Usual way to account this is NetFlow. It sends accounting data for each connection.

Pusher API - Messages Per Minute

I implemented Pusher API in a live chat recently.
I launched a Startup package of Pusher yesterday. After 4 hours of being live, I receive an email that my account is reaching the cap on usage.
I logged in and looked at the stats, to discover that the Messages per Minute were between 5,000 and 20,000.
I don't understand how this is possible. I have around 100-150 connections open.
Why is the message count so high?
Armin
Found the answer myself! :)
Here is the link for anyone who may have the same problem:
https://pusher.tenderapp.com/kb/accountsbillingplanspricing/how-is-my-message-count-calculated
Basically, if you have 100 users subscribed into a channel, and 1 message is sent, it counts are 100 messages being sent since each user would have to be notified.
Bottom line is to properly filter your channels.

Resources