Jump to content



Photo

Mail not working

Answered Go to the full post mail not working

  • Please log in to reply
18 replies to this topic

#1 thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 12 February 2014 - 05:51

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.pickledbr...er-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



Best Answer +snaphat (Myles Landwehr) , 19 February 2014 - 03:16

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.

Go to the full post



#2 ichi

ichi

    Akihabara Style

  • Tech Issues Solved: 3
  • Joined: 20-December 04

Posted 12 February 2014 - 16:18

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?



#3 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 12 February 2014 - 17:37

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.



#4 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 13 February 2014 - 17:28

Anyone?



#5 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 75
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 14 February 2014 - 12:30

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



#6 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 14 February 2014 - 21:44

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



#7 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 75
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 15 February 2014 - 10:52

Well then this error seems wrong then

 

Cannot open smtp-mail.outlook.com:587



#8 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 16 February 2014 - 00:02

Here are some screenshots. Does it help?

http://imgur.com/dJ2eJKt

http://imgur.com/uCTeelf



#9 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 16 February 2014 - 00:29

Also this

http://imgur.com/xKipROb



#10 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 16 February 2014 - 20:46

Anyone have any ideas on what I can do?



#11 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 18 February 2014 - 02:17

We need a neonix ;)



#12 +BudMan

BudMan

    Neowinian Senior

  • Tech Issues Solved: 75
  • Joined: 04-July 02
  • Location: Schaumburg, IL
  • OS: Win7, Vista, 2k3, 2k8, XP, Linux, FreeBSD, OSX, etc. etc.

Posted 18 February 2014 - 18:23

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.



#13 +snaphat (Myles Landwehr)

snaphat (Myles Landwehr)

    Electrical & Computer Engineer

  • Tech Issues Solved: 29
  • Joined: 23-August 05
  • OS: Win/Lin/Bsd/Osx
  • Phone: dumb phone

Posted 19 February 2014 - 00:18

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/b...nt-using-ssmtp/



#14 OP thatguyandrew1992

thatguyandrew1992

    Neowinian Senior

  • Tech Issues Solved: 3
  • Joined: 22-January 09

Posted 19 February 2014 - 01:04

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

 

 

See: http://amirshk.com/b...nt-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
 



#15 +snaphat (Myles Landwehr)

snaphat (Myles Landwehr)

    Electrical & Computer Engineer

  • Tech Issues Solved: 29
  • Joined: 23-August 05
  • OS: Win/Lin/Bsd/Osx
  • Phone: dumb phone

Posted 19 February 2014 - 03:16   Best Answer

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.





Click here to login or here to register to remove this ad, it's free!