What's new

amtm amtm - e-mail settings.

Try unsetting the '--insecure' flag to nothing

My guess is curl won't revert to plainauth if there is an ssl flag set
Unfortunately not working

# Server settings #
SMTP="192.168.0.3"
PORT="2525"
PROTOCOL="smtp"
SSL_FLAG=""

Code:
1. Send testmail
2. Send testmail, verbose output

Enter your selection [1-2 e=Exit] 2

*   Trying 192.168.0.3:2525...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0* Connected to 192.168.0.3 (192.168.0.3) port 2525 (#0)
< 220 kostyaesmukov-smtp_to_telegram1 SMTP Guerrilla(unknown) #2 (1) 2022-12-14T05:57:24Z
> EHLO amtm-mail-body
< 250-kostyaesmukov-smtp_to_telegram1 Hello
< 250-SIZE 50000000
< 250-PIPELINING
< 250-ENHANCEDSTATUSCODES
< 250 HELP
* STARTTLS not supported.
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0
curl: (64) STARTTLS not supported.

sending testmail failed
 
Last edited:
Unfortunately not working

curl: (64) STARTTLS not supported.
amtm has the --ssl-reqd flag set, you may not be able to get around it as Id imagine with that flag set curl won't revert to plainauth

You could maybe try removing that flag in /jffs/addons/amtm/email.mod in the send_testmail() function and do another test and if it works Im not sure where else in his scripts youd have to change it.
 
amtm has the --ssl-reqd flag set, you may not be able to get around it as Id imagine with that flag set curl won't revert to plainauth

You could maybe try removing that flag in /jffs/addons/amtm/email.mod in the send_testmail() function and do another test and if it works Im not sure where else in his scripts youd have to change it.
Thanks a lot!!! The test passed, notification is delivered!!!!

I also removed --ssl-reqd in the wan-failover.sh script I needed and everything also worked!
 
Last edited:
This is what I used for Gmail in the email settings for AMTM, and it worked

Code:
  1. Edit From address:   [email protected]
  2. Edit To name:        Some Person
  3. Edit To address:     [email protected]
  4. Edit Router name:    RT-AX88U
  5. Edit User name:      [email protected]
  6. Edit Password:       select Edit to view (application-specific password used)
  7. Edit SMTP Server:    smtp.gmail.com
  8. Edit Server port:    465
  9. Edit Protocol:       smtps
 10. Edit SSL flag:       Set to --insecure if curl problems occur
 11. Send testmail to confirm settings

10. I left it empty and it works
 
This is what I used for Gmail in the email settings for AMTM, and it worked

Code:
  1. Edit From address:   [email protected]
  2. Edit To name:        Some Person
  3. Edit To address:     [email protected]
  4. Edit Router name:    RT-AX88U
  5. Edit User name:      [email protected]
  6. Edit Password:       select Edit to view (application-specific password used)
  7. Edit SMTP Server:    smtp.gmail.com
  8. Edit Server port:    465
  9. Edit Protocol:       smtps
 10. Edit SSL flag:       Set to --insecure if curl problems occur
 11. Send testmail to confirm settings

10. I left it empty and it works

Tried these settings but can't get it to work (curl error). Tried SSL flag: both blank and --insecure. Also used google app password with/without spaces.
 
Tried these settings but can't get it to work (curl error). Tried SSL flag: both blank and --insecure. Also used google app password with/without spaces.

This is mine: Note the SSL Flag Parameter

Code:
  1. Edit From address:   [email protected]
  2. Edit To name:        Some Person
  3. Edit To address:     [email protected]
  4. Edit Router name:    RT-AX88U Pro
  5. Edit User name:      [email protected]
  6. Edit Password:       select Edit to view (application-specific password used) - THIS TOOK A BIT OF SETTING UP WITH GMAIL FOR 2FA; SEE BELOW
  7. Edit SMTP Server:    smtp.gmail.com
  8. Edit Server port:    465
  9. Edit Protocol:       smtps
 10. Edit SSL flag:       --anyauth
 11. Send testmail to confirm settings

Google App Password Setup:
Format is xxxx yyyy zzzz qqqq

 
Last edited:
This is mine: Note the SSL Flag Parameter

Code:
  1. Edit From address:   [email protected]
  2. Edit To name:        Some Person
  3. Edit To address:     [email protected]
  4. Edit Router name:    RT-AX88U Pro
  5. Edit User name:      [email protected]
  6. Edit Password:       select Edit to view (application-specific password used) - THIS TOOK A BIT OF SETTING UP WITH GMAIL FOR 2FA; SEE BELOW
  7. Edit SMTP Server:    smtp.gmail.com
  8. Edit Server port:    465
  9. Edit Protocol:       smtps
 10. Edit SSL flag:       --anyauth
 11. Send testmail to confirm settings

Google App Password Setup:
Format is xxxx yyyy zzzz qqqq



That worked. Thank you so much!
 
After digging a LONG time today trying to get my router to send email to my Synology MailPlus server in the most secure ways possible, thought I'd post here what worked for me:

The important information is:

- Port 587 is usually "STARTTLS", meaning the connection starts unencrypted. Therefore, in amtm, set your protocol to smtp, NOT smtps. If you use smtps, you get a "curl: (35) ... error:1408F10B ..." error

1773969305868.png


- Port 465, on the other hand, requires smtps protocol. If you use smtp as the protocol, you get a 2 minute time-out and a "curl: (28)" error.

1773969497096.png


With either of these configs, test email (option 11) works just fine.

Of course, you need to use the proper password for your mail service (e.g. create an app password), or if its on a mail server you control, your config needs to be ok (SSL settings, signed certificates, user account for the router on the mail server as a sender, ...).

Hope this can help others!

Dan.
 
L'ho pubblicato in questo modo ma non funziona, dove sbaglio?
Could you please post in English, it will reach more people.

Secondly, can you post, with sensitive information redacted, what you entered and what the error message is. A screenshot is good.

Details of your router may help too, although unlikely to be the underlying issue.
 
L'ho pubblicato in questo modo ma non funziona, dove sbaglio?
As jksmurf mentionned, we need a lot more details. Saying "it doesn't work" does not allow us to help you. If I told you "my car doesn't work", could you tell me what is wrong? Of course not. Car battery could be dead, I could be out of gas, or maybe the door locks are jammed because the remote battery is dead! I haven't said in what way it doesn't work.

We want to help, but we are not psychics. There could be so many different issues, and you're not telling us in what way the system is failing. Software systems try (usually...) to be helpful by providing error messages when they encounter issues. Users need to try to listen to what the systems are telling them, understand the messages, and report those messages when they do not have sufficient knowledge and require assistance.
 
As jksmurf mentionned, we need a lot more details. Saying "it doesn't work" does not allow us to help you. If I told you "my car doesn't work", could you tell me what is wrong? Of course not. Car battery could be dead, I could be out of gas, or maybe the door locks are jammed because the remote battery is dead! I haven't said in what way it doesn't work.

We want to help, but we are not psychics. There could be so many different issues, and you're not telling us in what way the system is failing. Software systems try (usually...) to be helpful by providing error messages when they encounter issues. Users need to try to listen to what the systems are telling them, understand the messages, and report those messages when they do not have sufficient knowledge and require assistance.
The router is a DSL AX 82 U with GNUton firmware. I configured Gmail as I read here in the guide.

1. Edit From address: [email protected]
2. Edit To name: Router admin
3. Edit To address: [email protected]
4. Edit Router name: DSL-AX82U
5. Edit User name: Router
6. Edit Password: select Edit to view
7. Edit SMTP Server: smtp.gmail.com
8. Edit Server port: 465
9. Edit Protocol: smtps
10. Edit SSL flag: Set to --insecure if curl problems occur
11. Send testmail to confirm settings
12. Remove Email settings

The result of the mail test is this

1. Send testmail
2. Send testmail, verbose output

Enter selection [1-2 e=Exit] 1

% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
curl: (67) Login denied

sending testmail failed

Note the curl: error above and check your settings

Press Enter to return to menu
 
The router is a DSL AX 82 U with GNUton firmware. I configured Gmail as I read here in the guide.

1. Edit From address: [email protected]
2. Edit To name: Router admin
3. Edit To address: [email protected]
4. Edit Router name: DSL-AX82U
5. Edit User name: Router
6. Edit Password: select Edit to view
7. Edit SMTP Server: smtp.gmail.com
8. Edit Server port: 465
9. Edit Protocol: smtps
10. Edit SSL flag: Set to --insecure if curl problems occur

Thank you for the details.
  • For item 10, the fact that it says "Set to --insecure if curl problems occur" (which they have, based on the error message) suggest you did not add a parameter here? Did you try JUST --anyauth as per my example earlier in this thread (or JUST --insecure as sugested by the prompt?
  • Can you confirm you did set up a Google App Password (also in my previous post #26 in this thread) i.e. https://myaccount.google.com/apppasswords and DO have a password in the format xxxx yyyy zzzz qqqq (which you entered in Step 6?)
k.
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top