1

Topic: sending to same domain outside server

==== Required information ====
- iRedMail version (check /etc/iredmail-release): iRedMail-0.9.7
- Linux/BSD distribution name and version:  Ubuntu 16.04.1 LTS
- 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 somebody using the same domain outside the mail server but i can't send to it.
I have tried : sql> INSERT INTO sender_relayhost (account, relayhost) VALUES ('user@domain.com', '[my.isp.smtp.mail.server]:25'); but the mail is not send to the user.

Error : NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <test@domain.com>: Recipient address rejected: User unknown in virtual mailbox table; from=<me@domain.com> to=<test@domain.com> proto=ESMTP helo=<localhost>

It worked fine on my old synology mail server

Is there a easy fix for this ?

----

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

2

Re: sending to same domain outside server

Try this:

*) Create it as a normal mail user
*) Set a per-user transport/relay to your outside server. FYI: http://www.iredmail.org/docs/per-account.transport.html

3

Re: sending to same domain outside server

thx you very much.

i added the line to the sql and is working smile