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
- DrupalValueHosting
- BlueHost
- HostGator
- Hostmonster
- Manufrog
- Gmail setup
- 1and1
- Infomaniak Network
- Media Temple
- Serv Int VPS
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
The following settings work for mailhandler 2.x in Drupal 6.22 site hosted on Dreamhost running PHP 5.2.17. Note that mygroup@example.net is an email account set up on Dreamhost.
- Protocol: IMAP
- Folder: INBOX
- Domain: mail.example.net
- Port: 143
- Username: mygroup@example.net
- Password: mypassword
- Extra commands: /notls/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
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).
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:
For Google Imap you will have to allow for less secure settings
For Google Imap you will have to allow for less secure settings at the following url once you login to your gmail account.
https://www.google.com/settings/u/3/security/lesssecureapps
http://SocialNicheGuru.com
Delivering inSITE(TM), we empower you to deliver the right product and the right message to the right NICHE at the right time across all product, marketing, and sales channels.