Comments (22)
It looks like you have a blockage with reject rule or you have some kind of network problem.
from dmarc-srg.
Finally worked 👍
from dmarc-srg.
Hello nasirmgcc,
I need more information to understand this issue. What exactly doesn't work? Which mistakes do you have? What version of php is installed on your server? Are all needed php modules installed?
from dmarc-srg.
I have updated all the necessary scripts changes for SMTP, when i am trying to see request to pull email , it taking too long and end-up with unreachable .
from dmarc-srg.
SMTP is for sending emails not for receiving them. This project uses IMAP for this. Are there other tools or applications on your server that successfully use IMAP for the same mailbox?
from dmarc-srg.
Yes, I am using GMail IMAP
from dmarc-srg.
it might be the blockage on the Hosting provider Firewall? is firewall of the Host can block PHP not to connect with GMail IMAP? the IMAP is enabled from Gmail and less security app is too.
from dmarc-srg.
Yes, it could be one of your hosting provider's firewall rules, but I have never run into that. You can check it out by yourself using this command on your server (you must have openssl installed):
openssl s_client -crlf -connect imap.gmail.com:993
Note that you should use imap.gmail.com
as the host name, not just gmai.com
!
from dmarc-srg.
Yes,i am trying now on my localhost, thank you " imap.gmail.com " i know abou this. let me try on localhost
from dmarc-srg.
BTW, this config works well for me:
'name' => 'Gmail',
'host' => 'imap.gmail.com',
'username' => '[email protected]',
'password' => 'password',
'mailbox' => 'INBOX',
'encryption' => 'ssl'
from dmarc-srg.
Thank you for the sharing, Yes, these are also correct only missing was 'encryption' => 'ssl' i added an retested,
The error i am receiving:
Can't connect to imap.gmail.com,143: Network is unreachable
from dmarc-srg.
This is received on the localhost
i fixed with enabling with imap extension loaded
Uncaught Error: Call to undefined function Liuch\DmarcSrg\Mail\imap_open()
from dmarc-srg.
{"error_code":-1,"message":"Can't connect to imap.gmail.com,143: Timed out"} with debug code on my localhost i got this
from dmarc-srg.
Can't connect to imap.gmail.com,143
You must not connect to port 143 (IMAP), you must connect to port 993 (IMAPS). Have you specified 'encryption' => 'ssl'
in the config file?
from dmarc-srg.
Can't connect to imap.gmail.com,143: Timed out
from dmarc-srg.
$mailboxes = [
// Just for displaying in web-admin. Not necessary.
'name' => 'Gmail',
// Host of the email server. You can specify a port separated by a colon.
'host' => 'imap.gmail.com',
// 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.
// 'starttls' - STARTTLS method, usually on the standard IMAP port 143. Default value.
'encryption' => 'ssl',
// Set true if you want to connect to the IMAP server without certificate validation
'novalidate-cert' => true,
'port' => 993,//465,
// Mailbox user name.
'username' => '[email protected]',
// Mailbox password.
'password' => 'PASSWORD',
// Mailbox name
'mailbox' => 'INBOX'
];
from dmarc-srg.
i tried both :
'novalidate-cert' => true,
'novalidate-cert' => false,
no successs
from dmarc-srg.
Hello, nasirmgcc.
I just pasted your config 'AS IS' into my conf.php on my localhost and got this:
Can not authenticate to IMAP server: [AUTHENTICATIONFAILED] Invalid credentials (Failure)
(of course I don't know the correct password) so it works for me.
Have you tried the command I mentioned above? What did it say?
p.s. There is no option port
in the conf.php, your option has no effect. If you want to specify a different port number you must use the option host
this way: imap.gmail.com:999
but it is not necessary in this case.
from dmarc-srg.
I don't know what i am doing wrong or why not working for me, if you dont' mind you can help me with
i just created an email
[email protected]
Password: *****************
I tested with, the results are same, can you test it and share with me the Copy you are using, and i can test here,
because i tested my Firewall , etc everything is open.
from dmarc-srg.
App Password: *****************
from dmarc-srg.
I created a simple php script and tested it's workign fine with App Passoword
but now Dmarc script is replying too many failure requests. :(
imap.gmail.com:993/imap/ssl/novalidate-cert
from dmarc-srg.
I'm glad it finally worked!
p.s. I have replaced the passwords with asterisks.
from dmarc-srg.
Related Issues (20)
- Error: Call to undefined function Liuch\DmarcSrg\getallheaders() HOT 10
- NP tag causes error to be logged HOT 2
- Feature Request: Button to manually retreive email HOT 6
- Multiple Mailboxes? HOT 2
- utils/fetch_reports.php does not list mailbox messages HOT 3
- Cant login HOT 20
- Error - Bad Message Number HOT 11
- JSON.parse: unexpected non-whitespace HOT 2
- Feature Request -- Export Summary Reports to CSV HOT 4
- admin login setting to assign the domains to user login HOT 1
- Forensic reports? HOT 4
- Ip address I wrong in reports. HOT 4
- Check on write access of config is incorrect HOT 1
- Fetch_report : failed to open stream HOT 9
- error message with PHP 7.4 HOT 1
- Feature request - Graphs in reports (duplicate #79) HOT 4
- Need install help HOT 18
- Feature Request: csv export HOT 4
- XML parsing fails for google reports HOT 13
- Bug: Menu Broken HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dmarc-srg.