S
S
Sergey2017-05-24 12:55:34
PHP
Sergey, 2017-05-24 12:55:34

Why does imap_open take so long to "think"?

Hello. I'm trying to write a web-muzzle for a mail server on Postfix+Dovecot+Postgresql. Function "according to the tutorial":

$imap = imap_open("{[127.0.0.1]:143}INBOX",$username,$password);
runs in three seconds, which I think is a very long time. Is this the norm? I do not rule out that I configured something wrong in Dovecot, as I study in the process of work (simple reading is an inefficient exercise, kmk) Can I speed it up?
Somewhere I read this option: all mail from Dovecot is taken into the database, and from there it is given to users. This may be more time efficient. Is it a normal option to do this with a separate demon, for example, written in C and run by cron? Or am I already beginning to produce essences?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2017-05-25
@DandyAndy

I partially found the solution in the fact that in Dovecot, in the conf.d/auth-system.conf.ext file, I disabled PAM, now one hundred imap_open iterations are performed in 0.6 seconds.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question