Ok,
I found some thing odd,
If i send a email from terminal it works,
But when log tries to send a email it says:
invalid FROM address
but it works with terminal email?
What could be the problem.
I sent a email with terminal:
and then made it do a email log: here is the log:
16:57:44 e-mail,debug recv: 220 mx.google.com ESMTP h29sm1637283wbc.9
16:57:44 e-mail,debug send EHLO [192.168.1.202]
16:57:45 e-mail,debug recv: 250-mx.google.com at your service, [41.213.41.236]
16:57:45 e-mail,debug recv: 250-SIZE 35651584
16:57:45 e-mail,debug recv: 250-8BITMIME
16:57:45 e-mail,debug recv: 250-STARTTLS
16:57:45 e-mail,debug recv: 250 ENHANCEDSTATUSCODES
16:57:45 e-mail,debug send STARTTLS
16:57:45 e-mail,debug recv: 220 2.0.0 Ready to start TLS
16:57:47 e-mail,debug send EHLO [192.168.1.202]
16:57:48 e-mail,debug recv: 250-mx.google.com at your service, [41.213.41.236]
16:57:48 e-mail,debug recv: 250-SIZE 35651584
16:57:48 e-mail,debug recv: 250-8BITMIME
16:57:48 e-mail,debug recv: 250-AUTH LOGIN PLAIN XOAUTH
16:57:48 e-mail,debug recv: 250 ENHANCEDSTATUSCODES
16:57:48 e-mail,debug send AUTH PLAIN AHJvdXRlckB6YXBvdGVsLmNvLnphAHphcG90ZWwsLi
8=
16:57:49 e-mail,debug recv: 235 2.7.0 Accepted
16:57:49 e-mail,debug send MAIL FROM: <router@zapotel.co.za>
16:57:50 e-mail,debug recv: 250 2.1.0 OK h29sm1637283wbc.9
16:57:50 e-mail,debug send RCPT TO: <zapotechcomputers@gmail.com>
16:57:50 e-mail,debug recv: 250 2.1.5 OK h29sm1637283wbc.9
16:57:50 e-mail,debug send DATA
16:57:51 e-mail,debug recv: 354 Go ahead h29sm1637283wbc.9
16:57:51 e-mail,debug send .
16:57:53 e-mail,debug recv: 250 2.0.0 OK 1290005872 h29sm1637283wbc.9
16:57:53 e-mail,debug send QUIT
16:57:53 e-mail,debug recv: 221 2.0.0 closing connection h29sm1637283wbc.9
16:59:31 system,error,critical login failure for user admin via winbox
16:59:32 e-mail,debug recv: 220 mx.google.com ESMTP a17sm1637286wbe.18
16:59:32 e-mail,debug send EHLO [192.168.1.202]
16:59:33 e-mail,debug recv: 250-mx.google.com at your service, [41.213.41.236]
16:59:33 e-mail,debug recv: 250-SIZE 35651584
16:59:33 e-mail,debug recv: 250-8BITMIME
16:59:33 e-mail,debug recv: 250-STARTTLS
16:59:33 e-mail,debug recv: 250 ENHANCEDSTATUSCODES
16:59:33 e-mail,debug send MAIL FROM: <router@zapotel.co.za>
16:59:34 e-mail,debug recv: 530 5.7.0 Must issue a STARTTLS command first. a17sm
1637286wbe.18
16:59:34 e-mail,debug send RSET
16:59:34 e-mail,debug recv: 250 2.1.5 Flushed a17sm1637286wbe.18
16:59:34 e-mail,debug send QUIT
16:59:35 e-mail,debug recv: 221 2.0.0 closing connection a17sm1637286wbe.18
16:59:35 system,e-mail,error Error sending e-mail: invalid FROM address
but while typing this i figured out my problem
i need to make all emails say tls=yes