Community Documentation

Configuring mailboxes for Different Hosts (1.x, 2.x)

Last updated February 25, 2013. Created by terramedia on January 7, 2008.
Edited by brayo4, itserich, Dane Powell, greggles. Log in to edit this page.

Different hosts may require different "Extra Commands" on the mailbox page connection settings. This handbook entry tries to document them to make it easier for people to use mailhandler.

Dreamhost

While Dreamhost's php doesn't include the necessary imap_open function, you can still access Dreamhost mailboxes by using the /novalidate-cert Extra command with IMAP on port 143. Be sure to use mail.example.com as the domain (not just example.com) and leave the folder as INBOX.

To use with Dreamhost that has your email through GMail use the settings for IMAP GMail below but for extra commands use /ssl/novalidate-cert

DrupalValueHosting

For DrupalValueHosting you will need to use the extra command /novalidate-cert.

BlueHost

Folder: INBOX
Mailbox Domain: mail.example.com
Mailbox Port: 143
Username: yourname@example.com (Note: In the cpanel help pages it suggests switching in '+' for '@'. This didn't work for me.)
Extra Commands: /novalidate-cert

HostGator

For HostGator you will need to use the extra command /novalidate-cert.

Hostmonster

Folder: INBOX
Mailbox Domain: mail.example.com or hostXXX.hostmonster.com, both works for me (for me XXX=228).
Mailbox Port: 143 (IMAP) or 110 (POP3), both works for me.
Username: yourname@example.com
(Note: In the cpanel help pages it suggests switching in '+' for '@' e.g. yourname+example.com. This works for me.)
Extra Commands: /novalidate-cert

Successful tests for Drupal 6.4

Manufrog

Extra commands: /notls

GMail Settings for POP3 and IMAP

Valid settings for POP3:
Mailbox Domain: pop.gmail.com
Mailbox Port: 995
Username: your-gmail-account-name@gmail.com
Extra Commands: /ssl

Valid settings for IMAP:
Mailbox Domain: imap.gmail.com
Mailbox Port: 993
Username: your-gmail-account-name@gmail.com
Extra Commands: /ssl

To use Gmail labels as folders, you need to be using IMAP and not POP3. POP3 will only list the INBOX as a folder. Once you have IMAP enabled, you can use the label as the folder and Mailhandler will just pull content from that label. This can be effect when used in tandem with a filter to automatically assign labels to mail that matches certain criteria.

Unfortunately, many providers block ports 993 and 995, including my hostmonster. I had to test it on my home computer.

1and1

For 1and1 (1&1) you will need to use the extra command /novalidate-cert.

Infomaniak

Valid set for IMAP:
Folder: INBOX
Mailbox Domain: mail.example.com
Mailbox Port: 143
Username: address%example.com (the username is the email address where "@" is replaced by "%")
Extra Commands: /notls/novalidate-cert

Media Temple

http://kb.mediatemple.net/questions/272/Using+Email#dv_35

I followed the directions for IMAP with SSL, and used the /ssl/novalidate-cert extra commands.

Serv Int VPS

Valid set for IMAP:
Folder: INBOX
Mailbox Domain: mail.example.com
Mailbox Port: 143
Username: address@example.com (the username is the email address)
Extra Commands: /novalidate-cert

Midphase

Folder: INBOX
Mailbox Domain: mail.example.com
Mailbox Port: 143
Username: yourname@example.com
Extra Commands: /novalidate-cert

Comments

RackSpace Cloud Sites Settings

To connect to an email account hosted on RackSpace Cloud Sites, here are the settings that worked for me:

E-mail address: username@yourdomain.com
POP3 or IMAP Mailbox: IMAP
Mailbox domain: secure.emailsrvr.com (this is the secure server for RackSpace email)
Mailbox port: 993
Mailbox username: username@yourdomain.com (you need the full address since you are using a general server that hosts every RackSpace site's email)
Extra commands: /ssl (otherwise it won't connect)

Enjoy!

Alex

---
Alex Matan
http://alex.matan.ca

Thanks - For Non-ssl

Thanks - For Non-ssl rackspace you just need to change:

POP3 or IMAP Mailbox: POP3
domain: pop.emailsrvr.com
port: 110
extra commands: /novalidate-cert/tls

freedom isn't free

Tigertech configuration

For tigertech I had to add /ssl in the extra commands box when using POP3

Using subfolders in gmail

I have written a little tutorial on how you can use one email account for multiple clients to import mails into drupal. It works with aliasing/nicknames. This way you can use one email account for multiple email addresses to import mails into different drupal sites.

Subfolders mailbox (Google Accounts)

- Create an alias for the mailbox you want to use.
- Go to your mail account on Google Accounts. Click on manage this domain (you need admin rights)
- Admin window Google Apps open. Go to Organization & Users.
- Click on user.
- Go to Nicknames. Click on Add a nickname. Create an alias / nickname, say for example clientx@abc.com.

Create subfolder / Label.

- Go to gmail. On the left hand site click on '4 more' (in my case, maybe this is different for other users). Click on 'Create a new label' .
- Create a new label. I named it INBOX/Clientx

Create a filter

- Go to gmail.
- Click on 'Create a filter' (next to the search button).
- In the To: box, enter the alias/nickname (in my case clientx@abc.com). Click on Next.
- Select 'Apply the label' and choose the label just created (INBOX/Clientx)

Now you can send an email to clientx@abc.com. This mail will be routerd to INBOX/Clientx in gmail. You can use the Mailhandler to pick up mails from this folder/label. Please use as a folder name the complete label (that is INBOX/Clientx).

Regards, Paul van Erk [Stream]

Does anyone know the

Does anyone know the configuration for microsoft outlook emails?

Hi, This is doing my head

Hi,

This is doing my head in... I have tried every single possible combination of what has been said in this thread an its still coming back with the same error:
warning: imap_open() [function.imap-open]: Couldn't open stream {mail.MYDOMAIN:110/pop3/notls}INBOX in /home/MYACCOUNT/public_html/projects/csg/profiles/openatrium/modules/contrib/mailhandler/mailhandler.retrieve.inc on line 19.
I have the OA set up on a shared server using CPanel and Centos6... nothing out of the ordinary...
Whats wierd is that I have selected the POP settings but the error looks like its searching for IMAP???
Sooo appreciate some help : )

HostGator working SSL settings - March 2013

this worked for me- the issue costing me hours seemed to be the syntax for the "Extra Commands"

Solution from: http://drupal.org/node/542118

In your Drupal portal, go to Content > Mailhandler mailboxes
Click Add Mailbox.
Here enter all the information about the email account that you created. See illustration below. The below entries are for my example emcollab2@localdev.net account - naturally, replace the entries with your own. Leave all entries untouched except for these:

  1. In "email address," I enter the account's email address: emcollab2@localdev.net.
  2. For "Folder," I leave it untouched, as "INBOX."
  3. For "POP3 or IMAP Mailbox," I choose IMAP.
  4. In "mailbox domain" give the domain of the mail server, in my case box473.bluehost.com
  5. In "mailbox port" give the communication port that is used by the email server. In my case, since I am using IMAP and using SSL, my hosting company instructed me that the port is 993..
  6. In "emailbox username," enter the username for logging into the email account. In my case, but not necessarily in yours, my provider has the email account logged into by using the full email address but substituting + for @: therefore, I use emcollab2+localdev.net
  7. In "mailbox password" type the password that you had given for that email account.
  8. In "extra commands," you will usually only need to enter these additional commands for the email call in some circumstance, for instance if you are using SSL. I am using SSL, so I enter: /ssl/novalidate-cert
  9. Make sure that "delete messages after they are processed" remains checked.
  10. Make sure that "Message authentication method" is set to "MailComment Default". Otherwise, mailcomment will not authenticate the message and will tell the user that there was an error.

About this page

Drupal version
Drupal 6.x, Drupal 7.x

Site Building Guide

Drupal’s online documentation is © 2000-2013 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License. Comments on documentation pages are used to improve content and then deleted.