[ILUG] null client configuration for sendmail
Badger
badger at scattermail.com
Thu Aug 31 01:48:40 IST 2006
On Thu, Aug 31, 2006 at 02:37:08AM +0530, Walter Faleiro wrote:
> Hi Badger,
> Nothing much in the file. Not sure where the working info is
> different.Theexact same file is placed on mankind. The only difference
> is splendor does
> not have a submit.mc and the sendmail.cf is under /etc/ and not under
> /etc/mail.
> The entries worth mentioning in sendmil.cf of splendor are
>
>
> Cwsplendor splendor.example.com
> DSserver02.example.com
> DHexample.com
> DMexample.com
>
> Regards,
> --Walter
>
>
> Regards,
> --Walter.
>
> divert(-1)dnl
> dnl #
> dnl # This is the sendmail macro config file for m4. If you make changes to
> dnl # /etc/mail/sendmail.mc, you will need to regenerate the
> dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package
> is
> dnl # installed and then performing a
> dnl #
> dnl # make -C /etc/mail
> dnl #
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
> VERSIONID(` Nullclient for Linux')dnl
> OSTYPE(`linux')dnl
> DOMAIN(`generic')dnl
> FEATURE(`nullclient',`server02.example.com')dnl
> undefine(`ALIAS_FILE')dnl
>
>
You're killing me here Walter. You still haven't told me whether the
configuration that I suggested to you actually works. Am I to conclude
that:
(a) It didn't work
(b) You didn't try it because it didn't correlate with the
configuration that you had on splendor
(c) It did work, or kind-of worked, but it's not the solution you
want to go with.
I don't care which it is, but can you please give me some idea of what
has been tested, what worked and what didn't. I'm working blind here.
I said at the beginning of this thread that I don't actually use sendmail
(I'm a postfix man myself), and now that we've got to a point where I am
deciphering a legacy sendmail.cf, I really need to caution you that this
stuff is well beyond my experience with sendmail.
> DSserver02.example.com
> DHexample.com
> DMexample.com
I gather from reading the m4 file /usr/share/sendmail-cf/m4/proto.m4
and the Linux Administration Handbook that the following m4 entries
will essentially give you the output just listed:
define(`SMART_HOST', `smtp:server04.example.com')
define(`MAIL_HUB', `example.com')
define(`MASQUERADE_NAME', `example.com')
> Cwsplendor splendor.example.com
Things have changed since someone edited this one. I believe that
these days one uses the 'use_cw_file' feature to achieve the same
end. So you put the following in your sendmail.mc:
FEATURE(`use_cw_file')
Then you list the name of the hostnames you want to tell sendmail to
accept mail for in the /etc/mail/local-host-names file:
# local-host-names - include all aliases for your machine here.
splendor
splendor.example.com
If you are going to try this stuff out, don't forget to revert your
submit.mc back to the original version first and remove any aliases
you set up earlier (assuming that you've been following along).
This configuration appears to work, in a way, on my machine -
however, I can't claim that i have any real understanding of how
this works.
To be honest, I reckon that if you can't get this to work for you or you
can't get my earlier suggestions up and running, then you should
probably consider calling in a contractor to sort this problem quickly
and painlessly - it's not like you haven't got a complicated setup.
There's a bunch of support providers listed on the linux.ie site who
would undoubtedly be glad to do this for you.
- badge
More information about the ILUG
mailing list