liuch / dmarc-srg

A php parser, viewer and summary report generator for incoming DMARC reports.
GNU General Public License v3.0
213 stars 31 forks source link

error "ACL not available on this IMAP server" #104

Closed Havbaba closed 10 months ago

Havbaba commented 10 months ago

I filled in the conf.php file and set up the database, there should be 8 unread mails in the mailbox. Anyway I don't see any mails showing up and when running the check_config.php I get following output: https://ibb.co/B3dRBND

dmarc-srg [error]: imap_getacl: ACL not available on this IMAP server

Also in the conf.php file:

$mailboxes = [
    // Just for displaying in the web-admin and utilities. Not necessary.
    'name'            => 'Dmarc-Rua',
    // Host of the email server. You can specify a port separated by a colon.
    'host'            => 'localhost',
    // Connection encryption method. The valid values are:
    // 'none'     - without encryption (strongly not recommend).
    // 'ssl'      - SSL/TLS on a separate port, for IMAP it is usually port 993. Default value.
    // 'starttls' - STARTTLS method, usually on the standard IMAP port 143.
    'encryption'      => 'ssl',
    // Set true if you want to connect to the IMAP server without certificate validation
    'novalidate-cert' => true,
    // Mailbox user name.
    'username'        => '*hidden*',
    // Mailbox password.
    'password'        => '*hidden*',
    // Mailbox name
    'mailbox'         => 'INBOX',
    // IMAP authorization methods to be excluded.
    // For example: 'auth_exclude' => [ 'GSSAPI', 'NTLM' ]
    'auth_exclude'    => []
];
liuch commented 10 months ago

Hello @Havbaba, Try using 'auth_exclude' => [ 'GSSAPI' ] in your conf.php

Havbaba commented 10 months ago

Hi @liuch , thanks for your help!

Got an error localhost connection refused so I entered the imap host, that worked but still got the same error dmarc-srg [error]: imap_getacl: ACL not available on this IMAP server

Same when excluding NTLM and both NTLM and GSSAPI.

In phpinfo I see both GSSAPI and NTLM being supported: https://ibb.co/8c5T85N

liuch commented 10 months ago

Does your email server have Access Control List (ACL) Extension?

liuch commented 10 months ago

What does this mean and how do I solve this?

I did a little investigating. I believe you don't have an ACL configured on your mail server, and it's not an error but a warning that should have gone into the log. The utility will work just as well.

Havbaba commented 10 months ago

I am not aware of such thing, so indeed I guess it isn't configured. I am using a reseller shared hosting @Combell

Anyway at the Logs tab I don't see any logs and the Report List is also empty even there are 8 unread mails with dmarc info. Both tabs show "No data"

liuch commented 10 months ago

Hm. Reports that are in the mailbox will not download themselves. You need to either download them yourself or set up a cron job to do so. Use utils/fetch_reports.php for that.

Havbaba commented 10 months ago

Aha okay I get it, works after running the fetch script! Thanks! :)