1 (edited by demo 2016-10-26 22:31:07)

Topic: Transport all mail to the interanal mail server

==== Required information ====
- iRedMail version (check /etc/iredmail-release):  0.9.5-1
- Linux/BSD distribution name and version: Centos 6/8
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I am trying to transport all mails for domain "re.domain.com" to the internal server
For this, I added this domain using IRedMailAdmin and after that in PhPMyAdmin I changed `transport` from devecot to smtp:[192.168.1.7]:25

But when I try to send email for this domain, I am getting - "Recipient address rejected: User unknown in virtual mailbox table;"

And yes,
postmap -q 're.domain.com' mysql:./transport_maps_domain.cf
giving me
smtp:[192.168.1.7]:25

----

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

2

Re: Transport all mail to the interanal mail server

With transport 'smtp:[xx]', mail accounts must exist on your iRedMail server. If you just want to relay to another server, try sql commands below:

USE vmail;
UPDATE domain SET transport='relay:[192.168.1.7]:25',backupmx=1 WHERE domain='<your_domain_here>';

3

Re: Transport all mail to the interanal mail server

Thx a lot. I all ready added to
"virtual_mailbox_maps"
ldap connection to my internal Exchange server to check if user exist on it

If someone need it, my connection looks like

server_host = 172.16.2.65
version = 3
server_port = 389
timeout = 60
search_base = dc=domain, dc=com
query_filter = (&(proxyAddresses=smtp:%s)(|(objectClass=user)(objectClass=group)(objectClass=contact)(objectClass=publicFolder)))
leaf_result_attribute = mail
result_format = %s
result_attribute = cn
special_result_attribute =
scope = sub
bind = yes
bind_dn=user
bind_pw=password

4

Re: Transport all mail to the interanal mail server

demo wrote:

(proxyAddresses=smtp:%s)

Maybe you should use "proxyAddresses=%s" directly, so that you can use different transport like 'smtp:', 'relay:'.

5 (edited by demo 2016-10-28 18:48:46)

Re: Transport all mail to the interanal mail server

Yeah, thx a lot smile

May I ask one more question? I just installed latest iRedMail, and in mysql I see some new columns in alias table, its 'is_alias' and 'alias_to', for what they will used?

6

Re: Transport all mail to the interanal mail server

demo wrote:

May I ask one more question? I just installed latest iRedMail, and in mysql I see some new columns in alias table, its 'is_alias' and 'alias_to', for what they will used?

Per-user alias address.

Mentioned in iRedMail-0.9.3 upgrade tutorial, also contains sample usage:
http://www.iredmail.org/docs/upgrade.ir … asalias_to