Mail not working


Recommended Posts

Hey all,

I am having trouble getting mail to work. I am new to Unix and my friend help me setup almost all of my new webserver at Digital Ocean.

 

I followed this guide, but I skipped the apart about changing root to root_on-lnas. I dont need more info, root is fine.

http://www.pickledbrain.com/2011/04/setting-simple-outgoing-email-on-a-ubuntu-server-using-ssmtp/

 

I currently have my mail with my domain, shayconcepts.com, with outlook for free and that works just fine. I would like to get outgoing mail through my server working since my contact form has stopped working.

 

Here are my settings in the ssmtp.conf file - it has the permissions 755 i think

root=contact@shayconcepts.com

mailhub=smtp-mail.outlook.com:587

rewriteDomain=shayconcepts.com

hostname=shayconcepts.com

FromLineOverride=YES

UseTLS=YES

AuthUser=contact@shayconcepts.com

AuthPass=password

 

 

I get the error   send-mail: Cannot open smtp-mail.outlook.com:587

Link to comment
Share on other sites

Looking around people seem to be using smtp.live.com (which seems to be the address for SMTP  on their POP3 servers) rather than smtp-mail.outlook.com (IMAP?).

 

Maybe worth trying, just in case?

Link to comment
Share on other sites

Looking around people seem to be using smtp.live.com (which seems to be the address for SMTP  on their POP3 servers) rather than smtp-mail.outlook.com (IMAP?).

 

Maybe worth trying, just in case?

It didn't work. I get the same port, then removed it and it defaulted to port 25. Same type of error.

Link to comment
Share on other sites

smtp.live.come is just cname

 

;; QUESTION SECTION:                                                        
;smtp-mail.outlook.com.         IN      A                                   
                                                                            
;; ANSWER SECTION:                                                          
smtp-mail.outlook.com.  46      IN      CNAME   smtp.live.com.              
smtp.live.com.          3346    IN      CNAME   smtp.glbdns2.microsoft.com.
smtp.glbdns2.microsoft.com. 30  IN      A       65.55.172.254             

 

I would validate you can connect for starters wth that error "Cannot open smtp-mail.outlook.com:587"

 

So just telnet to that host and port and you should see something like this

 

post-14624-0-73339200-1392381014.png

Link to comment
Share on other sites

smtp.live.come is just cname

 

;; QUESTION SECTION:                                                        

;smtp-mail.outlook.com.         IN      A                                   

                                                                            

;; ANSWER SECTION:                                                          

smtp-mail.outlook.com.  46      IN      CNAME   smtp.live.com.              

smtp.live.com.          3346    IN      CNAME   smtp.glbdns2.microsoft.com.

smtp.glbdns2.microsoft.com. 30  IN      A       65.55.172.254             

 

I would validate you can connect for starters wth that error "Cannot open smtp-mail.outlook.com:587"

 

So just telnet to that host and port and you should see something like this

 

attachicon.gifvalidateconnection.png

I got something very similar

Link to comment
Share on other sites

does he close the connect right away?  As you see in my connection it was waiting for mail and I sent quit before the connection was closed.  Let me fire up mail on the new linux box I just brought online 13.10 server, and see what might go wrong.

Link to comment
Share on other sites

Are you trying to send mail from root? If not you need to do the following:

 

 

See: http://amirshk.com/blog/2012/10/01/forward-roots-mail-to-a-gmail-account-using-ssmtp/

I wasn't before, but I just tried to send as root and got the error "Cannot open smtp-mail.outlook.com:587"

does he close the connect right away?  As you see in my connection it was waiting for mail and I sent quit before the connection was closed.  Let me fire up mail on the new linux box I just brought online 13.10 server, and see what might go wrong.

I instantly get the error Cannot open smtp-mail.outlook.com:587

 

Link to comment
Share on other sites

Hmm, looking online I noticed the following difference from other configurations from what you have (UseTLS):

 

UseSTARTTLS=YES

 

Some other things: check /var/log/maillog to see if it has any more detailed error messages that you aren't seeing via command line. Also, please verify that it isn't the machines firewall interfering by briefly turning it off and then testing.

Link to comment
Share on other sites

mail.log has this a bunch

Creating SSL connection to host

SSL connection using (null)

Cannot open smtp-mail.outlook.com:587

 

Mail.err just has

Cannot open smtp-mail.outlook.omc:587


Btw, I'm very new to Unix, Apache and all this. So if there is something basic that isn't deault, I may not have done it.

Link to comment
Share on other sites

I changed to UseSTARTTLS=YES and now I don't get an error (It does say EOT though) but I didn't receive the mail.  I wonder if it's just taking a little bit


IT WORKED! IT JUST WENT TO THE WRONG EMAIL :D

 

UseSTARTTLS=YES!!!

  • Like 1
Link to comment
Share on other sites

This topic is now closed to further replies.