Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to set up formmailphp for a split service

Posted on 2013-02-02
3
Medium Priority
?
306 Views
Last Modified: 2013-02-07
I have a client with split Internet service - web at NewTek and MX at Earthlink?Robust Solutions. The formmail script is on a Newtek server under domain name magnolia.com. One of the mail boxes to receive the distributed form mail is name@themagnolia.com. I have tried 4 ways to configure the script;

1. Setting up an alias email account, request, on the local NewTek mail server and assigning the form mail to several addresses - most having different domains the themagnolia.com. These results in all the non-themagnolia.com email boxes successfully receiving the form mail. The name@themagnolia.com mail gets bounced and never delivered because the mail server looks locally and cannot find since it isn't there.  Partial success.

2. Basically the same set up as 1, except the smtp server is moved from the standard shared server to a gateway server. The gateway server should not look for local authentication and send all the mail including name@themagnolia.com. At least, that's my theory the results aren't in yet.

3. Within the script, assign the smtp server to an Earthlink mail server. This is still in the themagnolia.com domain space (split MX) but the real mailbox for name@themagnolia.com does exist here. Testing this approach results in the Earthlink mail server requesting user name and password to authenticate. The formmailphp script does not contain the ability to pass credentials to this (foreign) email server. So failure here.

4. Same basic setup as 1 except I deleted name@themagnolia.com from the distribution list and added a rely mailbox which I opened at gmail.  I set the gmail mailbox to automatically forward to name@themagnolia.com and auto delete the message. This was a complete success, but it loses serious style points.

My questions are: Does anyone see a better way? Can I modify any of the above to work better? Solution 2 seems the cleanest, is there a reason this wouldn't work?

Sorry about the long preamble. Any help would be greatly appreciated. Name@themagnolia.com is my client, of course, and very interested in getting form mail.
0
Comment
Question by:dlearman1
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
TomRScott earned 1000 total points
ID: 38846324
#2 looks good on the face of it. I would test it and report the results.

For a failure seeing the bounce notice would be helpful.

The PHP code should be easy enough to modify and repost. Or do you not have access to the code?

 - Tom
0
 
LVL 111

Expert Comment

by:Ray Paseur
ID: 38847076
Not sure I understand the issue completely, but have a look at these links:
http://mxtoolbox.com/SuperTool.aspx?action=a%3anatpresch.org
http://mxtoolbox.com/SuperTool.aspx?action=mx%3anatpresch.org

The church has separate web hosting in an offsite shared server facility.  It runs its own email servers, physically located on the church property.  

When I was last working with them, internally generated email from the web host (PHP mail() command) required a little bit of special handling.  The web server would see the same domain name in the email address as the name on the hosting account, and in an abundance of "helpfulness" it would simply put the email into the local inbox instead of routing it to the internet, where the real MX records would have caused the mail to arrive at the right destination.  Once we got over that situation (which had to be revisited with each web server upgrade) we had a separate challenge on the mail server.

The mail server used a confused combination of jury-rigged spam filters.  The filters began with the assumption that any external email bearing a "from" or "reply-to" with the same name as the church email domain -- well it simply had to be fraudulent.  What else could it be?!  Once we got the sysadmin's eye on the ball we were able to get the email filters to recognize that the church web server should be assumed to be a valid sender of church email messages.  IIRC this was in the days before the church began using SPF records.
0
 
LVL 12

Expert Comment

by:TomRScott
ID: 38866681
Sorry I could not be more helpful, without seeing the existing code it is hard to offer up improvements if any were needed.

 - Tom
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Learn the basics of if, else, and elif statements in Python 2.7. Use "if" statements to test a specified condition.: The structure of an if statement is as follows: (CODE) Use "else" statements to allow the execution of an alternative, if the …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Suggested Courses
Course of the Month21 days, 1 hour left to enroll

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question