Sendmail To and CC are not filled error

Hi,

I've spent the past few hours web searching and trying different things
for the following sendmail error:

554 5.7.1 To: and CC: are not filled

which results when an email comes into the system where the sender has
only populated the "Bcc" field and not the "To" or "CC" fields.

I don't want these messages rejected yet can't seem to find anyway
within sendmail to stop the rejection and allow the messages through.

Any ideas what I should try to get this working?

Thanks.

Michael.
Michael Mansour [ Fr, 28 September 2007 09:25 ] [ ID #1832059 ]

Re: Sendmail To and CC are not filled error

Michael Mansour <micoots [at] gmail.com> writes:
> I've spent the past few hours web searching and trying different
> things for the following sendmail error:
>
> 554 5.7.1 To: and CC: are not filled
>
> which results when an email comes into the system where the sender has
> only populated the "Bcc" field and not the "To" or "CC" fields.
>
> I don't want these messages rejected yet can't seem to find anyway
> within sendmail to stop the rejection and allow the messages through.
>
> Any ideas what I should try to get this working?

Can you find the message in your sendmail.cf file?

YES => post the relevant fragment of sendmail.cf
NO => tell us which milters do you use

--
[pl>en: Andrew] Andrzej Adam Filip : anfi [at] priv.onet.pl : anfi [at] xl.wp.pl
Before You Ask: http://anfi.homeunix.net/sendmail/B4UAsk-Sendmail.html
Homesite of Andrzej Filip: http://anfi.homeunix.net/
Open-Sendmail: http://open-sendmail.sourceforge.net/
Andrzej Filip [ Fr, 28 September 2007 15:56 ] [ ID #1832061 ]

Re: Sendmail To and CC are not filled error

Hi Andrzej,

Andrzej Adam Filip wrote:
> Michael Mansour <micoots [at] gmail.com> writes:
>> I've spent the past few hours web searching and trying different
>> things for the following sendmail error:
>>
>> 554 5.7.1 To: and CC: are not filled
>>
>> which results when an email comes into the system where the sender has
>> only populated the "Bcc" field and not the "To" or "CC" fields.
>>
>> I don't want these messages rejected yet can't seem to find anyway
>> within sendmail to stop the rejection and allow the messages through.
>>
>> Any ideas what I should try to get this working?
>
> Can you find the message in your sendmail.cf file?

No:

# grep 5.7.1 sendmail.cf
R<REJECT> <$*> $#error $ [at] 5.7.1 $: "550 Access denied"
R<REJECT> $* $#error $ [at] 5.7.1 $: "550 Access denied"
R$* $#error $ [at] 5.7.1 $: "550 Relaying denied. Proper
authentication required."
R<FORGED> $#error $ [at] 5.7.1 $: "550 Relaying denied. IP
name possibly forged " $&{client_name}
R<FAIL> $#error $ [at] 5.7.1 $: "550 Relaying denied. IP
name lookup failed " $&{client_name}
R$ [at] $| $* $#error $ [at] 5.7.1 $: "550 not authenticated"
R$* $#error $ [at] 5.7.1 $: "550 " $&{auth_authen} " not
allowed to act as " $&{auth_author}
R<NO>$* $#error $ [at] 5.7.1 $: "550 do not try TLS with "
$&{server_name} " ["$&{server_addr}"]"

and:

# grep filled sendmail.cf
#

> YES => post the relevant fragment of sendmail.cf
> NO => tell us which milters do you use

I use milters:

smf-spf
smf-zombie
scam-back
dcc

I also do rate control, throttling, etc.

I added:

define(`confNO_RCPT_ACTION',`add-to-undisclosed')dnl

to my .mc which took care of the original error:

5.7.1 Message for undisclosed recipients

but the:

5.7.1 To: and CC: are not filled

has been trickier to track down.

Thanks for your help so far.

Michael.
Michael Mansour [ Fr, 28 September 2007 16:34 ] [ ID #1832062 ]

Re: Sendmail To and CC are not filled error

Hi Andrzej,

Michael Mansour wrote:
> Hi Andrzej,
>
> Andrzej Adam Filip wrote:
>> Michael Mansour <micoots [at] gmail.com> writes:
>>> I've spent the past few hours web searching and trying different
>>> things for the following sendmail error:
>>>
>>> 554 5.7.1 To: and CC: are not filled
>>>
>>> which results when an email comes into the system where the sender has
>>> only populated the "Bcc" field and not the "To" or "CC" fields.
>>>
>>> I don't want these messages rejected yet can't seem to find anyway
>>> within sendmail to stop the rejection and allow the messages through.
>>>
>>> Any ideas what I should try to get this working?
>>
>> Can you find the message in your sendmail.cf file?
>
> No:
>
> # grep 5.7.1 sendmail.cf
> R<REJECT> <$*> $#error $ [at] 5.7.1 $: "550 Access denied"
> R<REJECT> $* $#error $ [at] 5.7.1 $: "550 Access denied"
> R$* $#error $ [at] 5.7.1 $: "550 Relaying denied. Proper
> authentication required."
> R<FORGED> $#error $ [at] 5.7.1 $: "550 Relaying denied. IP
> name possibly forged " $&{client_name}
> R<FAIL> $#error $ [at] 5.7.1 $: "550 Relaying denied. IP
> name lookup failed " $&{client_name}
> R$ [at] $| $* $#error $ [at] 5.7.1 $: "550 not authenticated"
> R$* $#error $ [at] 5.7.1 $: "550 " $&{auth_authen} " not
> allowed to act as " $&{auth_author}
> R<NO>$* $#error $ [at] 5.7.1 $: "550 do not try TLS with "
> $&{server_name} " ["$&{server_addr}"]"
>
> and:
>
> # grep filled sendmail.cf
> #
>
>> YES => post the relevant fragment of sendmail.cf
>> NO => tell us which milters do you use
>
> I use milters:
>
> smf-spf
> smf-zombie

When you mentioned what milters I was using yo got me thinking and
checking. I checked smf-zombie and that is the software which handles
that error:

# grep filled *
Binary file smf-zombie matches
smf-zombie.c: syslog(LOG_NOTICE, "To: and CC: are not filled: %s, %s
-> %s", context->fqdn, context->from, context->rcpt);
smf-zombie.c: smfi_setreply(ctx, "554", "5.7.1", "To: and CC: are not
filled");
Binary file smf-zombie.o matches

Reviewing its features again:

Features:

- friendly hosts/networks whitelist;
- SMTP AUTH support;
- scanning of e-Mail messages less than certain size;
- blocking up to 90% of SPAM/worms engines;
- blocking of e-Mail messages from dynamic hosts;
- inspection of the sender's IP address with the most reliable
zombie RBL;
- blocking of the bounce e-Mail messages;
- blocking of e-Mail messages for undisclosed recipients;
- blocking of e-Mail messages with harmful attachments.

so it's the second last "undisclosed recipients" feature that is the
problem. I am looking for a way to either turn this feature off or
whitelist sites (prefer not to do as clients then frst have to complain
and report a problem).

Thanks for your help.

Michael.

> scam-back
> dcc
>
> I also do rate control, throttling, etc.
>
> I added:
>
> define(`confNO_RCPT_ACTION',`add-to-undisclosed')dnl
>
> to my .mc which took care of the original error:
>
> 5.7.1 Message for undisclosed recipients
>
> but the:
>
> 5.7.1 To: and CC: are not filled
>
> has been trickier to track down.
>
> Thanks for your help so far.
>
> Michael.
Michael Mansour [ Sa, 29 September 2007 00:00 ] [ ID #1832070 ]
Miscellaneous » comp.mail.sendmail » Sendmail To and CC are not filled error

Vorheriges Thema: Disable weak TLS
Nächstes Thema: Sending many e-mails