How do i send mail to certain domain users over external smtp using sendmail?

Nash Nipples trashy_bumper at yahoo.com
Thu May 11 11:27:28 UTC 2006



Duane Whitty <duane at 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 at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe at 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 at greenmeadow.ca
_______________________________________________
freebsd-net at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe at 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.


More information about the freebsd-net mailing list