Re: [Exim] setting drop_cr for the cyrus user only

Top Page
Delete this message
Reply to this message
Author: Oliver Eikemeier
Date:  
To: William Thompson
CC: exim-users
Subject: Re: [Exim] setting drop_cr for the cyrus user only
William Thompson wrote:

>>>how can I set the drop_cr option (in Exim 4) to true only for the cyrus
>>>user?
>>>
>>>drop_cr = ${if eq{$caller_uid}{60}{true}{false}}
>>>
>>>does not work
>>
>>>From the docs it looks like drop_cr isn't expanded - you can only set it
>>to true or false.
>
> Also from the docs, you can use -dropcr on the command line. I don't know
> anything about cyrus so I don't know if you can easily add it or not.


imap/lmtpd.c:

     smbuf[0] = "sendmail";
     smbuf[1] = "-i";            /* ignore dots */
     smbuf[2] = "-f";
     smbuf[3] = "<>";
     smbuf[4] = "--";
     smbuf[5] = src->addr;
     smbuf[6] = NULL;
     sm_pid = open_sendmail(smbuf, &sm);


It's easy to patch, but not the option I prefer.