Notify email without autentication

Notify email without autentication

Postby maxdo » Tue Feb 11, 2020 10:54 am

Hi,
on my NAS, would i like to active the notify by email.
in the menu i can configure Server and port, but MUST configure the user and password too.
My provider auth my connection SMTP by ip addres, and doesn't require authentication U/P.

I had try to remove the configuration of user and password, but the System ask me tu put, because need.

how can i fix?

a other question it is how can i custome the FROM addres ofthe email? in the notify menu i don't see a fild for have that.
thanks
:thinking
maxdo
Donator VIP
Donator VIP
 
Posts: 53
Joined: Sun Dec 09, 2018 12:44 pm

Re: Notify email without autentication

Postby Jocko » Tue Feb 11, 2020 11:20 am

:shocked
My provider auth my connection SMTP by ip addres
That would mean you can send email only from your home and not for example from your smartphone connected to internet (which may use any IP)!

Currently notification feature can not work as you expect and requires to use an authentication step.
maxdo wrote:a other question it is how can i custome the FROM addres ofthe email? in the notify menu i don't see a fild for have that.
FROM field is always the account used to authenticate. As you do not have this step it will be an issue.

To work as you want I need to make some change and some outputs from your attempt.

I assume your NAS is behind the wanted public IP, then open a shell terminal and run this command:
Code: Select all
telnet yoursmtp.domain 25     
(if your provider uses an insecure smtp server) otherwise run
Code: Select all
openssl s_client -starttls smtp -connect yoursmtp.domain:PORT
PORT may be usually 25, 465 or 587 keep or remove the starttls option if it is required by your smtp server.

Then need to send the HELO command, may be in your case you should send a determined data. So try your IP or yoursmtp.com
Code: Select all
ehlo yoursmtp.domain
or
Code: Select all
ehlo your.authorized.IP
(it is really 'ehlo'). Then some responses should happen.

Please to paste all of them
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Notify email without autentication

Postby Jocko » Tue Feb 11, 2020 11:42 am

I edited my post (openssl command line)
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Notify email without autentication

Postby maxdo » Wed Jul 29, 2020 2:00 pm

§Hi jocko,
sorry me, but i completly forgot to have submit in past a similar request.
however, stil lthe issue with the other sMTP vodefone smtp.vodafone.net.au.
i think that the your firmware try to auth the send out email. however, becasue i can't leave blanck the field User and password.
so submit the request email sent, with that credentail however (i put a point in both field, to compalince the configuration form)
So, there no way to use a request smtp out withou credential?
many htnaks.
ciao
:thinking

Note: you have perfeclty right when said that use a smtp withou a u/p it is out security....but Vodafone thing in different way :woohoo

ciao
maxdo
Donator VIP
Donator VIP
 
Posts: 53
Joined: Sun Dec 09, 2018 12:44 pm

Re: Notify email without autentication

Postby Jocko » Thu Jul 30, 2020 10:08 am

Hi

We go to test if by disabling the auth command is enough when openssl is connect to your smtp server. please to note EHLO command uses as IP your public IP (WAN IP).

So get the package from your pm and store it in fvdw share.
Uncompress it
Code: Select all
tar -xf /direct-usb/fvdw/mail2.tgz

set run permissions
Code: Select all
chmod a+x /direct-usb/fvdw/mail2


On the notification menu, use as login the keyword "disabled" and any password string. Save your change but do not use the test button.

So now run a test like this
Code: Select all
 echo -e "This is a test\n without authentication! ...\n"|/direct-usb/fvdw/mail2 -s 'vodafone smtp test' any.receiver@address.com

where "any.receiver@address.com" is a valid email address where you can check if you receive the test email. it can be the email address to deliver system messages set on notification menu.

Please to post the output (of course you will have to hide your public IP...)

Note: if it does not work, you will have to use another email free server provider where authentication is required by creating a free account and then to use this account for relaying the notification to the deliver system address
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Notify email without autentication

Postby maxdo » Fri Jul 31, 2020 7:23 am

Hi, thanks for your answer.
i have followed your procedure.
i have not receive any email on my client, and this is the outpout of the command sent:


root@fvdwsl-base:/direct-usb/fvdw # echo -e "This is a test\n without authentication! ...\n"|/direc
t-usb/fvdw/mail2 -s 'SMTP SVR' supporto@MYDOMAIN
subject=SMTP SVR
to=supporto@MYDOMAIN
mode=1
CONNECTED(00000003)
3066696912:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:782:
---
no peer certificate available
---
No client certificate CA names sent
---
SSL handshake has read 7 bytes and written 517 bytes
---
New, (NONE), Cipher is (NONE)
Secure Renegotiation IS NOT supported
Compression: NONE
Expansion: NONE
---

Let me know

Thanks :)
maxdo
Donator VIP
Donator VIP
 
Posts: 53
Joined: Sun Dec 09, 2018 12:44 pm

Re: Notify email without autentication

Postby Jocko » Tue Aug 04, 2020 9:03 am

Hi

So I think this is the easiest way to fix your issue :
Jocko wrote:Note: if it does not work, you will have to use another email free server provider where authentication is required by creating a free account and then to use this account for relaying the notification to the deliver system address
and you can keep your vodafone address as system address.
Jocko
Site Admin - expert
 
Posts: 11367
Joined: Tue Apr 12, 2011 4:48 pm
Location: Orleans, France

Re: Notify email without autentication

Postby maxdo » Wed Aug 19, 2020 6:58 am

thnaks for your reply. i wil do that asap to fix my issue.
have a good holiday.
ciao
maxdo
Donator VIP
Donator VIP
 
Posts: 53
Joined: Sun Dec 09, 2018 12:44 pm


Return to Lacie 2Big Network vs2

Who is online

Users browsing this forum: No registered users and 3 guests