-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
email mode "sendmail" not working #11281
Comments
GitMate.io thinks possibly related issues are #4219 (Can't share folders by email, files work fine), #3301 (Unsetting maintenance mode using occ doesn't work), #5472 (TempManager is not working), #6603 (Built-in share-by-email date expiration enforcement not working properly ), and #6596 (Built-in share-by-email password protection enforcement not working properly). |
We upgraded swiftmailer and the php mailer (that was already deprecated for some time) is now removed. The sendmail options are identical to what they have always been. @cwiedmann would you mind shooting in a PR? |
just added PR #11454 |
I use ssmtp to send out my mails and it requires the option |
from the manpage: "Read message for recipients. To:, Cc:, and Bcc: lines will be scanned for recipient addresses. The Bcc: line will be deleted before transmission." see issue nextcloud#11281
Steps to reproduce
With Nextcloud 13 and "php" as send mode there are no problems with sending emails.
PHP itself is using sendmail.
Now with Nextcloud 14 "php" isn't available as send mode. So I have to switch to "sendmail" as send mode
Configure "sendmail" as send mode.
Send the test email.
I have located the problem in the file "lib/private/Mail/Mailer.php".
If I change the line (~281):
| return new \Swift_SendmailTransport($binaryPath . ' -bs');
to
| return new \Swift_SendmailTransport($binaryPath . ' -t');
email is working again. Which make sense, because my sendmail binary doesn't support the "-bs" switch. And "-t" is also used by PHP and its mail function.
There should be a configure option for this switch. Right now it's hardcoded. And "-bs" is not working for every sendmail binary.
Expected behaviour
No error:
Email sent
Actual behaviour
Error occurs:
A problem occurred while sending the email. Please revise your settings. (Error: Expected response code 220 but got code "", with message "")
Server configuration detail
Operating system: FreeBSD 11.1-STABLE amd64
Webserver: Apache (apache2handler)
Database: mysql 5.6.41
PHP version:
7.1.22
Modules loaded: Core, date, libxml, pcre, Reflection, SPL, hash, session, apache2handler, standard, apcu, bz2, ctype, curl, dom, mbstring, fileinfo, filter, ftp, gd, mysqlnd, iconv, imagick, intl, json, ldap, exif, mysqli, openssl, PDO, posix, SimpleXML, smbclient, xml, xmlwriter, zip, zlib, pdo_mysql, wddx, xmlreader, xsl, libsmbclient, Zend OPcache
Nextcloud version: 14.0.0 - 14.0.0.19
Updated from an older Nextcloud/ownCloud or fresh install: update from 13.0.6
Where did you install Nextcloud from: FreeBSD package
Signing status
Array
(
)
List of activated apps
Configuration (config/config.php)
Are you using external storage, if yes which one: local
Are you using encryption:
Are you using an external user-backend, if yes which one:
Client configuration
Browser: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:62.0) Gecko/20100101 Firefox/62.0
Operating system: Windows 10
Logs
Browser log
Nextcloud log
Browser log
The text was updated successfully, but these errors were encountered: