DrJohnSmitherson Posted February 12, 2014 Share Posted February 12, 2014 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 More sharing options...
ichi Posted February 12, 2014 Share Posted February 12, 2014 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 More sharing options...
DrJohnSmitherson Posted February 12, 2014 Author Share Posted February 12, 2014 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 More sharing options...
DrJohnSmitherson Posted February 13, 2014 Author Share Posted February 13, 2014 Anyone? Link to comment Share on other sites More sharing options...
+BudMan MVC Posted February 14, 2014 MVC Share Posted February 14, 2014 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 Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 14, 2014 Author Share Posted February 14, 2014 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 validateconnection.png I got something very similar Link to comment Share on other sites More sharing options...
+BudMan MVC Posted February 15, 2014 MVC Share Posted February 15, 2014 Well then this error seems wrong then Cannot open smtp-mail.outlook.com:587 Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 16, 2014 Author Share Posted February 16, 2014 Here are some screenshots. Does it help? http://imgur.com/dJ2eJKt http://imgur.com/uCTeelf Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 16, 2014 Author Share Posted February 16, 2014 Also this http://imgur.com/xKipROb Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 16, 2014 Author Share Posted February 16, 2014 Anyone have any ideas on what I can do? Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 18, 2014 Author Share Posted February 18, 2014 We need a neonix ;) Link to comment Share on other sites More sharing options...
+BudMan MVC Posted February 18, 2014 MVC Share Posted February 18, 2014 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 More sharing options...
snaphat (Myles Landwehr) Member Posted February 19, 2014 Member Share Posted February 19, 2014 Are you trying to send mail from root? If not you need to do the following: sudo chown root:mail /etc/ssmtp/ssmtp.conf sudo gpasswd -a USERNAME mail See: http://amirshk.com/blog/2012/10/01/forward-roots-mail-to-a-gmail-account-using-ssmtp/ Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 19, 2014 Author Share Posted February 19, 2014 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 More sharing options...
snaphat (Myles Landwehr) Member Posted February 19, 2014 Member Share Posted February 19, 2014 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 More sharing options...
DrJohnSmitherson Posted February 19, 2014 Author Share Posted February 19, 2014 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 More sharing options...
DrJohnSmitherson Posted February 19, 2014 Author Share Posted February 19, 2014 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!!! snaphat (Myles Landwehr) 1 Share Link to comment Share on other sites More sharing options...
snaphat (Myles Landwehr) Member Posted February 19, 2014 Member Share Posted February 19, 2014 Cool, is the wrong email address part a configuration issue? Link to comment Share on other sites More sharing options...
DrJohnSmitherson Posted February 19, 2014 Author Share Posted February 19, 2014 Cool, is the wrong email address part a configuration issue? Just the mail command. I didn't realize the address after mail was the 'to' :) snaphat (Myles Landwehr) 1 Share Link to comment Share on other sites More sharing options...
Recommended Posts