Receive emails on Amazon EC2 Server
Solution 1
-
A
record that points to your server. -
MX
record that points to yourA
record. - Mail daemon listening on port 25 -- I tend towards Postfix.
- Firewall rules allowing port 25 to accept connections. On EC2, you need to set this in your security groups
Solution 2
I was facing similar problems. I have an MX record set up and the ports unblocked in the security policies, but a port scan still shows port 25 as blocked.
I came across this answer on the AWS forum. It seems that you have to request to specifically unblock your port 25 / 445. http://mxtoolbox.com/ should be useful to test your server.
Solution 3
You'll need an SMTP daemon such as postfix installed, and thus, the ports open from the AWS security group for starters.
Then, you can follow a configuration guide - have a look at the postfix basic configuration guide.
In a nutshell, you'll want to be 100% sure you're not operating as an open rely. Here's a very basic main.cf for simple username based delivery that I use:
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
myhostname = mail.domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = hostname.domain.com, localhost.mydomain.com, localhost
relayhost =
mynetworks = 127.0.0.0/8
#mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_helo_restrictions =
permit_mynetworks,
#reject_non_fqdn_hostname,
reject_invalid_hostname,
permit
Related videos on Youtube
Engioneer
Updated on September 18, 2022Comments
-
Engioneer over 1 year
I'm trying to authenticate to the ACR1255U using a BLED112 through Bluetooth. I have tried sending the commands frames
6B 00 05 00 00 00 CB E0 00 00 45 00
and05 00 0C 6B 00 05 00 00 00 CB E0 00 00 45 00 0C 0A
to theFFF1
characteristic but get no response. I have tried setting up the notifications on theFFF2
characteristic by writing the value0x0003
to the client characteristic configuration (0x2902
), but receive an error.Which is the correct command frame to start authentication for the ACR1255U and how do you setup notifications on the ACR1255U?
Any help is appreciated.
-
wfaulk almost 12 yearsYou probably also want an MX record in addition to or instead of the A record.
-