[linux] Re: sendmail esmtp

Kees Theunissen theuniss op rijnh.nl
Ma Feb 28 15:32:23 CET 2005


On Mon, 28 Feb 2005, Kuipers, Onno wrote:

>Voor de duidelijkheid: Ik wil enkel vanaf deze machine mailtjes kunnen
>versturen via de smtp server. Wie kan mij vertellen wat ik precies moet
>wijzigen in onderstaande file en wat moet ik evt in DNS aanpassen? Wat
>zie ik over het hoofd?

Als je _alleen_ maar wilt forwarden naar een andere smtp server,
en dus ook _geen_ mail hoeft af te leveren in locale mailboxen dan
kan je volstaan met een zogenaamde "nul client".

Bij mij (Slackware 10.1, Sendmail 8.13.3) staat de betreffende mc
file in /usr/share/sendmail/cf/cf/clientproto.mc

Onderstaand vind je de complete file. Deze versie dateert al
vanaf 2000/03/21 en zal bij jou met sendmail 8.11 ook wel werken.
Wel even de laatste twee regels aanpassen:
-- OSTYPE(`linux'), en
-- FEATURE(nullclient, elw2ksrv003.$m)

De "$m" macro expandeert als het goed is tot je eigen domain.
Als dat niet werkt, of als de server in een ander domain zit, dan
moet je zelf even de juiste waarde invullen inplaats van "$m".

Als je meer functionaliteit nodig hebt dan deze zogenaamde
"nul client" dan wil ik nog wel een keer beter naar jouw mc
file kijken. Voorlopig wacht ik jouw reactie af.
Nog één opmerking: Met "dnl" in een mc file geef je aan dat de rest
van de regel als commentaar gezien moet worden. In jouw mc file
stond:

dnl Uncomment and edit the following line if your mail needs to be sent
out
dnl through an external mail server:
dnl define(`SMART_HOST',`elw2ksrv003')

Deze smarthost definitie is dus uitgecommentarieerd.


------------------------------------------------------------------
divert(-1)
#
# Copyright (c) 1998-2000 Sendmail, Inc. and its suppliers.
#	All rights reserved.
# Copyright (c) 1983 Eric P. Allman.  All rights reserved.
# Copyright (c) 1988, 1993
#	The Regents of the University of California.  All rights reserved.
#
# By using this file, you agree to the terms and conditions set
# forth in the LICENSE file which can be found at the top level of
# the sendmail distribution.
#
#

#
#  This the prototype for a "null client" -- that is, a client that
#  does nothing except forward all mail to a mail hub.  IT IS NOT
#  USABLE AS IS!!!
#
#  To use this, you MUST use the nullclient feature with the name of
#  the mail hub as its argument.  You MUST also define an `OSTYPE' to
#  define the location of the queue directories and the like.
#

divert(0)dnl
VERSIONID(`$Id: clientproto.mc,v 8.16 2000/03/21 21:05:26 ca Exp $')

OSTYPE(unknown)
FEATURE(nullclient, mailhost.$m)
------------------------------------------------------------------



Groeten,

Kees.

-- 
Kees Theunissen
F.O.M.-Instituut voor Plasmafysica "Rijnhuizen", Nieuwegein
E-mail: theuniss op rijnh.nl,     Tel: 030-6096724,     Fax: 030-6031204




More information about the Linux mailing list