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.
 

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