LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-07-2011, 04:51 PM   #1
tkokkinos
LQ Newbie
 
Registered: Nov 2009
Location: Cleveland, OH
Distribution: Mandrake 10.2
Posts: 12

Rep: Reputation: 0
Question Ubuntu, XAMPP Server, PHP and sendmail issues


Please forgive my ignorance. I checked the forums and was overwhelmed by sendmail info.

My basic issue is this. I use Ubuntu 10.4 (works GREAT!), setup an XAMPP server, and I want to test a web email form on the XAMPP server.

I just finished an intensive HTML/Javascript class and have set up a web page with a form to email the form data. Being pumped to try this stuff out, I found a PHP script for forms which works and adapted it for the fields on my form. The form loads fine, reads the fields OK, I click the Send Mail button after filling in the data and get the successful send page with message sent (blah, blah, blah).

I use Evolution email program with my Windstream email account but this message never gets there.

They say "Fools go where angels fear to tread" and I am just crazy enough to play with this. I just cannot get the information to my SMTP email. I figure that I cannot hurt anything unless I get crazy editing config files (which I am not going to do). However, I researched this and found that my php.ini file may need editing for sendmail_path and sendmail_from. I did this as follows:

sendmail_path = /usr/sbin/sendmail -t
sendmail_from = (my email address) it said me@myserver.com and I may have this set wrong.

I reloaded XAMPP and nothing again. The help on the web is so conflicting and often just plain wrong - very aggravating.

Can any of you experienced guys tell this duffer what he needs to do to get this sending to my email? The ultimate goal is to have a page like this running on a LINUX hosting server for a small construction company. Right now, I am just trying to prove out the technology.

Thanks for your patience and help.
Ted Kokenos
 
Old 01-07-2011, 06:08 PM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
My first recommendation would be to stop using sendmail. Check out https://help.ubuntu.com/community/Po...asicSetupHowto for info about setting up postfix.

Second, comment those lines in your php.ini. You want to use the mail() in php. http://php.net/manual/en/function.mail.php

FYI, after any changes in your php.ini file are made, you need to restart apache.

Let me know if you have any questions.
 
Old 01-10-2011, 01:13 PM   #3
tkokkinos
LQ Newbie
 
Registered: Nov 2009
Location: Cleveland, OH
Distribution: Mandrake 10.2
Posts: 12

Original Poster
Rep: Reputation: 0
Postfix, PHP mail(), etc.

Thanks for your help and advice.

I installed Postfix and was surprised the amount of files processed in the terminal. I'm at a loss to understand why the XAMPP install did not do this correctly. I followed your instructions and also commented out the sendmail lines. I used MX to do a DNS lookup for my email and the mx01 is the #1 preference for windstream.net domain (see next paragraph).

I reloaded postfix and resent my form data. It looks like the mail is finally going to my mail server but checking the mail.info log under /var/log I see the following:
Jan 10 13:02:13 ted-desktop postfix/error[4667]: D6FAC182AEB: to=<tkokkinos@windstream.net>, relay=none, delay=366, delays=366/0.01/0/0.09, dsn=4.7.1, status=deferred (host mx01.windstream.net[162.39.147.49] refused to talk to me: 554 5.7.1 - ERROR: Mail Refused - <173.188.48.94> - See http://www.spamhaus.org/query/bl?ip=173.188.48.94) ------> at least now it is finding my email address correctly.

**************************************
Checking out this spamhaus.org link I see:
Ref: PBL424785
173.188.32.0/19 is listed on the Policy Block List (PBL)
Outbound Email Policy of Windstream Communications for this IP range:

It is the policy of Windstream Communications that unauthenticated email sent from this IP address should be sent out only via the designated outbound mail server allocated to Windstream Communications customers. To find the hostname of the correct mail server to use, customers should consult the original signup documentation or contact Windstream Communications Technical Support.

**************************************
Looking at this, is seems obvious that now my problem is some type of blocking by Windstream. I guess that I can test this using a Gmail account or some other such nonsense.

Do I need to do some type of authenication or is Windstream just being a pain and my best bet is to use another email server like Gmail?

Regards,
Ted Kokenos
 
Old 01-10-2011, 01:27 PM   #4
tkokkinos
LQ Newbie
 
Registered: Nov 2009
Location: Cleveland, OH
Distribution: Mandrake 10.2
Posts: 12

Original Poster
Rep: Reputation: 0
2nd reply - Postfix and mail (PHP)

I decided to try another email address/server and lo-and-behold, I got the message sent.

Evidently Windstream does not like this kind of stuff and possibly you can elaborate, per my first response.

At least now, I can play with the form.

Thanks again and I look forward to your advice on the Windstream issue.

Best regards,\
Ted Kokenos
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run xampp Apache server in ubuntu linux operating system. websoftexperts Linux - Software 1 05-27-2010 02:34 AM
PHP (XAMPP) install ssh2 module CentOS 5 Actionscript3 Linux - Server 2 04-13-2010 02:31 PM
help with php and/or mysql in xampp ChinookPiroh Linux - Software 7 05-15-2009 10:20 PM
problems running xampp php konqi Linux - Software 1 02-25-2008 02:26 PM
xampp and php charnel Programming 3 07-26-2005 03:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration