1

Topic: Mail loops back to myself

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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?
- Related log if you're reporting an issue:
====

So, i have set up iredmail in iredadmin with 2 domain, one is domain.com and another is domain.net

The domain.net is used for testing / development purposed so since the mail server launched, we stopped using it anymore, hence it was disabled in iredadmin.

And now we're facing problem that we just knew:

Everytime we wanted to send email from domain.com to domain.net i always received mailer daemon which is

"Undelivered Mail Returned to Sender"

Mail for domain.net loops back to myself

What to do? Here's my postfix main.cf file:

smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
myhostname = domain.com
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases
myorigin = domain.com
mydestination = localhost, localhost.localdomain, domain.com
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_protocols = all
virtual_alias_domains =
mydomain = domain.com
allow_percent_hack = no
swap_bangpath = no
mynetworks_style = host
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = yes
smtpd_tls_protocols = !SSLv2 !SSLv3
smtp_tls_protocols = !SSLv2 !SSLv3
lmtp_tls_protocols = !SSLv2 !SSLv3

----

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

2

Re: Mail loops back to myself

Please DELETE disabled domain 'domain.net' instead.

NOTE: please ALWAYS show us basic info of your iRedMail server, so that we can give you accurate answer, it helps you (not me) a lot.

==== Required information ====
- iRedMail version (check /etc/iredmail-release):
- 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?
- Related log if you're reporting an issue:
====