1 (edited by fmjianu 2019-05-31 15:49:30)

Topic: domain relay to other server if user don`t exist on local server

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release):  v0.9.8
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: CentOS 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- 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.
====

Hi,
i have a full working server with 5 domains. ONLY for ONE domain, when the email arrive, i need to check locally if destination user exists. If exists, deliver mail, if not exists, send to alternate host. can you guide me to make this changes?
Thanks

2

Re: domain relay to other server if user don`t exist on local server

nobody can help me?

3 (edited by Neutro 2019-06-07 17:46:02)

Re: domain relay to other server if user don`t exist on local server

Hey,

In my humble opinion it seems that what you are asking goes against how regular internet e-mail system works.

The rule of internet e-mail is: you send an e-mail to someone, and either that address exists and the mail is delivered or the address does not exist and you receive a delivery failure message back.

If you try to change this you might make ppl send mail to other ppl by mistake without them beeing able to even know their mail was misdelivered.

So I think the best solution to your problem would be to make an up to date directory avariable to your users so they can find the right address they need to send to instead of trying to deliver to another domain in case the first one didn't work out smile

4

Re: domain relay to other server if user don`t exist on local server

You can tune Postfix config file to return a transport like "smtp:[xx.xx.xx.xx]:25" for non-existing addresses.

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee