CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • How to Install/Configure CiviMail locally under Mac OS X
Pages: [1]

Author Topic: How to Install/Configure CiviMail locally under Mac OS X  (Read 3836 times)

cpelham

  • Guest
How to Install/Configure CiviMail locally under Mac OS X
February 21, 2008, 11:54:45 am
1) Mac OS X Tiger/Leopard comes with an Apache web server, Postfix, php, and I think MySQL. I found it easier to install MAMP & MAMP Pro, which are free downloads (just google them). This provides you with a nice, pretty simple GUI for all of the above. It lets you choose php4 or php5 and you from its File menu, you can edit your php.ini and httpd.conf files among others. Simply put it your username and password, launch phpMyAdmin (there is a big button for this under the MySQL tab), create your databases, and then click the WebStart button at the top. Then you can either import pre-existing databases or go through the normal steps to install your CMS and CiviCRM.

By default, MAMP Pro (the GUI for MAMP) allows you to connect to your local web files at:
http://localhost:8888/

and your MySQL server at:

localhost:8889

2) MAMP installs the folder MAMP in your /Applications folder. Everything inside /Applications/MAMP/htdocs will be visible from http://localhost:8888/  so that is where you should install Drupal and/or Joomla and CiviCRM.  or just copy your folder from your web host. Be sure to edit your CMS and CiviCRM settings files to reflect your local MySQL path and database name etc.

$civicrm_root = '/Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/';
define( 'CIVICRM_TEMPLATE_COMPILEDIR', '/Applications/MAMP/htdocs/drupal/sites/all/modules/civicrm/templates_c/' );

At this point you should have a working CiviCRM.  If you don't, go back and check your settings and read over the MAMP/MAMP PRO instructions.

Next, I followed the alternative configuration for setting up CiviMail:

http://wiki.civicrm.org/confluence/display/CRMDOC/Alternative+configuration+-+no+Amavis+or+root+access

To install the additional required modules mentioned here, I opened the Mac Terminal program and typed CPAN. A CPAN prompt appears. I typed install SOAP::Lite and then just followed the configuration script recommendations of whether to say yes or no at each prompt. Then I did this for each of the other modules: Mail::IMAPClient, Mail::Verp, HTTP::Cookies, MIME::Entity

Then, in MAMP PRO, I clicked on the Postfix tab. In the "Domain of outgoing mail" I entered our site's domain crsny.org.
Then I clicked the "Smart Host" box and entered the info for our ISP (Verizon), NOT my site's web host. Then click "Change Postfix configuration. The email will go out through Verizon but will appear to your email recipients as if it is coming from your domain.

In Home › CiviCRM › Administer CiviCRM › Global Settings I entered localhost for "SMT" Server" and 25 for "SMTP Port" and No for "Authentication"

Then I created a test group in CiviMail and sent a message immediately. http://localhost:8888/drupal/civicrm/mailing/browse?reset=1  screen then says the message is Scheduled.

To get it to actually send I load two addresses in my web browser:

http://localhost:8888/drupal/sites/all/modules/civicrm/bin/civimail.cronjob.php?name=<drupal/civicrm-user-name>r&pass=<drupal/civicrm password>

http://localhost:8888/drupal/civicrm/mailing/browse?reset=1

The message is now sent.

I have not been able to get imap2soap working yet...but at least I can now send mail from CiviCRM.

I am writing this from memory. Hopefully I have not left anything out but if anyone wants to try this and gets stuck along the way, post here and I will try to respond.

I have switched hosts from Dreamhost to drupalvaluehosting.com and so far CiviCRM is running very fast. I do not have root access but they are very cooperative and willing to try to get CiviMail running but for now I am content to clone our CiviCRM database and mirror it locally and send email out from there since we only do two mailings a month.


Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • How to Install/Configure CiviMail locally under Mac OS X

This forum was archived on 2017-11-26.