Email notify on SSH login
-
Nullmailer could be utilized for this.
https://wiki.archlinux.org/title/Nullmailerusing the Built-in SMTP server?
-
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.
-
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.
-
@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?
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 -
@micmc Server level.
@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
-
@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
@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.
-
@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
@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.
-
@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.
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login
