-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The Sunday 2006-11-26 at 21:38 +0100, Sandy Drobic wrote:
> So the output of `hostname -f` is used as the FQDN by sendmail? Well, that
> should be enough to get the original poster on the right track.
No, I don't think so.
He said in the Spanish list - I'm starting to "hate" having to go
searching in my archive instead of him speaking up - that:
|> si ejecuto hostname aparece "www"
|> si ejecuto hostname -f aparece www.dominio.com
Ie, he gets "www" for the command 'hostname' and "www.dominio.com" for
'hostname -f'. Also, I know he is using an adsl modem(?) router, giving
his server an IP in the range 192.168.0.x. I have to assume he (the
router) is using nat.
He'd better clarify this himself.
> How would you set up the hostname for Sendmail, when you are using a private
> domain like "myserver.athome"?
I believe that Yast would set that correctly; alternatively, you can edit
/etc/sysconfig/sendmail and run SuSEconfig afterwards. I did that when
sendmail was the default in SuSE and it worked fine without having to
touch the real sendmail configuration. But I don't remember the details.
With postfix, we can let Yast do an initial configuration, then forget
Yast and do it ourselves: the config is humanly readable ;-)
However, I'm not going to install sendmail to check. But looking inside
the rpm, I see there is a '/sbin/conf.d/SuSEconfig.sendmail' file. Let's
see what I can learn.
Ah:
# Know about FQHOSTNAME
test -s $r/etc/HOSTNAME && read -t 1 FQHOSTNAME < $r/etc/HOSTNAME
I think that setting is what it will be using.
I see it reads some configuration files:
/etc/rc.config
/etc/sysconfig/mail
/etc/sysconfig/sendmail
/etc/sysconfig/amavis
But I don't see where it gets the default '/etc/sysconfig/sendmail' from.
Ah, from '/var/adm/fillup-templates/*'. There are two files there:
'sysconfig.mail-sendmail' and 'sysconfig.sendmail'.
...
Searching to see where the variable 'FQHOSTNAME' is defined, I see a
reference in '/etc/sysconfig/apache':
# If empty ("") it defaults to [EMAIL PROTECTED] FQHOSTNAME is set in
# /etc/sysconfig/network/config.
But I don't see it there - perhaps I understood it wrong.
Mmmm...
I'm reading the 'sysconfig.sendmail' file, but I don't get it. Perhaps it
is 'MASQUERADE_DOMAINS'.
Dunno.
- --
Cheers,
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Made with pgp4pine 1.76
iD8DBQFFaivmtTMYHG2NR9URAoPBAJ4z2AV/2AihSkFZ+CcSHUnvSTJ8PgCdEYDb
AMXZt+ngMeJa1MErEGYpQvA=
=x74M
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]