Topic: Can not communicate with the email address with other domains
==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.7.0
- Deployed with iRedMail Easy or the downloadable installer? Installer
- Linux/BSD distribution name and version: Ubuntu 24.04 LTS noble (on my raspberrypi5)
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- Web server (Apache or Nginx):Nginx
- Manage mail accounts with iRedAdmin-Pro? No
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello!
I have installed iRedMail server successfully earlier today. When I tested with two email addresses that both have my domain, it worked well.
However, when I try to send an email to my gmail(or any other mail), the recipient will never receive the email. I am new to the mail-box server so I didn't know that I have to map my domain to the public ip (not internal ip). But after I changed the related files to map to the public ip, I can not access the Roundcube web for my server (Error: This site can’t be reached).
Here is the configurations of my files:
00-default-ssl.conf
```
server {
listen 8443 ssl http2;
listen [::]:8443 ssl http2;
server_name _;
root /var/www/html;
index index.php index.html;
include /etc/nginx/templates/misc.tmpl;
include /etc/nginx/templates/ssl.tmpl;
include /etc/nginx/templates/iredadmin.tmpl;
include /etc/nginx/templates/roundcube.tmpl;
include /etc/nginx/templates/sogo.tmpl;
include /etc/nginx/templates/netdata.tmpl;
include /etc/nginx/templates/php-catchall.tmpl;
include /etc/nginx/templates/stub_status.tmpl;
}
```
00-default.conf
```
server {
# Listen on ipv4
listen 8080;
listen [::]:8080;
server_name _;
# Redirect all insecure http:// requests to https://
[unchanged]
}
```
I changed the port because I need to configure my router to redirect the port to 8080 & 8443 (80 was occupied). I also configured my DNS so that the A record's value is my public ip.
There is another thing that might cause problems, I can not access 8080 & 8443 ports from the internet (not under my wi-fi) by "my_public_ip:8080" or "my_public_ip:8443", even though I am sure that the firewall was configured correctly.
If anyone could kindly offer any suggestions or help, it would be truly great and I really appreciate it!
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.