After playing with the users I found out that if I set user to exim it works, I
finally found out about local_sender_check and local_sender_retain to learn that
I needed to add `dspam' to the list of trusted users so that no `Sender' is
added and the `Return-path' unmodified.

Regards,
Manu 

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of 
> Emmanuel Stapf [ES]
> Sent: Saturday, December 30, 2006 12:16 PM
> To: [email protected]
> Subject: [exim] Exim and Dspam
> 
> Hi,
> 
> I've just configured dspam with exim and cyrus, everything 
> seems to work just fine. But there is one thing I've noticed, 
> the mails users receive have the following headers added:
> - Return-Path: <[EMAIL PROTECTED]>
> - Sender: <[EMAIL PROTECTED]>
> where `dspam' is the user under which exim launches dspam.
> 
> I've sent an email to the dspam user mailing list, and 
> probably it is something that the mailer is doing. Here is 
> the definition of my transports:
> 
> lmtp_delivery:
>   home_directory = /var/spool/imap
>   driver = lmtp
>   command = "/usr/lib/cyrus-imapd/deliver -l"
>   batch_max = 20
>   user = cyrus
> 
> dspam_spamcheck:
>   driver = pipe
>   command = "/usr/bin/dspam --deliver=innocent --user 
> $local_part -bm %u"
>   user = dspam
>   group = dspam
>   return_path_add = false
>   log_output = true
>   return_fail_output = true
> 
> The lmtp_delivery is used by the `localuser' router when the 
> `dspam' router fails because the mail was cleared by dspam:
> 
> localuser:
>   driver = accept
>   check_local_user
>   transport = lmtp_delivery
>   cannot_route_message = Unknown user
> 
> And on the dspam front I have:
> TrustedDeliveryAgent "/usr/sbin/exim -oMr spam-scanned" # Exim
> 
> Any idea how to prevent the Return-path and Sender to be 
> modified/added?
> 
> Thanks,
> Manu
> 
> --------------------------------------------------------------
> ----------  
> Eiffel Software       
> 805-685-1006  
> http://www.eiffel.com 
> Customer support: http://support.eiffel.com   
> User group: http://groups.eiffel.com/join     
> --------------------------------------------------------------
> ----------  
> 
> 
> --
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://www.exim.org/eximwiki/
> 


-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to