Email notify on SSH login
-
wrote on Mar 8, 2022, 5:06 PM last edited by girish Mar 8, 2022, 5:45 PM
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.
-
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.
-
@micmc Server level.
-
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?
wrote on Mar 9, 2022, 3:03 PM last edited byThere 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.
wrote on Mar 12, 2022, 6:32 PM last edited by xarp Mar 12, 2022, 6:33 PM@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
wrote on Mar 13, 2022, 4:19 PM last edited by micmc Mar 13, 2022, 4:19 PM@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.
wrote on Mar 15, 2022, 7:04 PM last edited by xarp Mar 15, 2022, 7:04 PM@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.