Page 1 of 1

Swiftmailer and shell access

Posted: Fri Jul 07, 2006 11:48 am
by matthijs
I'm trying to work with the Swiftmailer class. However, as documented, one has to try to telnet to the smtp server first to see if that's working, I've never telnetted before (is that a good word?), but I've opened the command prompt on my windows box and after entering telnet smtp.mydomain.com 25 it seemed to work (trying to connect to ...)

However, I cannot make a connection. Looking up my hosts' info, it says:
"Telnet and Secure Shell are not switched on because of security reasons. To protect your data no one is allowed shell access."

Does that mean I can't use Swiftmailer?

Posted: Fri Jul 07, 2006 11:55 am
by jayshields
I don't know, but if your telnet'ing or SSH'ing then I can highly recommend PuTTY, instead of command prompt.

Posted: Fri Jul 07, 2006 12:31 pm
by Weirdan
"hosts' info"? Do you mean your hosting company or what?

Posted: Fri Jul 07, 2006 12:33 pm
by matthijs
Weirdan: yes, I mean the info I read on the website of my hosting company. Apparently they do not allow telnet access. So I was wondering if that means if I cannot use swiftmailer.

jayshields: thanks for the link. I'll take a look at putty.

Posted: Sun Jul 09, 2006 12:26 pm
by Chris Corbyn
matthijs wrote:Weirdan: yes, I mean the info I read on the website of my hosting company. Apparently they do not allow telnet access. So I was wondering if that means if I cannot use swiftmailer.

jayshields: thanks for the link. I'll take a look at putty.
No it doesn't mean you can't use Swift ;) It just means you can't check clearly if the two servers can speak to each other. More than likely it will just work if the SMTP server is active. Telnet from your own PC as a quick check if you're unsure if the actual SMTP details are correct.

Posted: Sun Jul 09, 2006 1:38 pm
by matthijs
It seems I'm just not allowed to telnet my server for security reasons. Well, it's a cheap shared host so you can't expect too much I guess.

I did manage to get swiftmailer send a mail, so the smtp setting is correct. Next problem is that only mailing to an email address from the domain itself is allowed (i.e. info@mydomain.com on mydomain.com). Every other address results in
[response] => 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)

Using mail() or other mail classes (like phpmailer) I can email those other email addresses. So that's very strange.

One quick question: with smtp details one means just smtp.mydomain.com, isn't it?

Posted: Sun Jul 09, 2006 2:14 pm
by Chris Corbyn
matthijs wrote:One quick question: with smtp details one means just smtp.mydomain.com, isn't it?
(Assumes the email is I got via the website from your good self too :) )

The SMTP server could be anything.... if you're specifiying it like you are then maybe you're getting these relaying denied messages because the server you're sending through is not the same as if you use sendmail (as in, PHPMailer, mail() ).

Try using the sendmail connection instead or (possibly) put localhost as the server to connect to ;)

Posted: Sun Jul 09, 2006 3:17 pm
by matthijs
Yes indeed, that was my email :)

I know that the smtp details I now use are correct. Only problem is that sending is only allowed to my own domain, not to any other address.

I have also contacted my host to ask why this happens. My own knowledge in this area is lacking severely, unfortunately :cry: