Author Topic: Zentyal 5 454 4.7.1 relay access denied on virtual domains  (Read 5542 times)

happnatious1

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Zentyal 5 454 4.7.1 relay access denied on virtual domains
« Reply #15 on: February 27, 2017, 04:07:18 am »
WORKAROUND - for me was solution to mofify mas template
edit /usr/share/zentyal/stubs/mail/main.cf.mas and add your domain to parameter mydestination

original my destination look like
Code: [Select]
mydestination = $myorigin,$myhostname,localhost,localhost.$mydomain,$mydomain
after change (for domain acme.com)
Code: [Select]
mydestination = $myorigin,$myhostname,localhost,localhost.$mydomain,$mydomain,acme.com
And you need to restart Mail service thru zentyal web dashboard

I think that problem is in parsing $mydomain parameter but I don't know where is it ...

This worked for me, Thanks!

J. A. Calvo

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1986
  • Karma: +67/-3
    • View Profile
    • http://blogs.zentyal.org/jacalvo
Re: Zentyal 5 454 4.7.1 relay access denied on virtual domains
« Reply #16 on: February 27, 2017, 10:59:47 pm »
In the new zentyal-mail 5.0.5 domains are explicitly added to mydestination in main.cf, could you please confirm if upgrading to the new version solves the issue without having to modify the template manually? Thanks!
Zentyal Server Lead Developer

timroijers

  • Zen Apprentice
  • *
  • Posts: 34
  • Karma: +4/-0
    • View Profile
Re: Zentyal 5 454 4.7.1 relay access denied on virtual domains
« Reply #17 on: March 01, 2017, 12:01:29 am »
confirmed!

/etc/postfix/main.cf is now updated without manually adding it to the stubs file.

happnatious1

  • Zen Apprentice
  • *
  • Posts: 23
  • Karma: +0/-0
    • View Profile
Re: Zentyal 5 454 4.7.1 relay access denied on virtual domains
« Reply #18 on: March 01, 2017, 01:41:33 am »
Just updated and rebooted and I'm still getting mail from my one and only virtual domain.  Mark it [SOLVED]?   :-\

nontrivial

  • Zen Warrior
  • ***
  • Posts: 181
  • Karma: +16/-0
    • View Profile
Re: Zentyal 5 454 4.7.1 relay access denied on virtual domains
« Reply #19 on: March 01, 2017, 03:18:26 pm »
I was always getting mail to the virtual domains, my problem was virtual domain aliases. How it used to work is if you had a.com as virtual domain you could add aliases for b.com and c.com an email to x@b.com and x@c.com would be delivered to x@a.com. That hasn't worked for me since upgrading to 5.0.

itmakovec

  • Zen Apprentice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Zentyal 5 454 4.7.1 relay access denied on virtual domains
« Reply #20 on: March 10, 2017, 04:24:55 pm »
5.0.5 adding <% join(',', @vdomains) %> , which apparently solved this issue for you, has broken something else for me
Quote
Mar 10 15:32:28 posta postfix/smtpd[15614]: NOQUEUE: reject: RCPT from localhost[127.0.0.1]: 550 5.1.1 <user@virtual-domain>: Recipient address rejected: User unknown in local recipient table;
my solution: removing vdomains from mydestination https://forum.zentyal.org/index.php/topic,4688.msg105749.html#msg105749
found another IMHO related alternate solution: https://tracker.zentyal.org/issues/5239

Kindly advice, please.
« Last Edit: March 10, 2017, 04:42:35 pm by itmakovec »