📣 Firmware Update Release:
Firmware Version v0.15 is now released! Please follow the link here or update via Cloudloop Device Manager.
SMTP
This functionality is only supported from Firmware V0.12
The RR-Mini supports an SMTP server designed specifically for sending attachments.
While the SMTP server is accessible over LAN, it uses IMT to transmit the attachments to Cloudloop Data. From there, the files can be forwarded to your specified email destination without incurring additional charges.
The server handles the attached file by compressing it and transmitting it via one or more IMT messages, depending on its size. Once received by Cloudloop Data, the file is automatically decompressed and delivered as intended.
Prerequisites​
- The SMTP Server must be enabled in the User configuration
- The device connecting to the RockREMOTE Mini must be connected via Ethernet and on a Private IPv4 within the Mini's range (By default
192.168.250.0/24
) - An Email Destination within Cloudloop Data must be set up with an attached group where the RockREMOTE Mini utilising SMTP is a part of
Payload
,Plaintext
andAssume Destination from Source
must be chosen for SMTP
Supported SMTP Options​
- AUTH:
NONE
- Port:
25
- Max Attachment Size:
165KB
- Recipients: One
To
field and twoCC
fields - Compression: All files are compressed before sending and decompressed in Cloudloop Data
RRMini: 220 RockREMOTE Mini Server Ready
Client: ehlo localhost
RRMini: 250-Hello
RRMini: 250 AUTH PLAIN
Client: Mail FROM: FROM@example.com
RRMini: 250 OK
Client: Rcpt TO: TO@example.com
RRMini: 250 OK
Client: Rcpt TO: CC1@example.com
RRMini: 250 OK
Client: Rcpt TO: CC2@example.com
RRMini: 250 OK
Client: DATA
RRMini: 354 Start mail input; end with CRLF.CRLF
Client: 'Content-Type: multipart/mixed; boundary="===============7430458958744601375=="\r\nMIME-Version: 1.0\r\nFrom: FROM@example.com\r\nTo: TO@example.com\r\nCc: CC1@example.com, CC2@example.com\r\nSubject: Example Subject\r\n\r\n--===============7430458958744601375==\r\nContent-Type: image/webp\r\nMIME-Version: 1.0\r\nContent-Transfer-Encoding: base64\r\nContent-Disposition: attachment; filename="image.webp"\r\n\r\nAAAAAAAAAAAAAA==\r\n\r\n--===============7430458958744601375==--\r\n.\r\n'
RRMini: 250 OK
Client: QUIT
RRMini: 221 OK
Currently the SMTP Server does not support any authentication AUTH
method.
Support for AUTH PLAIN
is currently under development.
Testing SMTP​
It's possible to test SMTP before use on Linux
Swiss Army Knife SMTP is a command-line tool that can be used to test and debug SMTP servers.
- Install with
sudo apt install swaks
- If not using DHCP - Static the IP of the network interface the RR-Mini is connected to, eg if connected to
eth0
usesudo ifconfig eth0 192.168.250.10
- Use an existing attachment or create a dummy attachment with
truncate -s 10000 10KB.txt
where 10000 is the size in bytes and 10KB.txt is the name of the file - Adjust and run the following command:
swaks --to to@example.com --to cc1@example.com --to cc2@example.com --from from@example.com --server 192.168.250.1 --header "Subject: Test Text File" --attach @10KB.txt