Subject: Re: MIT's cgiemail CGI
To: chris <cb@mythtech.net>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-mac68k
Date: 04/05/2003 23:26:52
At 15:56 Uhr -0500 5.4.2003, chris wrote:
>I have sendmail setup however it comes from an install of NetBSD 1.6. I
>haven't made any changes to sendmail. So I kind of assume that means it
>is trying to deliver directly since I can't see how it would know about
>my mail server. I can see that as taking the 30 seconds I am seeing as it
>has to do an MX resolution of the address, connect to the mail server,
>send the mail, then report back that it has finished.
>
>
>Looks like I am off to a sendmail site to find out how best to handle
>this (since I expect to use the cgi quite a bit, I would think running it
>as a daemon would be easiest/best... but I have to now find out how to
>disable it from listening for SMTP connections from the outside).

On second thought: If you don't intend to run an smtp _server_ something like

include(`../m4/cf.m4')
VERSIONID(`@(#)example.mc  $Revision: 1.1 $')
OSTYPE(bsd4.4)dnl
MAILER(local)dnl
MAILER(smtp)dnl
undefine(`ALIAS_FILE')dnl
FEATURE(`nullclient',`mail.provi.der')dnl

as your sendmail.mc (see /usr/share/sendmail/cf/) would do nicely. The
resulting sendmail.cf tells sendmail to simply push any mail to the
'mail.provi.der' server.

Should fit your bill nicely.

	hauke

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards