From owner-freebsd-net@FreeBSD.ORG Thu May 11 13:41:36 2006 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8991D16A453 for ; Thu, 11 May 2006 13:41:09 +0000 (UTC) (envelope-from bv@bilver.wjv.com) Received: from wjv.com (fl-65-40-24-38.sta.sprint-hsd.net [65.40.24.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33A6F44041 for ; Thu, 11 May 2006 13:13:17 +0000 (GMT) (envelope-from bv@bilver.wjv.com) Received: from bilver.wjv.com (localhost.wjv.com [127.0.0.1]) by wjv.com (8.13.6/8.13.1) with ESMTP id k4BDDCTV068442; Thu, 11 May 2006 09:13:13 -0400 (EDT) (envelope-from bv@bilver.wjv.com) Received: (from bv@localhost) by bilver.wjv.com (8.13.6/8.13.1/Submit) id k4BDD7h1068441; Thu, 11 May 2006 09:13:07 -0400 (EDT) (envelope-from bv) Date: Thu, 11 May 2006 09:13:02 -0400 From: Bill Vermillion To: Nash Nipples Message-ID: <20060511131302.GB68254@wjv.com> References: <44620AC8.8040806@greenmeadow.ca> <20060511112726.90378.qmail@web36315.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060511112726.90378.qmail@web36315.mail.mud.yahoo.com> Organization: W.J.Vermillion / Orlando - Winter Park ReplyTo: bv@wjv.com User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.3 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_JP_SURBL autolearn=no version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on bilver.wjv.com Cc: freebsd-net@freebsd.org, Duane Whitty Subject: Re: How do i send mail to certain domain users over external smtp using sendmail? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: bv@wjv.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 May 2006 13:42:09 -0000 The door open and in walked trouble - disguised as our our old nemesis Nash Nipples, who uttered, at Thu, May 11, 2006 at 04:27 : > Duane Whitty wrote: Nash Nipples wrote: > > hi, i just dont see any options to make it work > > "| /usr/sbin/sendmail -Ac -t" works fine > > but "| /usr/sbin/sendmail -O ConnectOnlyTo=smtp.external.co... -Ac -t" just wont work: > > WARNING: RunAsUser for MSP ignored, check group ids (egid=10103, want=25) > > can not chdir(/var/spool/clientmqueue/... Permission denied > > Program mode requires special privileges, e.g., root or TrustedUser. > > 554 5.3.5 Local configuration error > > > > I dont want to set up trusted users. Any work-around available? > > > > thanks > Hi, > > To clarify for myself, are you asking: > given domains abc.com, foo.com, bar.com , and anotherdomain.com > how to use your local SMTP to send mail to abc.com and foo.com but use > an external SMTP to send mail to bar.com and anotherdomain.com? > If so, then you can use the SMART_HOST define and the confCW_FILE define > in your /etc/mail/sendmail.mc file and put hosts you want processed via > local > SMTP in the file defined in confCW_FILE define. If you just have one domain > you want handled locally then you might also just put an entry like > Cwfoo.com in /etc/mailsendmail.cf. Your file names may vary depending > upon you configuration. > > Hope this helps. > > Sincerely, > > Duane Whitty It's really pretty easy. Look at 'mailertable'. You can set mail to any domain you wish to go through any SMTP server you are permitted to use. Some places won't accept my mail as even though I"m on a STATIC IP and have been the same one for 3 years, they consider all DSL lines as spam sources. So depending on end destination I send some to my providers transport, and others off to another machine I manage. Setup is simple. abc.com smtp: And then just run make in /etc/mail to compile it. Sendmail is very flexible. Bill -- Bill Vermillion - bv @ wjv . com