liuch / dmarc-srg

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

PHP Notice when try to get email via PLAIN method #44

Closed Shnoulle closed 1 year ago

Shnoulle commented 1 year ago

Hi,

I use dmarc-srg on same server than email server (iredmail server)

Externaly : i can use starttls but not via localhost, I set 'encryption' => 'none', for config.

When i try to get email :

$ php utils/fetch_reports.php 
PHP Notice:  Unknown: SECURITY PROBLEM: insecure server advertised AUTH=PLAIN (errflg=1) in Unknown on line 0

Then i try with

'encryption'      => 'starttls',
'novalidate-cert' => true,
$ php utils/fetch_reports.php 
TLS/SSL failure for localhost: SSL negotiation failed

To allow reading of email : i update debug.php to set ini_set('error_reporting', E_ALL & ~E_NOTICE & ~E_STRICT & ~E_DEPRECATED); and now it work.

Shnoulle commented 1 year ago

With

    'encryption'      => 'ssl',
    // Set true if you want to connect to the IMAP server without certificate validation
    'novalidate-cert' => true,

it's OK …

Sorry , close it.