On Wed, 23 Jun 2004 20:51:09 +0200 Martin Pihl Jensen wrote:
Hi
When users are creating a new message in SqWebmail the hostname part in the
"From" field is set to "afrodite" (the name of my server), but should be
skydebanen.net. Hostname -f returns a FQDN.
By searching around I have found hints about setting the correct value of
the hostname in /usr/local/share/sqwebmail/hostname, but there is no file
called hostname with relevance to SqWebmail on my system.
This only applies to the stand-alone version of sqwebmail, which is at version
4.0.5.
I am running SqWebmail ver. 0.45.4-1 (the version number taken from the
Courier-mta package) on Debian Sarge.
How can I set the hostname (or where is the correct placement of hostname
file on my system)?
Right, so you appear to be using the sqwebmail that is integrated into courier.
In that case, the domain name for messages created by webmail are determined
by the value of /path/to/courier/etc/defaultdomain. Since this is debian, I will
guess that the config files are in /etc/courier, so you need to set up
/etc/courier/defaultdomain.