Skip to content

sends mail with information about who and when connected to a specified port that should not be used anymore

Notifications You must be signed in to change notification settings

benchonaut/socat-mailonconnection

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

socat-mailonconnection

sends mail with information about who and when connected to a specified port that should not be used anymore

proxy for legacy services that will go offline, but still have active ( or not updated ) systems accessing the resource,

it will proxy the port given as second argument to the same port on the first argument

and the mail will be sent to root of whatever your mta thinks root is ,so setup your alias properly (or use e.g. mstmtp )

designed to run via supervisord(does not fork)

example config snippet (adjust script path!):

[program:mysql-socat]

command=/bin/bash /etc/custom/socat-mailonconnection/spawn_socatmailer my-old-server-that-ends-soon.com 3306

stderr_logfile = /tmp/sqlsocat-stderr.log

stdout_logfile = /tmp/sqlsocat-stdout.log

About

sends mail with information about who and when connected to a specified port that should not be used anymore

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages