Email/Matrix notifications

Hi All,
I hope you are well.
Please can someone assist or share his/her configuration for email/Matrix notification.
For email notifications other than Gmail as I deGoogled my life I think!.

notify:
  - name: emailserver
    platform: smtp
    server: "smtp.domain.com"
    port: 587
    timeout: 25
    sender: "[email protected]"
    encryption: starttls
    username: "[email protected]"
    password: "XXXXXXXX"
    recipient: 
        - "[email protected]"

    sender_name: HA Warning
    
  - name: MatrixAlert
    platform: matrix
    default_room: "#misc:server.com"

matrix:
  homeserver: "https://server.com"
  username: "@user1:server.com"
  password: "XXXXXXXXX"
  rooms:
    - "#misc:server.com"
  commands:
    - word: my_command
      name: my_command

Thank you