1 (edited by Shnoulle 2021-01-18 23:41:30)

Topic: [fixed] Existing mail + alias

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

I move some existing mail server to iRedMail, and i have an issue with : existing account with alias.

I have : an existing account : user@example.org with a mailbox.
This user@example.org have some extra alias : user@example.com.

Finally when a mail is sent to user@example.org it goes to user@example.org mailbox and user@example.com on another server.

Is there a way to do the same ?

Currently i only see a sieve action to do such thing.

With LDAP: Add a mail alias account : i can create only non existing mail user. And with Per-user alias address the alias are local only.

Another solution than sieve ?

Thank you

----

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

2

Re: [fixed] Existing mail + alias

You should use mail forwarding instead, not per-user alias address since the alias address is in different domain.

3 (edited by Shnoulle 2021-01-17 17:54:34)

Re: [fixed] Existing mail + alias

Thank you smile

ZhangHuangbin wrote:

You should use mail forwarding instead, not per-user alias address since the alias address is in different domain.

Then

LDIF :

dn: mail=courriel@example.net,ou=Users,domainName=example.net,o=domains,dc
 =belar,dc=example,dc=org
accountsetting: timezone:Europe/Paris
accountstatus: active
amavislocal: TRUE
cn: Denis Chenu
enabledservice: internal
enabledservice: doveadm
enabledservice: lib-storage
enabledservice: indexer-worker
enabledservice: dsync
enabledservice: quota-status
enabledservice: mail
enabledservice: smtp
enabledservice: smtpsecured
enabledservice: smtptls
enabledservice: pop3
enabledservice: pop3secured
enabledservice: pop3tls
enabledservice: imap
enabledservice: imapsecured
enabledservice: imaptls
enabledservice: managesieve
enabledservice: managesievesecured
enabledservice: managesievetls
enabledservice: sieve
enabledservice: sievesecured
enabledservice: sievetls
enabledservice: deliver
enabledservice: lda
enabledservice: lmtp
enabledservice: recipientbcc
enabledservice: senderbcc
enabledservice: forward
enabledservice: shadowaddress
enabledservice: displayedInGlobalAddressBook
enabledservice: sogo
givenname: courriel
homedirectory: /var/vmail/vmail1/example.net/c/o/u/courriel-2021.01.15.17.5
 1.25/
mail: courriel@example.net
mailboxfolder: Maildir
mailboxformat: maildir
objectclass: inetOrgPerson
objectclass: mailUser
objectclass: shadowAccount
objectclass: amavisAccount
preferredlanguage: fr_FR
shadowlastchange: 18642
mailForwardingAddress: courriel@gmail.example.com
sn: courriel
uid: courriel
userpassword: {SSHA512}……

Just add mailForwardingAddress: courriel@gmail.example.com ?

If yes : i make a pull requet on doc wink

---
Oh yes :

(|(objectClass=mailAlias)(&(objectClass=mailUser)(enabledService=forward))))

4

Re: [fixed] Existing mail + alias

Shnoulle wrote:

Just add mailForwardingAddress: courriel@gmail.example.com ?

Yes. It's mentioned in our document: https://docs.iredmail.org/ldap.user.mai … rding.html