email after user sign-up

hello,

i keep getting error messages in the ROS log regarding the email which is supposed to be send to the signed up users. i keep getting this error:

Jun 16 16:30:22 10.1.1.1 system,e-mail,error Error sending e-mail: invalid BODY

i am using the UM default body for the email and i have verified the email server works (our main SMTP relay). how do others make this work ?

regards
Jan

PS: here the full log:

Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 220 smtp.domain.com ESMTP
Jun 16 16:30:22 10.1.1.1 e-mail,debug send EHLO [10.1.1.1]
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250-smtp.domain.com
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250-STARTTLS
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250-PIPELINING
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250-8BITMIME
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250 AUTH LOGIN PLAIN CRAM-MD5
Jun 16 16:30:22 10.1.1.1 e-mail,debug send MAIL FROM: <address@domain.com>
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250 ok
Jun 16 16:30:22 10.1.1.1 e-mail,debug send RCPT TO: <cust@domain.com>
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 250 ok
Jun 16 16:30:22 10.1.1.1 e-mail,debug send DATA
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 354 go ahead
Jun 16 16:30:22 10.1.1.1 e-mail,debug send .
Jun 16 16:30:22 10.1.1.1 e-mail,debug recv: 451 Go away !!!
Jun 16 16:30:22 10.1.1.1 e-mail,debug send RSET
Jun 16 16:30:22 10.1.1.1 e-mail,debug send QUIT
Jun 16 16:30:22 10.1.1.1 system,e-mail,error Error sending e-mail: invalid BODY

Be nice to see the e-mail it is sending? could be an error in the script… somebody with a bit more knowledge about this mite already have an answer for you but i will bump it for you. And more info would be great. -Jordan

i would love to see the body too, but its obviously not accepted for delivery. the body is the standard email send by UM. here the default from the UM:

Your authorization data:
login: %login%
password: %password%

To check your status and buy extented time go to address %link% .

i would have to assume that the UM does actually replace the variables by correct values.

Jan

PS: just to give as much info as possible. the MTA is qmail and is our main smtp relay and works for everything else perfect !!

hello MikroTik ?

any input on this ? any helpful response of MT is very much appreciated here.

Jan

well, i do now that. but it does not reject any other email send via that server. i just think there is a failure in the formal of the page and try to figure out where to start. qmail is not exactly something exotic, its in fact one of the most commonly used MTA.

regards
Jan

ps: between the “go ahead” and “go away” should be the email body. the “.” is the last character in the email body to tell the server that he can start processing the email. since there is no body in the log i have to assume the UM does not actually send anything OR its using some strange encoding which can not be interpreted as an email body by the MTA.

Any new on this topic?

Thanks

J. Boardman

I have the same problem, did you resolve it ?

I just found that if i leave a free line by pressing “ENTER” the error “Invalid Body” appears. Why?

I have the same problem with “Invalid BODY”. The same command: tool e-mail send to=me@mydomain.com subject=“test” body=testemail works fine from another MikroTik board. Have You reseolved that problem with “Invalid BODY” ??