Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 10 Mar 2024 13:29:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 277611] mail/snappymail: Fix autoconfig
Message-ID:  <bug-277611-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277611

            Bug ID: 277611
           Summary: mail/snappymail: Fix autoconfig
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yasu@freebsd.org
          Reporter: DtxdF@disroot.org
          Assignee: yasu@freebsd.org
             Flags: maintainer-feedback?(yasu@freebsd.org)

Created attachment 249071
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D249071&action=
=3Dedit
mail-snappymail-Fix-autoconfig.patch

Description:

When configuring a new domain and hit the Autoconfig button, an
error is occurred due the missing SimpleXML extension.

```
[2024-03-09 07:18:28.749][72d59c31] PHP[WARNING]:
file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?em=
ailaddress=3Dtest%40disroot.org):
Failed to o
pen stream: HTTP request failed! HTTP/1.1 403 Forbidden

/usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Provid=
ers/Domain/Autoconfig.php
[line:64, code:2]
[2024-03-09 07:18:30.360][72d59c31] PHP[WARNING]:
file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1=
.1.xml):
Failed to open stream: HTTP reques
t failed! HTTP/1.1 404 Not Found

/usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Provid=
ers/Domain/Autoconfig.php
[line:64, code:2]
[2024-03-09 07:18:31.518][72d59c31] SERVICE[WARNING]: Call to undefined
function simplexml_load_string()
```

After installing the simplexml extension, it just shows a bunch of
warnings, but Autoconfig works and configures the parameters
without user intervention.

```
[2024-03-09 07:20:27.683][64f93497] PHP[WARNING]:
file_get_contents(https://autoconfig.disroot.org/.well-known/mail-v1.xml?em=
ailaddress=3Dtest%40disroot.org):
Failed to o
pen stream: HTTP request failed! HTTP/1.1 403 Forbidden

/usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Provid=
ers/Domain/Autoconfig.php
[line:64, code:2]
[2024-03-09 07:20:29.426][64f93497] PHP[WARNING]:
file_get_contents(https://disroot.org/.well-known/autoconfig/mail/config-v1=
.1.xml):
Failed to open stream: HTTP reques
t failed! HTTP/1.1 404 Not Found

/usr/local/www/snappymail/snappymail/v/2.35.2/app/libraries/RainLoop/Provid=
ers/Domain/Autoconfig.php
[line:64, code:2]
```

QA:

* portlint: OK (looks fine.)
* testport: OK (synth: 14.0-RELEASE, amd64, GNUPG LDAP MYSQL PGSQL REDIS
SQLITE3 tested)

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277611-7788>