1

Topic: Unable to send outgoing email from AWS EC2 instance

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):
- Deployed with iRedMail Easy or the downloadable installer?
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Web server (Apache or Nginx):
- Manage mail accounts with iRedAdmin-Pro?
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

- iRedMail 1.6.4
- Downloadable installer
- Debian 12 Bookworm
- MariaDB
- Nginx
- No, use iRedMail admin panel

We have setup iRedMail on an AWS EC2 instance running Debian 12 Bookworm, and are attempting to send outgoing mail to outside e-mail addresses (internal use is working), but outgoing ports are being blocked by AWS to prevent spam.

I have applied to remove restrictions twice, and both times have been denied, so we're thinking that we need to change the ports to something else. We're unsure why we were disqualified, but I assume they want to encourage people to use AWS SES.

How would I go about doing this, and any suggestions on alternate ports? I know that I can add a new submission port in /etc/postfix/master.cf, but I'm unsure how to go about changing the default ports and what best practices here would be.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Unable to send outgoing email from AWS EC2 instance

We spent so much time trying to get our CRM working on AWS EC2 that we have finally given up and migrated to a hosted CRM solution with Fastmail as the e-mail provider.

I'm still curious how one would have done this as it would be useful to know for possibly setting up iRedMail on EC2 in the future.

Thanks in advance.

3

Re: Unable to send outgoing email from AWS EC2 instance

AWS blocks port 25 by default, and there's no way to switch to other ports -- because all email servers communicate on port 25 and not negotiable. We mentioned this in installation guide:
https://docs.iredmail.org/install.iredm … quirements

You can switch to another VPS vendor which allows port 25. We use Linode for years.