Re: [exim] [dspam-users] dspam and exim

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Sachin Sharma
Data:  
Para: Craig Whitmore
CC: exim-users, dspam-users
Asunto: Re: [exim] [dspam-users] dspam and exim
Hi,

Write local_part and domain like ${local_part}@${domain}. Below find
command used by me for refernce.

command = "/usr/local/dspamup/bin/dspam --client --deliver=innocent 
--user ${local_part}@${domain} -f \
           '$sender_address' -- %u"




Sachin Sharma
Sr. Engineer Systems (Linux)
Net4India Ltd.

D-25
Sector 3
Noida-201301
INDIA

Tel: 0120-5323500
Fax: 0120-5323520
URL: http://www.net4.in
------------------------------------------------------------------------
This message may contain confidential and/or privileged information. If
you are not the addressee or authorized to receive this for the
addressee, you must not use, copy, disclose or take any action based on
this message or any information herein. If you have received this
message in error, please advise the sender immediately by reply e-mail
and delete this message. Thank you for your cooperation.
------------------------------------------------------------------------




Craig Whitmore wrote:

> I have a little problem with email addresses as -_-@example.com with
> exim/dspam. (-_-@example.com is a valid email address)
> I have posted this on the exim and dspam lists..
>
> I have below
> ------------------------------
> dspam_router_trainer:
>   no_verify
>   condition   = "${if and { \
>                            {!def:h_X-Spam-Flag:} \
>                            {!def:h_X-DSPAM-Check:} \
>                            {!eq {$received_protocol}{local}} \
>                            { <= {$message_size}{2048k}} \
>                       {1}{0} \
>                   }"
>   headers_add = "X-DSPAM-Check: by $primary_hostname on $tod_full"
>   driver      = accept
>   transport   = dspam_spamcheck
> ---------------------------------------------
> dspam_spamcheck:
>  driver             = pipe
>  command            = "dspam --mode=notrain --deliver=innocent,spam 
> --user spam -f '$sender_address' -bm $local_part@$domain"
>  home_directory     = "/tmp"
>  current_directory  = "/tmp"
>  user               = Debian-exim
>  group              = mail
>  log_output         = true
>  return_fail_output = true
>  return_path_add    = false
>  message_prefix     =
>  message_suffix     =
> ------------------------
> dspam.conf

>
> TrustedDeliveryAgent "/usr/sbin/exim4"
>
> --------------------------------
>
>
> what happens is exim passes this to dspam as:
>
> dspam --mode=notrain --deliver=innocent,spam --user spam -f
> user@??? -bm -_-@example.com
>
> which turns when dspam reinjects in:
>
> /usr/sbin/exim4 -f user@??? -bm -_-@example.com
>
> and it thinks the -_- is an option.
>
> I have tried quoting the command but doesn't seem to work
>
> command            = "dspam --mode=notrain --deliver=innocent,spam 
> --user spam -f '$sender_address' -bm \"$local_part@$domain\""

>
> but it ignores the \"'s
>
> Anyone help?
>
> Thanks
> Craig
>
>
>
>
>
>
>
>
>