- Newest
- Most votes
- Most comments
When troubleshooting email delivery issues in Oracle APEX 24.2 on AWS RDS (Oracle 19c), there are several key considerations to address:
- Port 25 Restriction: AWS blocks outbound traffic on port 25 by default in AWS VPCs to prevent spam. This is likely the primary issue if your APEX application cannot send emails while your direct PL/SQL code can (possibly using alternative ports).
Options to resolve this include:
- Request removal of the port 25 restriction by submitting a request to AWS Support using the "Request to remove email sending limitations" form. This process can take up to 48 hours.
- Use alternative ports that aren't restricted, such as port 587 (TLS) or 465 (SSL).
- SMTP Server Configuration: Ensure your SMTP_OUT_SERVER parameter is properly configured for your Oracle RDS instance. You can set this at the session level or as a default using a DB parameter group:
ALTER SESSION SET smtp_out_server = 'mailserver.domain.com:587';
-
UTL_MAIL Configuration: If you're using UTL_MAIL in APEX, verify that the UTL_MAIL option is enabled in your RDS option group and properly configured.
-
APEX-Specific Configuration: Check that your APEX email settings are correctly pointing to the same SMTP server and using the appropriate authentication credentials that work in your PL/SQL tests.
-
Alternative Approach: Consider using Amazon SES with ports 587 or 2587 instead of trying to use port 25. This is often more reliable within the AWS environment and doesn't require special permissions.
Since you mentioned that you can send emails using Google SMTP and AWS SES via PL/SQL, the issue might be specific to how APEX is configured to use these services. Ensure that the APEX application is using the same connection parameters and authentication details that work in your PL/SQL code.
Sources
RDS ORACLE local smtp | AWS re:Post
SMTP Issues on Website | AWS re:Post
Oracle UTL_MAIL - Amazon Relational Database Service
SMTP issue, not able to send out Email through the port | AWS re:Post
answered a year ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago
