Koozali.org: home of the SME Server

Email changing to hostname.domain.net

Offline Warbird30

  • 19
  • +0/-0
Email changing to hostname.domain.net
« on: July 14, 2022, 08:59:38 AM »
Not sure why, but after upgrading to SME 10, emails are going out as 'username@hostname.domain.net'.  Previously they went out as 'username@domain.net'.  The problem is that dmarc is now failing and getting the error message '550 relaying denied username@hostname.domain.net'.

Offline bunkobugsy

  • *
  • 278
  • +4/-0
Re: Email changing to hostname.domain.net
« Reply #1 on: July 14, 2022, 09:06:33 AM »
Is this from webmail? Happened to us too. You need to set:

config setprop horde ForcePrimaryDomain enabled
signal-event console-save

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #2 on: July 14, 2022, 09:35:54 AM »
Is this from webmail? Happened to us too. You need to set:

config setprop horde ForcePrimaryDomain enabled
signal-event console-save


Thanks for the reply.  Followed your directions and now for some reason it changed the address from 'user@host.domain.net' to 'user@domainnet minus the period (instead of user@domain.net). 

'db domains show' shows:

domain.net=domain
Content=Primary
Description=Primary domain
« Last Edit: July 14, 2022, 09:58:38 AM by Warbird30 »

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email changing to hostname.domain.net
« Reply #3 on: July 14, 2022, 09:59:15 AM »
i understand the privacy but is the domain really of type
domain.tld
or rather
domain.co.tld ?

Offline bunkobugsy

  • *
  • 278
  • +4/-0
Re: Email changing to hostname.domain.net
« Reply #4 on: July 14, 2022, 10:03:20 AM »
Oh, forgot this was patched, but not yet released, so you also need to:

yum update smeserver-horde --enablerepo=smeupdates-testing

and then again:

signal-event console-save
« Last Edit: July 14, 2022, 10:08:52 AM by bunkobugsy »

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #5 on: July 14, 2022, 10:19:54 AM »
Oh, forgot this was patched, but not yet released, so you also need to:

yum update smeserver-horde --enablerepo=smeupdates-testing

and then again:

signal-event console-save

That made back and forth from non-webmail work without issue, but now not able to access webmail at host.domain.net/webmail.

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email changing to hostname.domain.net
« Reply #6 on: July 14, 2022, 10:24:47 AM »
please do

yum downgrade smeserver-horde


by doing the upgrade this way you went too far missing some new elements. 

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #7 on: July 14, 2022, 10:26:53 AM »
please do

yum downgrade smeserver-horde


by doing the upgrade this way you went too far missing some new elements.

If it helps, can access webmail locally, but not remotely after the previous update and it showed as user@domain.net

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email changing to hostname.domain.net
« Reply #8 on: July 14, 2022, 10:30:53 AM »
here are the last fixes.


Thu May 26 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-33.sme
- fix invalid domain if ForcePrimaryDomain is enabled [SME: 11980]
- fix $ldapServer is commented out if Horde ForcePrimaryDomain is disabled [SME: 11981]

* Sun Apr 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-32.sme
- use httpd 2.4 access control syntax [SME: 11945]


as you see the bug you need fixed has been fixed after another one which create the issue you have to access horde. probably because you did not update smeserver-php and e-smith-apache at the same time. However they have not beem fully verified, so i do mot suggest you update all on your production server. 

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #9 on: July 14, 2022, 10:35:56 AM »
here are the last fixes.


Thu May 26 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-33.sme
- fix invalid domain if ForcePrimaryDomain is enabled [SME: 11980]
- fix $ldapServer is commented out if Horde ForcePrimaryDomain is disabled [SME: 11981]

* Sun Apr 17 2022 Jean-Philippe Pialasse <tests@pialasse.com> 1.0.0-32.sme
- use httpd 2.4 access control syntax [SME: 11945]


as you see the bug you need fixed has been fixed after another one which create the issue you have to access horde. probably because you did not update smeserver-php and e-smith-apache at the same time. However they have not beem fully verified, so i do mot suggest you update all on your production server.

Thank you for that information.  I will run 'yum downgrade smeserver-horde' as you said and then change ForcePrimaryDomain to disabled.  Is there anything else I should do? Out of curiosity, is that any time frame for those fixes?
« Last Edit: July 14, 2022, 10:41:22 AM by Warbird30 »

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #10 on: July 14, 2022, 11:02:26 AM »
Thank you for that information.  I will run 'yum downgrade smeserver-horde' as you said and then change ForcePrimaryDomain to disabled.  Is there anything else I should do? Out of curiosity, is that any time frame for those fixes?

Well, now unable to access webmail locally or remotely after 'yum downgrade smeserver-horde'. 

Offline bunkobugsy

  • *
  • 278
  • +4/-0
Re: Email changing to hostname.domain.net
« Reply #11 on: July 14, 2022, 11:05:17 AM »
Did e-smith-apache also get downgraded?

rpm -qa smeserver-horde
rpm -qa e-smith-apache
« Last Edit: July 14, 2022, 11:09:09 AM by bunkobugsy »

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #12 on: July 14, 2022, 11:09:36 AM »
Did e-smith-apache also get downgraded?

Not sure. running 'rpm -qa e-smith-apache' shows
'e-smith-apache-2.6.0-19.el7.sme.noarch'

rpm -qa smeserver-horde
smeserver-horde-1.0.0-29.el7.sme.noarch
« Last Edit: July 14, 2022, 11:13:16 AM by Warbird30 »

Offline bunkobugsy

  • *
  • 278
  • +4/-0
Re: Email changing to hostname.domain.net
« Reply #13 on: July 14, 2022, 11:19:34 AM »
it didn't, please also   yum downgrade e-smith-apache
sorry for the mess I created

Offline Warbird30

  • 19
  • +0/-0
Re: Email changing to hostname.domain.net
« Reply #14 on: July 14, 2022, 11:26:19 AM »
it didn't, please also   yum downgrade e-smith-apache
sorry for the mess I created

Webmail is now accessible locally and remotely (yeah).  It's all good, at least there is a fix in the works (and it worked locally at least).  Appreciate all the help you guys have given.  Now to go pass out as I've been up for about 20 some hrs now (crosses fingers that no one calls early..  lol).

Offline Jean-Philippe Pialasse

  • *
  • 2,761
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Email changing to hostname.domain.net
« Reply #15 on: July 14, 2022, 02:14:51 PM »
timeframe depends on how many people work on verifying the 3 bugs and make sure no issue arise like the one you seem to see.