A short bash script that sets the myhostname parameter in the postfix config file.
Find a file
The_Lie 7de2f31ee2 Update 'set-myhostname.sh'
How to write a bash if statement?
2021-03-24 10:31:58 +01:00
README.md Update 'README.md' 2021-03-24 01:09:12 +01:00
set-myhostname.sh Update 'set-myhostname.sh' 2021-03-24 10:31:58 +01:00

Postfix hostname to reverse DNS

A short bash script that gets the reverse DNS record for the current ip and sets it as the myhostname parameter in the postfix config file. Quite hacky, so beware…