[OpenIndiana-discuss] sendmail simple setup home lan
Discussion list for OpenIndiana
openindiana-discuss at openindiana.org
Wed May 21 15:56:51 UTC 2014
On Wed, May 21, 2014 at 05:41:44PM +0200, Discussion list for OpenIndiana wrote:
> Le 2014/05/21 17:26 +0200, Discussion List For Openindiana a écrit:
> >The goal is to send any outgoing mail to another host on my home lan
> >that relays it on. The lan host requires no auth and accepts mail
> >from my lan.
>
> Easy. In a sendmail way of things.
I've done it in a simpler way, running the submission agent only
on the internal hosts. Instead of relaying all e-mail to another
sendmail running on the same internal host, they relayed it to the
central sendmail server. It knows how to send it on to Internet
destinations. Here's my submit.mc:
divert(0)dnl
VERSIONID(`$Id: submit.mc,v 8.3 2001/07/19 17:30:09 ca Exp $')
define(`__OSTYPE__',`')dnl dirty hack to keep proto.m4 from complaining
define(`confTIME_ZONE', `USE_TZ')dnl
define(`confDONT_INIT_GROUPS', `True')dnl
define(`confERROR_MODE',`e')dnl
define(`confTRUSTED_USERS', `server cyrus iscan')dnl
FEATURE(allmasquerade)dnl
FEATURE(masquerade_envelope)dnl
FEATURE(always_add_domain)dnl
MASQUERADE_AS(cc.Our-Domain.Tld)dnl
DAEMON_OPTIONS(`Name=NoMTA,Addr=127.0.0.1,M=AS')dnl
FEATURE(`msp', `smtp.cc.our-domain.tld')dnl
The name cc.Our-Domain.Tld is the domain portion of all local e-mail
addresses, regardless of the local hostname. The name
smtp.cc.our-domain.tld is the hostname of the central sendmail server.
--
-Gary Mills- -refurb- -Winnipeg, Manitoba, Canada-
More information about the openindiana-discuss
mailing list