I’ve set up sending mail via a contact form (which has always worked before - easily). This time, using Sendmail and phpMail don’t seem to get the emails to me, even though they say they’ve been sent when debugging is turned on. One customer said that Spamhaus rejected the mails, so that may or may not be the problem.
So, I resorted to using SMTP, but get the following error:
Unable to send email at this time. Debugging Message 220 auth.smtp.oneandone.co.uk (mrelayeu7) Welcome to Nemesis ESMTP server
hello:
Failed to Send Command. Error: Failed to send AUTH LOGIN command. Error:
from: 421 auth.smtp.oneandone.co.uk connection timed out
Failed to Send Command. Error: 421 auth.smtp.oneandone.co.uk connection timed out
to:
Failed to Send Command. Error:
data:
Failed to Send Command. Error:
Failed to send SMTP email. Error: Unable to send email using SMTP
The odd thing is that I know that auth.smtp.oneandone.co.uk is the wrong address and in fact, System Preferences › Email Configuration uses auth.smtp.1and1.co.uk.
Where is EE finding that wrong server name? I’m sure I’ve not put it anywhere…
No, that’s the one that doesn’t work. See the error message above.
Not sure what your unchecked thing is referring to. auth usually means that authorisation (i.e., username and password) is required. And, of course, there’s no checkbox in the email settings page…
(ExpressionEngine 1.6.3 - Build: 20080421, by the way)
I’m pretty sure that addy is coming back from the mail server- it’s not what EE’s sending out. I just googled around and found this thread which suggested the alternate server. And if you don’t put in a username or password, it will work as long as it’s not required. (In other words- EE doesn’t require it.)
I think it’s the server rather than an EE setting. But flipping things around may get us some different error messages to confirm.
OK - I see what you’re saying. It’s just so odd that I put one server in EE (auth.smtp.1and1.co.uk) and the error message comes back from a completely different one. The one I use in EE works in my email client, for example and that also has authorisation turned on.
I will try putting the “wrong” one in EE and see what I get back…
I got myself taken off the Spamhaus naughty list and phpMail works again, so this is more or less solved.
I may end up back on the list since some of the stuff they said was required (proper reverse DNS mapping) is somewhat out of my control, so I have no idea if we do that correctly or not, but if anyone comes up against the same issue (mails appearing to be sent but never reaching their destination), you can check your IP addess against Spamhous’s list here:
OK- you send via smtp via your email client- you test on outlook or? And putting in the exact settings from the client (that we know works)- still gets you that first debug message. Am I right so far? Do you remember if you had to tweak a port number, anything like that? And run a quick test right now using the client- make sure it’s sending ok now- in case it’s some temporary blip.
I use thunderbird. And yes, exact settings that are in my client and the client email works every time. No port number tweaks or anything.
The mailserver, by the way, is here in the UK (on oneandone, obviously) and the webserver is in the states (amazon’s new EC2 web services). The error message takes a good 3 to 5 minutes to show up, so the error may actually be a timeout for some reason?
Like I said, since Spamhaus took us off their list, I can use PHPMail again, but that may not last if the DNS servers aren’t set up to their liking, so getting an SMTP solution would be nice if anyone can decode that error message!
Hm- but…. before I do that, based on this post- is it a windows box? And while we’re at it- check in ‘Admin- System Prefs- Email’ that you have the first two fields filled out- webmaster name and return email.
OK- crew isn’t seeing anything wrong on this end, so best advice at the moment is to contact the hosts and see if they can advise further. Let us know what they have to say.
I may end up back on the list since some of the stuff they said was required (proper reverse DNS mapping) is somewhat out of my control, so I have no idea if we do that correctly or not, but if anyone comes up against the same issue (mails appearing to be sent but never reaching their destination), you can check your IP addess against Spamhous’s list here: http://www.spamhaus.org/lookup.lasso
Well, thanks for letting us know. Spamhaus is by no means the only real time blacklist, of course, and their operations can be rather controversial at times. If you want to comply with their policies, make sure you have somebody properly configure your DNS records, mail servers etc.