Page 1 of 1

2 email server - 1 address - 1 inbox

Posted: Sun Feb 10, 2019 4:55 pm
by pipoy
I run 2 servers.

1. Email server
2. Application server - E-commerce website

Both have the same email address
[email protected]
Application server sends system emails to my customers if ever they register, or buy something.
And I, as admin, receive emails from the system as well

I configured the DNS settings in my domain registrar to have the email, [email protected], to receive by Email Server.
So far that is working well.

If you send an email to [email protected] - Email server receives it
If you are the customer and replied to the system emails, [email protected] - Email server receives it

However, if Application Server sends an email to [email protected], it goes to its own inbox in Application Server.
So scenarios,
If system sends admin email to [email protected] - It goes to Application server inbox
If emails are bouncing - It goes to Application server inbox.

I want a solution where I can have both Inboxes in email server.

I fixed this issue by using an external SMTP server for the Application server. But website becomes slow if it tries to send an email. Perhaps because of connection and authentication. So I want to get away from that

So I think this is just a TXT or SPF or MX record setting issue. Which I hope someone can help me resolve.

Re: 2 email server - 1 address - 1 inbox

Posted: Fri Apr 12, 2019 8:05 pm
by dreiggy
Hi,
it is because server first try to deliver email locally and don't check mx record, because exim know, that that domain is local. To resolve this issue you should remove symlink of your domain in /etc/exim/domains.