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

Impossible to send emails with some configs from version 14 #11632

Closed
oparoz opened this issue Oct 5, 2018 · 6 comments
Closed

Impossible to send emails with some configs from version 14 #11632

oparoz opened this issue Oct 5, 2018 · 6 comments

Comments

@oparoz
Copy link
Member

oparoz commented Oct 5, 2018

Steps to reproduce

  1. Go to admin settings
  2. In the email server section, pick sendmail or SMTP and fill in the details
  3. Send test email

Expected behaviour

I should get an email

Actual behaviour

Beim Senden der E-Mail ist ein Problem aufgetreten. Bitte überprüfe Deine Einstellungen. (Fehler: Address in mailbox given [admin@] does not comply with RFC 2822, 3.6.2.)

2 issues:

  1. The "address in mailbox" is missing a domain
  2. The "address in mailbox" seems to want to use the wrong email address. admin@ is the account of the admin, not the email address filled-in in the "email server"

Server configuration

Operating system:

Web server: Apache

Database:

PHP version: 7.1 PHP-FPM

Nextcloud version: (see Nextcloud admin page) 14.0.2 RC1

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from:

Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
Insert your webserver log here

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...
@oparoz oparoz added the bug label Oct 5, 2018
@oparoz oparoz added this to the Nextcloud 14.0.3 milestone Oct 5, 2018
@oparoz oparoz changed the title 14 can't find send emails with some configs 14 can't send emails with some configs Oct 5, 2018
@nextcloud-bot
Copy link
Member

GitMate.io thinks possibly related issues are #5658 (share by email - password email not sent - solved), #5047 (Can't password protect shares because password email is sent from account email address), #11232 (Verification email not sending NextCloud Forums), #8913 (Can't upload videos when sent email.), and #1916 (discussion: remove "send email" option for public links).

@MorrisJobke
Copy link
Member

@oparoz Could this be a duplicate of #11281? Maybe the fix #12278 helps here, or is this completely unrelated?

@oparoz oparoz changed the title 14 can't send emails with some configs Impossible to send emails with some configs from version 14 Dec 10, 2018
@oparoz
Copy link
Member Author

oparoz commented Dec 10, 2018

So, it's still a problem on 15.

I've tried with sendmail and both options fail.
There is something very wrong as it's not trying to use the correct email address.

I set the sender to "admin@domain.com"

The message says:
Beim Senden der E-Mail ist ein Problem aufgetreten. Bitte überprüfe Deine Einstellungen. (Fehler: Address in mailbox given [olivier@] does not comply with RFC 2822, 3.6.2.)

@kesselb
Copy link
Contributor

kesselb commented Dec 10, 2018

Could you post the email address for your user?

@oparoz
Copy link
Member Author

oparoz commented Jan 1, 2019

So, I've compiled a new version of PHP 7.1 now things work as expected when using sendmail.

@MorrisJobke
Copy link
Member

So, I've compiled a new version of PHP 7.1 now things work as expected when using sendmail.

Okay - then let's close this as we can't reproduce this and it seem to be setup specific that is non-reproducible easily.

@MorrisJobke MorrisJobke removed this from the Nextcloud 14.0.5 milestone Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants