Author Topic: External alias  (Read 2204 times)

zencos

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
External alias
« on: May 09, 2017, 10:07:13 am »
Hi,

we are using Zentyal 5.0 and we are facing a big problem: we create few mail virtual domains and we want to create few External Alias.
For example
virtualdomain: example.com
all mails to external alias: externaluser@example.com have to be forwarded to external.usermail@gmail.com.

According to the documentation this can be done in "Mail > Virtual Domains > External accounts aliases" but it doesn't work...

Looking in the LDAP tree with a ldapsearch there is no configuration about that alias.
Also postalias -q externaluser@example.com ldap:/etc/postfix/useraliases.cf or
postalias -q externaluser@example.com ldap:/etc/postfix/valiases.cf
doesn't return anything.

Are we missing something?

Thanks for your help

Cos



NooS77

  • Zen Apprentice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: External alias
« Reply #1 on: May 26, 2017, 08:34:46 pm »
I have the same issue, for workarround i have donde this

1. sudo nano /etc/postfix/virtual
2. added the mail addresses to forward. ie   test@mydomain.com   pepe@hotmail.com
3. Save the file and edit the line virtual_alias_maps in /etc/postfix/main.cf. The original is:
     virtual_alias_maps = ldap:valiases     change it to     virtual_alias_maps = hash:/etc/postfix/virtual, ldap:valiases

4. Run: sudo postmap /etc/postfix/virtual, then reload postfix: sudo postfix reload

Then i edit the  /usr/share/zentyal/stubs/mail/main.cf.mas, BUT the changes wont stay betewn resets

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: External alias
« Reply #2 on: May 29, 2017, 07:08:45 pm »
We hope this is fixed without manual workarounds in the new zentyal-mail 5.0.6
Zentyal Server Lead Developer