sendmail question

Alex de Kruijff freebsd at akruijff.dds.nl
Tue Nov 18 19:11:34 PST 2003


On Wed, Nov 19, 2003 at 12:22:15PM +1030, Alex Wilkinson wrote:
> Howdy all,
>     
> I have yet another sendmail issue.
>     
> This command will send mail fine ie no errors whatsoever and the mail arrives masquared:
> 
> $ /usr/bin/mail -s "testing" alex.wilkinson at dsto.defence.gov.au
> 
> If I Bcc or Cc recipients I get this error:
> 
> $ /usr/bin/mail -s "testing" alex.wilkinson at dsto.defence.gov.au -c
> +username at domain.gov.au,username at domain.gov.au,username at domain.gov.au
> 
> WARNING: RunAsGid for MSP ignored, check group ids (egid=200, want=25)
> can not chdir(/var/spool/clientmqueue/): Permission denied
> Program mode requires special privileges, e.g., root or TrustedUser.
> 
> What is the best way of getting around this problem specific to FreeBSD -CURRENT ?

man mail gives:
mail [-EiInv] [-s subject] [-c cc-addr] [-b bcc-addr] to-addr ...

These special argument must go before the normal ones. This is true for
all command in Unix.  You have to place the -c argument before to-addr.
For mail argument afther the to-addr are sendmail argument. So your -c
didn't command to cc this also to person x.

-- 
Alex

Articles based on solutions that I use:
http://www.kruijff.org/alex/index.php?dir=docs/FreeBSD/


More information about the freebsd-questions mailing list