Integrating Amazon SES with Sendmail to EC2 Server - amazon-ec2

I am trying to integrate SES with Sendmail in My EC2 Server.
I looked this documents and followed steps, but didn't work out.
http://docs.amazonwebservices.com/ses/latest/DeveloperGuide/SMTP.MTAs.Sendmail.html
I hoped to see video, but there wasn't anything about this one.
I couldn't even find a good article or blog about this.
Can you help me out? I just need to set up Sendmail via SSH.

This is now possible -- log into your AWS Console, to the SES Dashboard, and you'll see a section titled "SMTP Settings" on the lefthand nav. There you will find instructions and a mechanism to create your own SMTP credentials.
At that point you will need to set up your Postfix or Sendmail to act as a relay for outbound mail, redirecting it to the AWS SES Service API.
HOWEVER a few caveats:
You won't be able to use this as some normal SMTP gateway or outbound mail host unless you were to verify any possible sender for mail headed out of your instance. A more ideal case for this is a vendor who sends out large marketing mails to its customers, or a service that pushes out mail on a subscription or alert basis, all of which come from just one or a small handful of addresses.
Also, using SES means you'll have to live by AWS's thresholds, even once you've requested production access. An AWS engineer told me in training that they generally keep an eye on your mailflow and any bounces or rejects, as well as complaints made about your mail, and so long as things look good they will continue to throttle you up in that regard.
Good luck to you.

Related

Too many connections in an email system in a2 hosting

In my Laravel web application, when I send a message to all registered users, an exception occurs saying there are too many connections.
Some posts say I should change grep smtp_accept_max in the service configuration.
Where can I find that configuration in a2 hosting cpanel?
I'm on A2 too. It's not possible to change this setting through cPanel. But you can create you own php.ini as explained here.
There are couple of things to consider. A2 is not a fan of bulk email sending from their servers, as explained in their TOS. I had a warning once and was suspended.
(The mail service of your Lite Web Hosting - Singapore account with username xxxxxxxx on sgss2.a2hosting.com has been suspended. The suspension is due to large volumes of email sent from the account.)
In time, as your website grows, you will have to rely on 3th party services, as the very affordable Amazon SES functionality or mailgun. Personally I use SES in combination with the (since 5.7) Laravel Email Verification method. SES is not a fan of bouncing emails. Above a certain percentage they could suspend that service to you.
If the volume is reasonable, you could for now either loop the emails one by one in a PHP loop or create a queue.
It looks like changing the value of smpt_acceps_max could simply ignore higher volumes.
Hope it helps.

Multiple webhooks in Parse.com

As of Parse's announcement of Cloud Code Webhooks, I've build my own server environment instead of using Parse Cloud Code.
I'm running my server locally, changing the Parse webhook to point at my ngrok tunnel, as described here.
This all works great, but one problem arises when more people from my team, has to work on the server, on the same time. Since the webhook to Parse only can (AFAIK) point to one single webhook URL, we can only have one server running, pointing to its localhost address, through ngrok.
Is anyway to create a workaround for this problem?
Feel free to ask my elaborate on any of my points.

GMail Api Socket Timeout from AWS

We've been developing a system that integrates with the GMail API via the Java SDK. The implementation works well when hosted outside of AWS. But when the same code is placed into our AWS EC2 instances, we receive socket timeouts (even with 6 minute timeouts) about 50% of the time. We have done extensive firewall, routing, and proxy checks - but have found nothing that should cause an issue. We integrate with many other similar APIs (including Google Drive) and none of them exhibit this problem. There are no errors shown in the GMail API developer console.
Is there some sort of rate limiter for AWS based GMail API clients?
Can someone from the GMail API team help me troubleshoot this connectivity issue?

How would you configure a catch-all email system using Google Apps?

Using Google Apps for your Domain, is it possible to set up a catch-all address to act as a proxy for various other addresses on a hypothetical virtual mailbox system and, if so, how would you go about setting this up?
Set up Google Apps so that all mail delivered to a non existant address gets sent to a certain address, log into that mailbox via POP, download all mail addressed to x#your-service.com
You might try the free service described at http://groups.google.com/group/google-appengine/browse_thread/thread/7f48e15a7cedafa6 ; I believe the ability for app engine to directly receive email is on Google's roadmap, but I don't know when it's scheduled to appear, or whether it will be available for free, etc, etc.

Windows server 2008 SMTP service using for website

I am working on .net applicaton that need to send emails to clients. I am trying to figure out what would be that best solution to send emails. Here is what i have considered. Could you please suggest what would be the best way to go for?
1>Windows server 2008 in built smtp
service.
2>Exchange server hosted in our
datacenter.
3>Use google apps for sending
emails(Basically same as gmail like
for custom domain).
I have explored all options and below are findings.
1>I think would be way to go. Also
supports drop in directory to send
emails so can achieve disconnected
email activity.
2>Application would be tied up with
availability of exchange server and
we dont have any exchange server
support personal. Only developers
poke around in exchange server and
got it working. So if option 1 is as
good as 2 then would like to go with 1.
Is there any drop in directory feature in exchange server like 1?
3>Tried gmail smtp stuff didnt
work. I was receiving timeout error.
Also there is no guarantee that
gmail will send our mail
reliability. They can decide anytime
to stop sending our mails as we are
using free standard version of
google apps.
Other questions:
I installed smtp service in windows server 2008. Now to use this do i need to change any MX record and anything? What i need to do so it can send email using my domain name. Or it can send email for any domain?
I would use a hybrid of 1 and 2. Use local SMTP, but have it relay to your exchange server. Emails will queue if it can't relay to exchange and you have one server(s) that handle all of your outgoing/incoming mail. This support doc explains this setup: http://support.microsoft.com/kb/303734
You only need an MX record if you'll be receiving mail from that domain too.
I would also put in a reverse DNS entry for your domain, which will help with spam detection.

Resources