[SOLVED] sendmail problems

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

rabw
Forum Newbie
Posts: 18
Joined: Tue May 29, 2007 5:57 pm

Post 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.
rabw
Forum Newbie
Posts: 18
Joined: Tue May 29, 2007 5:57 pm

Post 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:
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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).
Arawn
Forum Commoner
Posts: 42
Joined: Sat May 05, 2007 6:03 am

Post 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
rabw
Forum Newbie
Posts: 18
Joined: Tue May 29, 2007 5:57 pm

Post 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?
Arawn
Forum Commoner
Posts: 42
Joined: Sat May 05, 2007 6:03 am

Post 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.
rabw
Forum Newbie
Posts: 18
Joined: Tue May 29, 2007 5:57 pm

Post 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.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post 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 :).
rabw
Forum Newbie
Posts: 18
Joined: Tue May 29, 2007 5:57 pm

Post 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
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Ah ha! That's a very useful link, thank you :)
Post Reply