Let's say the fully qualified hostnames are mailhost.my.net and
mailhost.your.net. Assuming mail will always come to the fully
qualified name, you need just two lines:
mailhost.my.net
mailhost.your.net
and that's the entire file. There are no macros or anything funny like
that, just a straight list. Since mine are not long I don't worry
about comments, but I do believe standard comment lines beginning with
"#" and blank lines are are allowed. If you include comments and
they're not allowed, it will be real obvious because sendmail plain
won't come up and so you'll know real quickly to remove them.
-- Rob
--On 09/23/00 11:04:37 PM -0500 Jonathan Wilson <[EMAIL PROTECTED]>
wrote:
> Does anyone have an example /etc/sendmail.cw I could see?
>
> Thanks
> JW
>
> At 11:12 AM 9/22/2000 -0700, you wrote:
>> I'm presuming you're not interested in keeping domains separate
>> within sendmail (that is, set up virtual domains within sendmail).
>> If that assumption is correct, simply add all hostnames, hostname
>> and hostname+domain (ie., fully qualified) to the sendmail.cw file.
>> Sendmail will then happily act as the final delivery agent for the
>> those hosts. Sendmail can also, I believe, be configured to include
>> that information directly in the sendmail.cf file, but my book with
>> the m4 macros for building sendmail.cf is at my other office so I
>> can't give you syntax if you prefer to not include the sendmail.cw
>> file.
>>
>> -- Rob
>>
>>
>> --On 09/22/00 11:58:32 AM -0500 Jonathan Wilson <[EMAIL PROTECTED]>
>> wrote:
>>
>>> Howdy,
>>>
>>> We now have several domain names pointing to our main Red Hat
>>> server. Most of them are for various web sites and are only used
>>> by Apache. However we do have this situation: our original
>>> intention was to name this box newhostname.our_domain.our_tld and
>>> we did, and that's what's in /etc/hosts however we can't send mail
>>> to that box because all mail going to our domain is snarfed up by
>>> our NT mail server :-/ which my boss doesn't want to change.
>>>
>>> So he bought a new domain name today, just for the Linux server, the
>>> primary reason being that we should now be able to send and receive
>>> mail there.
>>>
>>> So my question is, do I need to put the new domain name in
>>> /etc/hosts, or anywhere else? If not will it affect sendmail? Will
>>> sendmail pick up mail sent to that domain simply because the DNS and
>>> MX record point there? And how will it know to put "from:
>>> *@newdomain.com" on outgoing mail?
>>>
>>> Basically I've never dealt with multiple host/domain names and I'm
>>> not sure what to do :-)
>>>
>>>
>>> JW
>>>
>>>
>>>
>>> _______________________________________________
>>> Redhat-list mailing list
>>> [EMAIL PROTECTED]
>>> https://listman.redhat.com/mailman/listinfo/redhat-list
>>
>>
>>
>>
>> _ _ _ _ _ _ _ _ _ _
>> /\_\_\_\_\ /\_\ /\_\_\_\_\_\
>> /\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT,
>> /\/_/__\/_/ __ /\/_/ /\/_/ PROFUNDUM VIDITUR
>> /\/_/_/_/_/ /\_\ /\/_/ /\/_/
>> /\/_/ \/_/ /\/_/_/\/_/ /\/_/ (Whatever is said in Latin
>> \/_/ \/_/ \/_/_/_/_/ \/_/ appears profound)
>>
>> Rob Tanner
>> McMinnville, Oregon
>> [EMAIL PROTECTED]
>>
>>
>>
>> _______________________________________________
>> Redhat-list mailing list
>> [EMAIL PROTECTED]
>> https://listman.redhat.com/mailman/listinfo/redhat-list
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
_ _ _ _ _ _ _ _ _ _
/\_\_\_\_\ /\_\ /\_\_\_\_\_\
/\/_/_/_/_/ /\/_/ \/_/_/_/_/_/ QUIDQUID LATINE DICTUM SIT,
/\/_/__\/_/ __ /\/_/ /\/_/ PROFUNDUM VIDITUR
/\/_/_/_/_/ /\_\ /\/_/ /\/_/
/\/_/ \/_/ /\/_/_/\/_/ /\/_/ (Whatever is said in Latin
\/_/ \/_/ \/_/_/_/_/ \/_/ appears profound)
Rob Tanner
McMinnville, Oregon
[EMAIL PROTECTED]
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list