From owner-freebsd-net@FreeBSD.ORG  Thu May 11 11:27:28 2006
Return-Path: <owner-freebsd-net@FreeBSD.ORG>
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 1118D16A402
	for <freebsd-net@freebsd.org>; Thu, 11 May 2006 11:27:28 +0000 (UTC)
	(envelope-from trashy_bumper@yahoo.com)
Received: from web36315.mail.mud.yahoo.com (web36315.mail.mud.yahoo.com
	[209.191.84.245])
	by mx1.FreeBSD.org (Postfix) with SMTP id 69E5F43D5D
	for <freebsd-net@freebsd.org>; Thu, 11 May 2006 11:27:27 +0000 (GMT)
	(envelope-from trashy_bumper@yahoo.com)
Received: (qmail 90380 invoked by uid 60001); 11 May 2006 11:27:26 -0000
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com;
	h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding;
	b=eZCKfKD6/D6bQq7HbMjZdhGgOz75DqsXksJCTnBOjLI+5VfuNJKc3e24DBG9gfUvoo1gEzDnZCE3PsMrfHX6nyKYr04+R4DIFflPMn4ZbGTwNnwMuimTSFl+TEbdI2ASRd2ufxt3UYGF17Q8g6/xZtl8ArK6EEKF9eOhUbixyLs=
	; 
Message-ID: <20060511112726.90378.qmail@web36315.mail.mud.yahoo.com>
Received: from [213.227.200.244] by web36315.mail.mud.yahoo.com via HTTP;
	Thu, 11 May 2006 04:27:26 PDT
Date: Thu, 11 May 2006 04:27:26 -0700 (PDT)
From: Nash Nipples <trashy_bumper@yahoo.com>
To: Duane Whitty <duane@greenmeadow.ca>
In-Reply-To: <44620AC8.8040806@greenmeadow.ca>
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Content-Filtered-By: Mailman/MimeDel 2.1.5
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 <freebsd-net.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net>
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-net>,
	<mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 11 May 2006 11:27:28 -0000



Duane Whitty <duane@greenmeadow.ca> 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
>   
> ---------------------------------
> 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
_______________________________________________
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"
Umm yea! thanks. its all about SMART_HOST.

Nash

		
---------------------------------
Blab-away for as little as 1�/min. Make  PC-to-Phone Calls using Yahoo! Messenger with Voice.
		
---------------------------------
Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.