Hi,
how can I influence the line starting with Cw<domain.net>
in the .mc-file?
Which setting have I got to change?
I don't get that.
Michael
> how can I influence the line starting with Cw<domain.net>
> in the .mc-file?
> Which setting have I got to change?
See cf/README:
+-----------------------------------+
| ACCEPTING MAIL FOR MULTIPLE NAMES |
+-----------------------------------+
If your host is known by several different names, you need to augment
class {w}. This is a list of names by which your host is known, and
anything sent to an address using a host name in this list will be
treated as local mail. You can do this in two ways: either create the
file /etc/mail/local-host-names containing a list of your aliases (one per
line), and use ``FEATURE(`use_cw_file')'' in the .mc file, or add
``LOCAL_DOMAIN(`alias.host.name')''. Be sure you use the fully-qualified
name of the host, rather than a short name.
--
If you feel the urgent wish to send me a courtesy copy of a Usenet
posting, then make sure it's recognizable as such!
The FAQ: http://www.sendmail.org/faq/ Before you ask.
thanks for your posting.
"Claus Aßmann" wrote:
> Michael Jakscht wrote:
>
> > how can I influence the line starting with Cw<domain.net>
> > in the .mc-file?
> > Which setting have I got to change?
>
> See cf/README:
>
> +-----------------------------------+
> | ACCEPTING MAIL FOR MULTIPLE NAMES |
> +-----------------------------------+
I tried that one but what actually changed in the .cf-file
was not the Cw-field but the C{w}-field.
That is not what I wanted to.
See here what changed (the last line!!)
===========================
# class E: names that should be exposed as from this host, even if we
masquerade
# class L: names that should be delivered locally, even if we have a relay
# class M: domains that should be converted to $M
# class N: domains that should not be converted to $M
#CL root
C{E}root
C{G}sami.net
C{G}intranet.sami.net
C{M}sami.net
F{R}/etc/mail/relay-domains
C{w}sami.net
===========================
and what didn't change:
===========================
CGintranet.sami.net
Cwintranet.sami.net
===========================
Michael
>Hi Claus,
>
>thanks for your posting.
>
>"Claus Aßmann" wrote:
>> Michael Jakscht wrote:
>>
>> > how can I influence the line starting with Cw<domain.net>
>> > in the .mc-file?
>> > Which setting have I got to change?
>>
>> See cf/README:
>>
>> +-----------------------------------+
>> | ACCEPTING MAIL FOR MULTIPLE NAMES |
>> +-----------------------------------+
>
>I tried that one but what actually changed in the .cf-file
>was not the Cw-field but the C{w}-field.
>That is not what I wanted to.
>
Same thing, C{w} is just a new way of specifying Cw, and you can
have multiple C{w} or Cw lines each of which adds to the list of
names.
IMHO using /etc/mail/local-host-names formerly known as /etc/sendmail.cw
is just easier to use.
Villy
"Villy Kruse" <v...@pharmnl.ohout.pharmapartners.nl> wrote:
> Same thing, C{w} is just a new way of specifying Cw, and you can
> have multiple C{w} or Cw lines each of which adds to the list of
> names.
>
> IMHO using /etc/mail/local-host-names formerly known as /etc/sendmail.cw
> is just easier to use.
OK, thanks, I didn't know that of course.
But which entry in my .mc-file created the Cw - field?
BTW there's an CG field directly above the Cw field
which has the same content (intranet.sami.net).
Michael
define(`confCW_FILE', `/etc/mail/local-host-names')
Put all the hosts you receive mail for in that file, one per line.
-srs
"Suresh Ramasubramanian" <dev...@hserus.net> wrote:
Yes okay but first of I tried that and it didn't work
and secondly this wasn't my question. ;-)
Michael
Er, but why shouldn't that work? It produces
Fw /etc/mail/local-host-names
Or scratch that - there's the straightforward FEATURE(`use_cw_file')
-srs
If you're really building the sendmail.cf from a .mc file and have a Cw
line that doesn't just give 'localhost', the most likely explanation is
that you have that line verbatim in your .mc file. Perhaps in a
LOCAL_CONFIG section, but even if you don't have that, lines that m4
doesn't know anything about are just copied as-is to the .cf. If you
can't find those lines directly in the .mc, look at the files that get
included by it, in particular through DOMAIN() (the file is picked up
from the cf/domain directory) and HACK() (from cf/hack) directives.
>BTW there's an CG field directly above the Cw field
>which has the same content (intranet.sami.net).
Probably has the same origin. Class G is for specifying domains to look
up in generistable - the GENERICS_DOMAIN() macro will add to it, but in
modern configs similarly using C{G} rather than CG.
--Per Hedeland
p...@bluetail.com