How to use sendmail on amazon ec2 linux server
13,945
Assuming your firewall,confs, and so on are A-OK you shouldn't be using EC2 for anything email related.
Large swaths of the EC2 netblocks are more or less permanently blacklisted (or severely penalized) by several major email providers.
And on top of that Amazon blocks most of these as well.
There's a particular form that you can fill in to request the removal of those limitations That won't remove you from the blacklists of other e-mail operators though.
It would be a bit better to use SNS but what you'd definitely want is Amazon SES (Simple Email Service) although it's in beta.
Related videos on Youtube
Author by
Pandora
Updated on September 18, 2022Comments
-
Pandora over 1 year
I am using
amazon Ec2
instance withcentos 6.4
. I tried this and i got errorecho "hello" | sendmail [email protected] sendmail: Cannot open mail:25
How can i fix that error
Some more info
$ ls -l /usr/sbin/sendmail 139512 lrwxrwxrwx 1 root root 21 Jul 1 15:13 /usr/sbin/sendmail -> /etc/alternatives/mta $ man mta No manual entry for mta
-
Pandora almost 11 yearsI have edited my question for more info. Alhtough i should use SES but atleast i should be able to send email. how can i make send mail working. what configuration i need to execute
-
ceejayoz about 8 years@Pandora You should configure Sendmail to pass its email through SES.
-
jeffmcneill over 6 yearsSES is not required for EC2 smtp. "Should" is not the appropriate context here, rather "could". Amazon does not "block most of these as well" presuming you mean EC2 netblocks.