Community discussions

MUM Europe 2020
 
snoozer
Member Candidate
Member Candidate
Topic Author
Posts: 154
Joined: Mon Jun 18, 2007 5:13 pm
Location: Schull, West-Cork, Ireland.

email after user sign-up

Mon Jun 16, 2008 6:34 pm

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
 
User avatar
jordantrx
Long time Member
Long time Member
Posts: 505
Joined: Tue Oct 23, 2007 8:58 pm
Location: WAY upstate NY

Re: email after user sign-up

Mon Jun 16, 2008 6:56 pm

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
~Agricultural WISP "ZONE"~ Beware of oncoming cattle and dont hit the farmer!!! I need to ask him about using his silo for an AP first"~

*Automated Billing Installer* http://wiki.mikrotik.com/wiki/AutomatedBilling Built by Krige ;-)
 
snoozer
Member Candidate
Member Candidate
Topic Author
Posts: 154
Joined: Mon Jun 18, 2007 5:13 pm
Location: Schull, West-Cork, Ireland.

Re: email after user sign-up

Mon Jun 16, 2008 7:09 pm

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 !!
 
snoozer
Member Candidate
Member Candidate
Topic Author
Posts: 154
Joined: Mon Jun 18, 2007 5:13 pm
Location: Schull, West-Cork, Ireland.

Re: email after user sign-up

Wed Jun 18, 2008 3:06 am

hello MikroTik ?

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

Jan
 
snoozer
Member Candidate
Member Candidate
Topic Author
Posts: 154
Joined: Mon Jun 18, 2007 5:13 pm
Location: Schull, West-Cork, Ireland.

Re: email after user sign-up

Wed Jun 18, 2008 11:22 am

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.
 
boardman
Member Candidate
Member Candidate
Posts: 260
Joined: Fri May 28, 2004 11:10 pm
Location: Mexico
Contact:

Re: email after user sign-up

Thu Feb 26, 2009 1:07 am

Any new on this topic?

Thanks

J. Boardman
 
strg
Member Candidate
Member Candidate
Posts: 100
Joined: Sun Mar 07, 2010 4:01 am

Re: email after user sign-up

Sun Jan 30, 2011 8:13 pm

I have the same problem, did you resolve it ?
 
strg
Member Candidate
Member Candidate
Posts: 100
Joined: Sun Mar 07, 2010 4:01 am

Re: email after user sign-up

Mon Jan 31, 2011 1:12 am

I just found that if i leave a free line by pressing "ENTER" the error "Invalid Body" appears. Why?
 
rzirzi
Member
Member
Posts: 386
Joined: Mon Oct 09, 2006 2:33 pm

Re: email after user sign-up

Fri Jan 31, 2014 8:59 am

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" ??

Who is online

Users browsing this forum: No registered users and 5 guests