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 »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing Domain for CiviMail HTTP Traffic
Pages: [1]

Author Topic: Changing Domain for CiviMail HTTP Traffic  (Read 1375 times)

dmdude

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: None
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.2
Changing Domain for CiviMail HTTP Traffic
August 14, 2013, 08:03:50 am
Hello -
  This may sound crazy, but is it possible to change the domain for all CiviMail HTTP traffic, assuming we have Drupal for the Website?  I'm not even sure whether we want to do this or not, but if we are using only the CiviMail component of CiviCRM, could we have a back-end server for sending and receiving mail traffic, then have another Drupal server for handling the HTTP port 80/443 traffic for the mailing display, subscribe/unsubscribe, and track mailing openings?
  I do have this almost working; I can display mailings and the subscribe form, but the subscribe.url token has the back-end server's name, and I don't know yet about unsubscribe or the open.php and url.php domains.
  Please let me know if anybody has thought about or tried to do this.
Thanks
« Last Edit: August 14, 2013, 08:24:30 am by dmdude »

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Changing Domain for CiviMail HTTP Traffic
August 14, 2013, 10:08:49 am

your smtp (i.e. mail server) can be on a completely different machine/network than your http server. Your mailing address / domain are not really connected with your website urls

am curious as to your use case and what you are using civi for

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

dmdude

  • I’m new here
  • *
  • Posts: 17
  • Karma: 0
  • CiviCRM version: None
  • CMS version: Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.2
Re: Changing Domain for CiviMail HTTP Traffic
August 14, 2013, 11:44:04 am
I'm not sure how much info I want to give out here about our use case for civi.  Yes, we have smtp split off onto separate servers, but the question was only for Web traffic.  We want to use our Drupal sites as the front-end for maintaining contacts and viewing mailings.

Here's another way of asking.  Has anybody set up civi using three servers: one for public access that is integrated with the Website, one for updates where the Websites and civimail mailings or petitions are created and/or updated, and possibly a third server for civicrm cron jobs?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Changing Domain for CiviMail HTTP Traffic
August 14, 2013, 03:35:48 pm

i think out of the box, item 1 and 2 need to be on the same hostname (could be multiple machines).

However, i think NYSS might be doing something smart in their install since they have a similar issue. I've requested them to respond here

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Changing Domain for CiviMail HTTP Traffic
August 14, 2013, 08:42:40 pm
for the NYSS, we have:

- DB server
- App server
- SMTP server (3rd party service)
- Squid server (http://www.squid-cache.org/)

the DB and App server are completely behind a firewall. the SMTP service (Sendgrid) handles the unsubscribe requests and confirmed deliveries, etc., and we have a script that syncs that data to civicrm (it's actually event based, so we receive notification when an event occurs and then process it).

the Squid server is the only public facing side of the equation, and is used to service the graphics from the emails as cached files. when an email is delivered, the image urls are rewritten to reference the squid url. when the email is read and those references are hit, squid retrieves the image from civicrm (behind the firewall) and keeps a cached version. so the public is only ever hitting squid.

your use case is similar, but would need to extend the scope of what squid does to include the actual action links and such. when we initially setup squid we did some basic proof of concepts and were able to pass url based actions through to the civi installation. but I don't recall if we actually displayed civi forms and pages. squid seemed to be highly configurable, so with patience and persistence, it could probably be worked out.
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Re: Changing Domain for CiviMail HTTP Traffic
August 14, 2013, 09:45:44 pm
Hi Brian,

Do you sync back from sendgrid to civi to update the status? (bounced/unsuscribed...). Is there an extension?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

lcdweb

  • Forum Godess / God
  • I live on this forum
  • *****
  • Posts: 1620
  • Karma: 116
    • www.lcdservices.biz
  • CiviCRM version: many versions...
  • CMS version: Joomla/Drupal
  • MySQL version: 5.1+
  • PHP version: 5.2+
Re: Changing Domain for CiviMail HTTP Traffic
August 15, 2013, 04:21:51 am
we have a callback script that responds to the events and stores the event data in a separate db in correlated tables: https://github.com/nysenate/SendgridStatsAccumulator

we then poll the db via cron from each site in order to process the data into civicrm:
https://github.com/nysenate/Bluebird-CRM/blob/dev/civicrm/scripts/updateSendGridStats.php
support CiviCRM through 'make it happen' initiatives!
http://civicrm.org/mih

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Post-installation Setup and Configuration (Moderator: Dave Greenberg) »
  • Changing Domain for CiviMail HTTP Traffic

This forum was archived on 2017-11-26.