> -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of > Stephan A. Rickauer > Sent: Wednesday, September 07, 2005 8:51 AM > To: misc@openbsd.org > Subject: Sendmail nullclient > > Currently, I am struggling with sendmail. I'd like to configure it as > nullclient but all m4 files I found online wouldn't work on OpenBSD 3.7. > Playing with the one's in /usr/share/sendmail/cf/ didn't succeed. > Could someone post me his nullclient m4 file, please? > > Thanks! >
Here is what I use in Linux (sendmail 8.12.10): -bash-2.05b$ more sendmail.mc include(`/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(`$Id$')dnl OSTYPE(`linux')dnl FEATURE(`nouucp', `reject')dnl FEATURE(`always_add_domain')dnl MASQUERADE_AS(`ceimaine.org')dnl FEATURE(`masquerade_envelope')dnl FEATURE(`mailertable')dnl FEATURE(`access_db')dnl MAILER(`smtp')dnl dnl Turn off ident querying, which is usually wrong and slows things down define(`confTO_IDENT', `0')dnl dnl Since the bastion box never delivers mail to disk or anything that dnl generally requires it to assume a user's identity, we can run it as dnl something other than root, which is very good. dnl define(`confRUN_AS_USER', `mailnull:mailnull')dnl define(`confDEF_USER_ID',``8:12'')dnl define(`confTRUSTED_USER', `smmsp')dnl dnl Sendmail defaults to giving out all kinds of useful (to hackers) dnl information in the greeting message. There are still a number of dnl ways to get Sendmail to give you that information, but this makes dnl it a little harder. define(`confSMTP_LOGIN_MSG', `')dnl dnl This disables all of the commands that would allow an outsider to dnl confirm email addresses, see who root mail is sent to, etc. define(`confPRIVACY_FLAGS', `goaway')dnl dnl Send a copy of bounce messages to the postmaster define(`confCOPY_ERRORS_TO', `postmaster')dnl