whiteclnt does not work?

Vernon Schryver vjs@calcite.rhyolite.com
Wed Aug 21 13:42:44 UTC 2002


> From: Rafal Maszkowski <rzm@icm.edu.pl>

> ...
> Do you mean that both From: and envelope From should be whitelisted to pass
> e-mail from such addresses?

No, a single white-listed header or envelope value is sufficent.

> ...
> >>> MAIL From:<root@sunsite.icm.edu.pl> SIZE=177 BODY=7BIT
> 250 2.1.0 <root@sunsite.icm.edu.pl>... Sender ok
> >>> RCPT To:<wojsyl@icm.edu.pl> ORCPT=rfc822;root
> 250 2.1.5 <wojsyl@icm.edu.pl>... Recipient ok
> >>> DATA
> 354 Enter mail, end with "." on a line by itself
> >>> .
> 451 4.7.1 Access denied by DCC
> ...


What does the resulting DCC log file contain?
Are there complaints in system log, perhaps /var/log/maillog?  Perhaps
concerning permissions on the white list files?

I just tried a pair of similar experiments.  I use a dccm whiteclnt
file quite similar the contents of homedir/whiteclnt in the source,
including the "include whitecommon" line that uses that file which
white-lists "env_from  dcc-admin@rhyolite.com"  Once difference is
that it blacklists messages with null or missing Message-ID lines.

    % telnet calcite.rhyolite.com 25
    Trying 192.188.61.3...
    Connected to calcite.rhyolite.com.
    Escape character is '^]'.
    220 calcite.rhyolite.com ESMTP Sendmail 8.12.5/8.12.5; Wed, 21 Aug 2002 07:29:53 -0600 (MDT)
    mail from: <vjs@z.dcc-servers.net> SIZE=177 BODY=7BIT
    250 2.1.0 <vjs@z.dcc-servers.net>... Sender ok
    rcpt to: <dcc-admin@rhyolite.com> ORCPT=rfc822;root
    250 2.1.5 <dcc-admin@rhyolite.com>... Recipient ok
    data
    354 Enter mail, end with "." on a line by itself
    test
    .
    550 5.7.1 mail g7LDTrl9002898 from ::ffff:206.169.162.65 rejected by Rhyolite DCC
    quit
    221 2.0.0 calcite.rhyolite.com closing connection
    Connection closed by foreign host.

That lacked a Message-ID line and so is black-listed by my system.  The
resulting DCC log file is this:

    VERSION: 3
    DATE: 08/21/02 07:29:53 MDT
    IP: z.dcc-servers.net ::ffff:206.169.162.65
    env_From: <vjs@z.dcc-servers.net>  mail_host=z.dcc-servers.net.
    env_To: <dcc-admin@rhyolite.com>  addr=dcc-admin  dir=userdirs/local/dcc-admin

    test

    ### end of message body ########################
    /var/dcc/whiteclnt-->spam

    X-DCC-Rhyolite-Metrics: calcite.rhyolite.com 101; bulk Body=0
							  checksum         wlist
			   IP: f334f312 cfc06f85 65a95a3a 67ac4e19              
		     env_From: 470506e9 732a1c99 faf71b3b 94ada7dd              
	      substitute helo: c3557ca2 2ada1cca fcc43f80 13ef0251              
		   Message-ID: d41d8cd9 8f00b204 e9800998 ecf8427e          many

    rejection message: 550 5.7.1 mail g7LDTrl9002898 from ::ffff:206.169.162.65 rejected by Rhyolite DCC
    result: reject


Then I got the sender and recipient right:

    % telnet calcite.rhyolite.com 25
    Trying 192.188.61.3...
    Connected to calcite.rhyolite.com.
    Escape character is '^]'.
    220 calcite.rhyolite.com ESMTP Sendmail 8.12.5/8.12.5; Wed, 21 Aug 2002 07:31:59 -0600 (MDT)
    mail from: <dcc-admin@rhyolite.com> SIZE=177 BODY=7BIT
    250 2.1.0 <dcc-admin@rhyolite.com>... Sender ok
    rcpt to: <vjs@rhyolite.com> ORCPT=rfc822;root
    250 2.1.5 <vjs@rhyolite.com>... Recipient ok
    data
    354 Enter mail, end with "." on a line by itself
    test
    .
    250 2.0.0 g7LDVxl9003034 Message accepted for delivery
    quit
    221 2.0.0 calcite.rhyolite.com closing connection
    Connection closed by foreign host.

This is the log file from that:

    VERSION: 3
    DATE: 08/21/02 07:31:59 MDT
    IP: z.dcc-servers.net ::ffff:206.169.162.65
    env_From: <dcc-admin@rhyolite.com>  mail_host=
    env_To: <vjs@rhyolite.com>  addr=vjs  dir=userdirs/local/vjs

    test

    ### end of message body ########################
    /var/dcc/whiteclnt-->OK

							  checksum         wlist
			   IP: f334f312 cfc06f85 65a95a3a 67ac4e19              
		     env_From: 908fa2ba aa84d686 418ea742 e74ab030            ok
	      substitute helo: c3557ca2 2ada1cca fcc43f80 13ef0251              
		   Message-ID: d41d8cd9 8f00b204 e9800998 ecf8427e          many

    result: accept



More information about the DCC mailing list

Contact vjs@rhyolite.com by mail or use the form.