From owner-freebsd-net@FreeBSD.ORG Wed May 10 15:47:05 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 B227D16A7BC for ; Wed, 10 May 2006 15:47:05 +0000 (UTC) (envelope-from duane@greenmeadow.ca) Received: from smtpout.eastlink.ca (smtpout.eastlink.ca [24.222.0.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A36343D45 for ; Wed, 10 May 2006 15:47:05 +0000 (GMT) (envelope-from duane@greenmeadow.ca) Received: from ip04.eastlink.ca ([24.222.10.20]) by mta01.eastlink.ca (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IZ2005173TA1WH2@mta01.eastlink.ca> for freebsd-net@freebsd.org; Wed, 10 May 2006 12:46:22 -0300 (ADT) Received: from blk-224-199-230.eastlink.ca (HELO [192.168.0.103]) ([24.224.199.230]) by ip04.eastlink.ca with ESMTP; Wed, 10 May 2006 12:47:05 -0300 Date: Wed, 10 May 2006 12:46:16 -0300 From: Duane Whitty In-reply-to: <20060510124748.5832.qmail@web36305.mail.mud.yahoo.com> To: Nash Nipples Message-id: <44620AC8.8040806@greenmeadow.ca> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAQAAA+k= References: <20060510124748.5832.qmail@web36305.mail.mud.yahoo.com> User-Agent: Thunderbird 1.5.0.2 (X11/20060503) Cc: freebsd-net@freebsd.org 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 List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 May 2006 15:47:05 -0000 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 > > --------------------------------- > Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less. > _______________________________________________ > freebsd-net@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org" > > > > 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 -- duane@greenmeadow.ca