Page 2 of 2

Posted: Wed May 30, 2007 10:18 am
by rabw
Hi Chris and thanks for the reply.

I downloaded the version I have just the other day from here http://www.shiftthis.net/wordpress-swift-smtp-plugin/

I'll have a play with telnet again on the server. Dont think its a firewall issue because when I switched the firewall off it was exactly the same and also I setup the mail program (cant remember its name, but like Outlook Express on linux) which worked fine.

BTW my server IS at home if that's what you meant.

Posted: Wed May 30, 2007 4:21 pm
by rabw
Hi everyone,

when trying to connect to telnet googlemail I get to the 1st bit then I assume I cant do anything more because after you're connected it requires TLS?

with telnet to my ISP (smtp.orangehome.co.uk) I can connect, say HELO but after that when I type "mail from: address@address.com" I just get "501 Bad address syntax". Is this because I do not have a static IP and use dyndns so the domain in my address isnt directly pointed to me? :?

EDIT: Bizarrely (to me) I can send emails over smtp.orangehome.co.uk in outlook express from my address@domain.com :roll:

Posted: Thu May 31, 2007 8:13 am
by Chris Corbyn
Bad address syntax is because you need < and > around it:

Code: Select all

MAIL FROM: <address@address.com>
Swift doesn't do starttls because of PHP limitations. If you're going to use TLS with Swift you have to connect with TLS already started and already on the secure port (465).

Posted: Thu May 31, 2007 8:32 am
by Arawn
There's an envelop address sent by sendmail which usually a combination of your linux user name and machine name which can't be verified by DNS lookup. That maybe why your mail is bouncing. My Kubuntu box uses Postfix for SMTP, so using smtp_generic_map directive I can spoof my email address as something verifiable by mail servers, like my google account address.

Check out this post for details: http://ubuntuforums.org/showpost.php?p= ... ostcount=4

Posted: Thu May 31, 2007 4:10 pm
by rabw
ok, I've sent a few emails from the terminal through smtp.orangehome.co.uk 25 and it worked fine...

does this mean that this...
Array
(
[0] => Array
(
[num] => 0
[time] => 0.63940200 1180645658
[message] => Connection to the given MTA failed. The Connection Interface said: Permission denied
)

)


Log:

Array
(
)
...is because apache does not have permission to something? My httpd.conf says the user and group is apache.

Arawn, do I need to be worrying about sendmail if I'm using SMTP?

Posted: Thu May 31, 2007 4:46 pm
by Arawn
rabw wrote:Arawn, do I need to be worrying about sendmail if I'm using SMTP?
Oops ... I didn't notice this thread had been necromanced. :oops: If your using SMTP [not Mail()] this should not be a problem as long as your sending valid addresses.

Posted: Fri Jun 01, 2007 11:03 am
by rabw
d11wtq wrote:It's either a permissions problem, or a firewall rule. Also, when you connect via telnet are you doing it *from* the same server? I've had a lot of people try connecting from home rather than from their web host.

That's old code too. I'm pretty sure the wordpress plugin author released a version which uses Swift 3. I could be wrong though.
So, since telnet does work, then I can assume its not a firewall thing? In which case do you think it is likely to be a file permission or some kind of global permission? The swift mailer plugin folder is all chmod 777. If I need to change something other than file permissions could anyone give me a pointer of where to start/the terminal command to type and I will go and get google.

Thanks for everyones help.

Posted: Fri Jun 01, 2007 3:20 pm
by Chris Corbyn
rabw wrote:
d11wtq wrote:It's either a permissions problem, or a firewall rule. Also, when you connect via telnet are you doing it *from* the same server? I've had a lot of people try connecting from home rather than from their web host.

That's old code too. I'm pretty sure the wordpress plugin author released a version which uses Swift 3. I could be wrong though.
So, since telnet does work, then I can assume its not a firewall thing? In which case do you think it is likely to be a file permission or some kind of global permission? The swift mailer plugin folder is all chmod 777. If I need to change something other than file permissions could anyone give me a pointer of where to start/the terminal command to type and I will go and get google.

Thanks for everyones help.
You'll have to contact your web host since it's something at a apache/php level that's causing the problem. Basically fsockopen() is not working... I'm sure your host will have a simple answer for that :).

Posted: Sun Jun 03, 2007 9:00 am
by rabw
Thanks for telling me about the fsockopen() thing :D

Did some searching and tried what this guy did and it worked! SElinux thing.

http://www.linuxforums.org/forum/redhat ... enied.html

Posted: Sun Jun 03, 2007 9:36 am
by Chris Corbyn
Ah ha! That's a very useful link, thank you :)