aboutsummaryrefslogtreecommitdiffstats
path: root/libesmtp
Commit message (Collapse)AuthorAgeFilesLines
* Remove last traces of gethostbyname().Matthias Andree2017-04-222-331/+0
|
* Merge portability patch from Peter O'Gorman, fetchmail-devel 2007-10-31.Matthias Andree2007-12-261-1/+1
| | | | | | This requires some minor fixes though. svn path=/branches/BRANCH_6-3/; revision=5145
* Further cleanups to compile with C++ compiler.Matthias Andree2006-03-151-2/+2
| | | | svn path=/branches/BRANCH_6-3/; revision=4744
* Add gethostby* from libesmtpMatthias Andree2005-08-284-18/+361
| | | | svn path=/trunk/; revision=4278
* Remove excess imports.Matthias Andree2005-08-268-1424/+0
| | | | svn path=/trunk/; revision=4260
* Bring libesmtp import into trunk.Matthias Andree2005-08-254-0/+712
| | | | svn path=/trunk/; revision=4259
* Bring libesmtp import into trunk.Matthias Andree2005-08-256-0/+1093
svn path=/trunk/; revision=4254
edoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
#!/bin/sh
# setup hostname in /etc/hosts.  use IP if no name available.
echo cyberhq > /tmp/local_name
echo $4 > /tmp/ip
host $4 | fgrep Name | cut -c7- > /tmp/ip_name
if [ ! -s /tmp/ip_name ]; then
    echo $4 > /tmp/ip_name
fi
cat /tmp/ip_name > /etc/sendmail.cw
paste /tmp/ip /tmp/ip_name /tmp/local_name > /tmp/host_bottom
cat /etc/hosts.top /tmp/host_bottom > /etc/hosts
rm /tmp/ip /tmp/ip_name /tmp/host_bottom /tmp/local_name
# Restart sendmail with new name.
kill -HUP `head -1 /var/run/sendmail.pid`
# Start fetchmail as root to fetch our mail.
fetchmail