Too many connections in an email system in a2 hosting - laravel-5

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.

Related

Azure App Service Custom Domain limitation

We work with Azure App Service and custom domain feature to set the websites of our clients to our App service (with appropriate SSL for sure) The limitation of custom domain seems to be 250 or 500? Someone has the truth? We products is a SAAS and the growth of our business depending to.
Thank you
The number of custom domains per app is 500. See this doc for all limits per App Service Plan tier.

My AWS SES account got suspended since somebody used my SMTP credentials for spamming

I have a Laravel 7 based application that lets people sign up for an event. I have used AWS for hosting the application and AWS SES for sending emails. After a couple of days of setting up this application, AWS suspended my SES service saying that somebody spamming using the sender email account I have used in the Laravel App for sending emails.
When I checked the SES dashboard I was able to see that there were 50000+ emails sent from that email address without my knowledge. I'm using SES for a long time in my other applications and never faced such an issue. This is something new for me. This is my first Laravel App and hence I'm not sure how the spammers got the SMTP credentials from my code. I'm storing SMTP credentials in the .env file and using bitbucket as the repository. It is a private repository only. One mistake I did was I accidentally pushed the .env file of the Application to the bit bucket repository but which is a private repo.
Does anybody have similar experiences with Laravel and SES? Anybody got a hint of what I'm doing wrong here?
I later realised that I have accidentally stored a copy in the .env file. I removed it from there and it resolved the issue.

Integrating Amazon SES with Sendmail to EC2 Server

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.

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