Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Email notify on SSH login

    Feature Requests
    notifications ssh
    4
    10
    453
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • X
      xarp last edited by girish

      This is easily achieved with standard postfix system packages, but Cloudron obviously uses 25 so a built-in Cloudron feature for security and observation, auditing, would be great.

      micmc 2 Replies Last reply Reply Quote 7
      • BrutalBirdie
        BrutalBirdie Staff last edited by

        Nullmailer could be utilized for this.
        https://wiki.archlinux.org/title/Nullmailer

        using the Built-in SMTP server?

        Like my work? Consider donating a beer 🍻 Cheers!

        1 Reply Last reply Reply Quote 1
        • micmc
          micmc @xarp last edited by

          @xarp You mean at server or container level? That's a great suggestion BTW. 👍


          https://marketingtechnology.agency
          For cutting edge web technologies

          BrutalBirdie 1 Reply Last reply Reply Quote 1
          • BrutalBirdie
            BrutalBirdie Staff @micmc last edited by

            @micmc Server level.

            Like my work? Consider donating a beer 🍻 Cheers!

            X 1 Reply Last reply Reply Quote 2
            • micmc
              micmc @xarp last edited by

              @xarp Postfix comes standard with Ubuntu so I'm not sure of how couldn't be implemented or what would prevent it, have you tried something already?


              https://marketingtechnology.agency
              For cutting edge web technologies

              micmc 1 Reply Last reply Reply Quote 0
              • micmc
                micmc @micmc last edited by

                There seems to be a quite interesting discussion on this matter, with possible solutions right here
                https://askubuntu.com/questions/179889/how-do-i-set-up-an-email-alert-when-a-ssh-login-is-successful


                https://marketingtechnology.agency
                For cutting edge web technologies

                1 Reply Last reply Reply Quote 3
                • X
                  xarp @BrutalBirdie last edited by xarp

                  @micmc said in Email notify on SSH login:

                  @xarp Postfix comes standard with Ubuntu so I'm not sure of how couldn't be implemented or what would prevent it, have you tried something already?

                  @xarp said in Email notify on SSH login:

                  but Cloudron obviously uses 25

                  mehdi micmc 2 Replies Last reply Reply Quote 0
                  • mehdi
                    mehdi App Dev @xarp last edited by

                    @xarp actually, Cloudron uses the inbound port 25. This does not prevent it from sending stuff.

                    However, it would make much more sense to integrate this with the cloudron emails, to take advantage of the specific email configuration, for example if there is a relay configured.

                    X 1 Reply Last reply Reply Quote 4
                    • micmc
                      micmc @xarp last edited by micmc

                      @xarp said in Email notify on SSH login:

                      @micmc said in Email notify on SSH login:

                      @xarp Postfix comes standard with Ubuntu so I'm not sure of how couldn't be implemented or what would prevent it, have you tried something already?

                      @xarp said in Email notify on SSH login:

                      but Cloudron obviously uses 25

                      Don't bother answering if it is for an 'answer' like this. Obviously that doesn't say if you tried something the way I meant, and it's kind of rude.


                      https://marketingtechnology.agency
                      For cutting edge web technologies

                      1 Reply Last reply Reply Quote 0
                      • X
                        xarp @mehdi last edited by xarp

                        @mehdi said in Email notify on SSH login:

                        @xarp actually, Cloudron uses the inbound port 25. This does not prevent it from sending stuff.

                        I tried the postfix/mailutils method which uses a simple bashrc method in the user/root home, however when Cloudron rebooted, the mail service couldn't start unfortunately.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Powered by NodeBB