Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2008-01-15 04:43:31
- hydrolyte
- New Member
- Registered: 2008-01-15
- Posts: 8
Change SMTP Settings
This may be a dumb question, but I haven’t had any luck finding an answer in the documentation or on the forums.
I setup Textpattern for the first time earlier today, and am running it on a Windows host. Every time I try to use the mail function, I receive the following error:
Warning: mail() [function.mail]: SMTP server response: 501 Your domain does not seem to be valid. Could not find MX record for your domain. in C:\…\textpattern\lib\txplib_misc.php on line 916
I’m assuming this has something to do with the SMTP settings…in the FAQ there is an entry for anybody using a Windows host to change the SMTP and smtp_port entries, but I’m not having any luck finding them.
Thanks in advance.
Offline
Re: Change SMTP Settings
This is a DNS / mailserver issue.
To be able to diagnose this, it has to be clear which domain the error refers to.
A domain does not need an MX record, as long as it has an A record that can be used as a fallback for delivering email.
Offline
#3 2008-01-15 17:22:02
- hydrolyte
- New Member
- Registered: 2008-01-15
- Posts: 8
Re: Change SMTP Settings
So is this an issue with the host then? Or is it some setting in Textpattern that I need to modify?
Thanks!
Offline
Re: Change SMTP Settings
What is your domain? Without knowing it, it’s difficult to tell what the problem is.
I suspect it’s a problem with the DNS records for your domain. In that case, it’s not TXP related.
Offline
#5 2008-01-15 18:09:18
- hydrolyte
- New Member
- Registered: 2008-01-15
- Posts: 8
Re: Change SMTP Settings
The domain is maekpoast.net
Offline
Re: Change SMTP Settings
maekpoast.net. 86400 IN MX 10 mail.maekpoast.net.
It does have an MX record, so either the mailserver does not have DNS access (unlikely) or it’s a different domain that the error message is talking about. Ask your webhost, they can check the mail server logs to find the exact error.
Offline
#7 2008-01-15 19:13:00
- hydrolyte
- New Member
- Registered: 2008-01-15
- Posts: 8
Re: Change SMTP Settings
I talked to the host and they said I had to point my SMTP host to mail.maekpoast.net and my SMTP port to 110…is that an issue and if so where should it go?
Offline
Re: Change SMTP Settings
If that was the answer, then you need a different host. I think they misinterpreted your question.
Most (if not all) PHP scripts expect to be able to use the built-in mail() function for sending mail without doing additional configuration (unless you can configure this yourself in php.ini).
110 = POP3
25 = SMTP
Offline
#9 2008-01-15 20:24:17
- hydrolyte
- New Member
- Registered: 2008-01-15
- Posts: 8
Re: Change SMTP Settings
I’ve contacted my webhost (midPhase) and they seem to think its an issue with the PHP setup. I’ll update this thread when I find out more.
Thanks very much ruud, you’ve been very helpful.
Offline
#10 2008-01-15 21:50:16
- hydrolyte
- New Member
- Registered: 2008-01-15
- Posts: 8
Re: Change SMTP Settings
Sadly, their response has still left me with questions…
Hello.
Sorry, due to numerious attempts to send spam via php/asp scripts on your server we had to disable CDONTS.
From now all users should use CDOSYS to send emails through the forms on the websites
It requires SMTP auithentication and valid email addresses for sender/recipients
Thank you.
Last edited by hydrolyte (2008-01-15 21:52:12)
Offline
Re: Change SMTP Settings
I know CDONTS and CDOSYS only from ASP scripting (windows server). I doubt that’s related to PHP scripts, but perhaps someone with more knowledge about PHP scripting on windows can enlighten us.
The email address you entered in TXP for your username, does that have the same domain name (after the @) as the website you’re hosting there?
Offline
#12 2008-01-16 11:59:35
- Mary
- Sock Enthusiast
- Registered: 2004-06-27
- Posts: 6,236
Re: Change SMTP Settings
I know CDONTS and CDOSYS only from ASP scripting (windows server). I doubt that’s related to PHP scripts, but perhaps someone with more knowledge about PHP scripting on windows can enlighten us.
Uh, yeah, CDONTS and CDOSYS are ASP components, which has nothing to do with PHP.
It requires SMTP auithentication and valid email addresses for sender/recipients
Oh, I think that may be the problem: it looks like your host has SMTP authentication enabled, and PHP’s mail() doesn’t support that.
Offline