Mercurial > masqmail
view contrib/guess-hostname @ 161:6dd3a289989b
listen per default on localhost:25 now
this is a typical setup
for the security POV it might be better to not listen
on any interface by default, but listening on local
interfaces seems to not be a problem
author | meillo@marmaro.de |
---|---|
date | Thu, 08 Jul 2010 11:53:07 +0200 (2010-07-08) |
parents | 60c92aa59911 |
children | 71dcdc2020bc |
line wrap: on
line source
#!/bin/sh # # try several ways to guess the hostname ( # this is what Debian uses cat /etc/mailname # this is often the short hostname cat /etc/hostname # this file was mentioned on the Internet cat /etc/HOSTNAME # probably a good value on GNU/Linux hostname -f # often the short hostname, but widely available hostname ) 2>/dev/null | sort -u