Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Piwik sends email from localhost instead of fqdn #10684

Closed
SebBoffen opened this issue Oct 5, 2016 · 3 comments
Closed

Piwik sends email from localhost instead of fqdn #10684

SebBoffen opened this issue Oct 5, 2016 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.

Comments

@SebBoffen
Copy link

SebBoffen commented Oct 5, 2016

Piwik sends email from localhost instead of fqdn

Hope someone can help as I do not know what triggers this:
Link in the email:

https://localhost/index.php?module=CoreUpdater&action=newVersionAvailable

formerly this was:

https://fqdn/index.php?module=CoreUpdater&action=newVersionAvailable

I've checked Piwik and the Ubuntu Server installation but I am not finding the reason for this issue, run Piwik for more than a year (with about the same configuration, and a new installation) The rest of the server is running fine apart from this issue. Email dns ftp websites etc. I've tried mail settings in Piwik they did not result in a solution. Network name settings en php settings are the same as the former installation.

@mattab
Copy link
Member

mattab commented Nov 12, 2016

thanks @SebBoffen for the report. Could you let me know if any of your crontab tasks for Piwik refer to "localhost" at all? What are your "trusted hosts domains" set to, in General Settings of Piwik?

@mattab mattab added Bug For errors / faults / flaws / inconsistencies etc. Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. labels Nov 12, 2016
@mattab mattab added this to the 3.0.0 milestone Nov 12, 2016
@SebBoffen
Copy link
Author

SebBoffen commented Nov 12, 2016

Hi I do not have any piwik cronstasks, it seems for one or another reaon piwik prefers localhost over fqdn and I’m not seeing te reason. As there is no host to set nor have I got other issue’s with this server.

at the moment I've set 3 trusted hosts under general as:
trusted_hosts[] = "www.domainname.com"

and have defined under mail:
defaultHostname = "server.domainname.com"

The mail server is of course running on the same machine, thats why the email contains localhost, but as I stated I do not have any reasons for this to happen, regarding dns and network settings.

@SebBoffen
Copy link
Author

An upgrade to version 3.0 resolved the issue.

@tsteur tsteur removed the Waiting for user feedback Indicates the Matomo team is waiting for feedback from the author or other users. label Dec 21, 2016
@mattab mattab added the answered For when a question was asked and we referred to forum or answered it. label Dec 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it. Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants