🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.mail.sendmail
Article #3326

Re: sendmail parsing questions

#3326
From: Lovstrand.EuroPARC
Date: Fri, 21 Apr 1989 23:23
44 lines
1871 bytes
In article <357@anvil.oz> michi@anvil.oz (Michael Henning) writes:

> will a $=T match both "com" and "COM" ?  Is there any option that allows

Yes, sendmail always uses case insensitive string matching.

> [...], I would like to construct a class of all users known to
> the local machine by cutting all the user id's out of the password
> file and another one by cutting all the machine names out of the uucp
> Systems file.

For users from /etc/passwd:

	FX/etc/passwd %[^:]

For UUCP host names from L.sys:

	FX/usr/lib/uucp/L.sys %[^:]

This won't be able to handle continuation lines or comments, though,
so a better way is to use something like the IDA Kit's ability to call
programs for class definitions:

	FX|uuname

> destination "relay_host" and a user part "user@machine1@machine2.dom".

That is not a legal RFC822 address, please consider using something
like "user%machine1@machine2.dom" instead.

> 554: buildaddr: no user.

This means the mailer was invoked without a "user" part.  The
invokation of a mailer in sendmail.cf is done using a triple, as in:

	$# mailer $@ host $: user

The meaning of this is to invoke the mailer (Mmailer) with the address
"user" and send that to the host "host".  The "host" part is sometimes
optional, but "user" never is.

Hope this helps,
--Lennart <Lovstrand.EuroPARC@Xerox.COM>
Rank Xerox EuroPARC, 61 Regent St, Cambridge, England
Technical Details
Message-ID: <701@arisia.Xerox.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!arisia!Lovstrand.EuroPARC@Xerox.COM
References: <357@anvil.oz>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!lll-winken!arisia!Lovstrand.EuroPARC@Xerox.COM
From: Lovstrand.EuroPARC@Xerox.COM
Newsgroups: comp.mail.sendmail
Subject: Re: sendmail parsing questions
Keywords: classes, uppercase, file inclusion
Message-ID: <701@arisia.Xerox.COM>
Date: 21 Apr 89 23:23:38 GMT
References: <357@anvil.oz>
Sender: lovstran@arisia.Xerox.COM
Organization: Xerox PARC
Lines: 44