-
Notifications
You must be signed in to change notification settings - Fork 2.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
Regression invitation come from user's address : spoofing issue #35953
Comments
Some what it the old was - some the new way 🤷♂️ One can come up with a PR which adds a config option to either set this header or not. Voluntees are welcome. THX |
One solution should be to do use variable in config/config.php ? Example:
with:
Thus, the administrators would have the possibility to choose the way of sending mails. |
Hello, I prefer the KsmoinO solution to give the administrator the choice of how to define the sender. By default, it should use the OC server as the sender. The problem is when the OC-Server tries to send mails with foreign senders (domains for which the OC MTA is not responsible). In the worst case my OC server should send a mail to Apple or Google, which should originate from them. In order to reduce the amount of SPAM, the easiest method is not to accept mail from your own domain if it comes from foreign servers. This is done using sender verification techniques such as DMARC (RFC5322), SPF or DKIM. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
Issue still present |
@janackermann why did you close this issue ? |
Closed by accident, reopened |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
Do not close please, Issue still present. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 10 days if no further activity occurs. Thank you for your contributions. |
This issue has been automatically closed. |
Issue is still present! |
Hello
The change #25470 causes my mail server to refuse sending mail.
In fact, I use an authenticated SMTP server which does not allow using "envelope mail from" address different from account one. This prevent SMTP spoofing.
Is it possible to apply one of the following:
As workaround I commented the line below in apps/dav/lib/CalDAV/Schedule/IMipPlugin.php
125 //->setFrom([$sender => $senderName])
Regards.
Steps to reproduce
Invite someone to calendar event.
Expected behaviour
Email is sent from email address configured as authenticated user in Settings --> Admin --> General -->Email Server-->From Address.
Actual behaviour
Email is sent from user address and refused by mail server (prevent spoofing issues)
Server configuration
Operating system:
Rasbian 9
Web server:
Apache 2.4
Database:
MariaDB 10
PHP version:
PHP 7
ownCloud version: (see ownCloud admin page)
ownCloud 10.2.1 (stable)
Updated from an older ownCloud or fresh install:
Updated from an older ownCloud
Where did you install ownCloud from:
Debian repository : https://download.owncloud.org/download/repositories/production/Debian_9.0/
Signing status (ownCloud 9.0 and above):
No errors have been found.
The content of config/config.php:
bin/occ config:list system
{
"system": {
"instanceid": "oc9580259263",
"passwordsalt": "REMOVED SENSITIVE VALUE",
"datadirectory": "/home/owncloud/data",
"dbtype": "mysql",
"version": "10.2.1.4",
"dbname": "owncloud",
"dbhost": "localhost",
"dbtableprefix": "oc_",
"dbuser": "REMOVED SENSITIVE VALUE",
"dbpassword": "REMOVED SENSITIVE VALUE",
"installed": true,
"maxZipInputSize": 10737418240,
"allowZipDownload": true,
"forcessl": true,
"logfile": "/var/log/owncloud/owncloud.log",
"loglevel": 0,
"logtimezone": "Europe/Paris",
"theme": "",
"maintenance": false,
"trusted_domains": [
"REMOVED SENSITIVE VALUE"
],
"mail_smtpmode": "smtp",
"preview_libreoffice_path": "/usr/bin/libreoffice",
"mail_smtphost": "REMOVED SENSITIVE VALUE",
"mail_smtpport": "587",
"mail_from_address": "REMOVED SENSITIVE VALUE",
"mail_domain": "REMOVED SENSITIVE VALUE",
"secret": "REMOVED SENSITIVE VALUE",
"mail_smtpauth": 1,
"trashbin_retention_obligation": "auto",
"updatechecker": false,
"mail_smtpname": "REMOVED SENSITIVE VALUE",
"mail_smtppassword": "REMOVED SENSITIVE VALUE",
"mail_smtpsecure": "tls",
"mail_smtpauthtype": "LOGIN",
"filelocking.enabled": true,
"memcache.local": "\OC\Memcache\APCu",
"memcache.locking": "\OC\Memcache\Redis",
"redis": {
"host": "localhost",
"port": 6379
}
}
}
List of activated apps:
bin/occ app:list
Enabled:
Disabled:
Are you using external storage, if yes which one: local/smb/sftp/...
No
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
Client configuration
Browser:
Any
Operating system:
Any
Logs
Web server error log
N/A
ownCloud log (data/owncloud.log)
N/A
Browser log
The text was updated successfully, but these errors were encountered: