How to use the /authuser flag of the PHP imap_open() function?

Asked

Viewed 145 times

-1

imap_open("{".HOST.":143/[email protected]/novalidate-cert}INBOX", $email , $pass);

The line above is illustrative, I seek here a help to use these parameters correctly.

I’ll explain what I need to do.

I need to access the Zimbra mailbox, access one user at a time and move emails from the spam folder to another. My problem is how to make this connection to each account, so I saw php’s imap function does not select bulk accounts for this task.

Thanks for your help!

1 answer

0

As I had no answers, searching for a solution tirelessly found. The correct syntax to access the sub-accounts through the admin of Zimbra:

  • user=test // user what to be want access to
  • authuser=admin // admin Zimbra
  • $email // email from administrator Zimbra
  • $pass // administrator password Zimbra

imap_open("{".HOST.":143/[email protected]/authuser=admin/novalidate-cert}INBOX", $email , $pass);

This way I can access any mailbox registered in Zimbra and make the necessary changes.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.