Re: Problem with exim rewriting rule

2000-01-04 Thread Ronald Tin
On Tue, Jan 04, 2000 at 03:45:36PM +0100, Klaus Drews wrote:
 Hi Ronald,
 
 wich section you put this in ?
the section after the comments REWRITE CONFIGURATION,
probably the same place as you put your rewrite rules?

  I am doing my rewrites this way:
 
  [EMAIL PROTECTED] [EMAIL PROTECTED] Ffr
  [EMAIL PROTECTED] ${if eq {$sender_address}{} [EMAIL PROTECTED] Tt
 
 Regarding to the docs, b and c stand for
 b   rewrite the Bcc: header
 c   rewrite the Cc: header
 
 Since my entry in exim.conf is bcfrF it should only work for 
 b   rewrite the Bcc: header
 c   rewrite the Cc: header
 f   rewrite the From: header
 r   rewrite the Reply-to: header
 F   rewrite the envelope From field
 
 Since I didn't say t, it shouldn't rewrite the To: header.
 
 But I will try your alternative if you tell me about the section to put it.
 

I think so too. But perhaps there are some hidden caveats
that you and I didn't recognize?
If you need it I could send you my exim.conf. :)


Problem with exim rewriting rule

2000-01-03 Thread Klaus Drews
Hi there,

exim works fine with me, but produced one silly bug because of low -level
configuration. I wanted to replace my loginname with my original email-adress,
so that my ISP will accept the sender adress as correct. Therefore I created a
mail-address file and put the following into the rewriting rules section:
[EMAIL PROTECTED]${lookup{$1}lsearch{/etc/email-addresses}\
{$value}fail} bcfrF
This part works fine.
The bug occurs, when I get mail from for example lpd for my local account. Then
the To-header will be changed and the mail will be delivered over my ISP instead
of directly to my local account.
But all I wanted was to change the From-header part.
Now I know, that I can do it with exim this way, but I do not know how. I tried 
a lot
and got lots of error messages.
Can someone fill me an example to do this and a short explanation ? I don't 
want it
to work without knowing why ... . (And please do not only refer to the docs. I 
read
them all - it helped little).

Thanks in advance,
Klaus.






Re: Problem with exim rewriting rule

2000-01-03 Thread Ronald Tin
I am doing my rewrites this way:

[EMAIL PROTECTED] [EMAIL PROTECTED] Ffr
[EMAIL PROTECTED] ${if eq {$sender_address}{} [EMAIL PROTECTED] Tt

And I don't have the problem (mail delivered to [EMAIL PROTECTED] is ok)
Fetchmail works too.
I guess the b and c are for CC and BCC (need to look-up the docs for
that) and should not matter, but well, perhaps it does.


(The second line is there so delivery failures don't go out,
 and shouldn't affect normal mails too.)


On Mon, Jan 03, 2000 at 04:09:22PM +0100, Klaus Drews wrote:
 Hi there,
 
 exim works fine with me, but produced one silly bug because of low -level
 configuration. I wanted to replace my loginname with my original email-adress,
 so that my ISP will accept the sender adress as correct. Therefore I created a
 mail-address file and put the following into the rewriting rules section:
 [EMAIL PROTECTED]${lookup{$1}lsearch{/etc/email-addresses}\
 {$value}fail} bcfrF
 This part works fine.
 The bug occurs, when I get mail from for example lpd for my local account. 
 Then
 the To-header will be changed and the mail will be delivered over my ISP 
 instead
 of directly to my local account.
 But all I wanted was to change the From-header part.
 Now I know, that I can do it with exim this way, but I do not know how. I 
 tried a lot
 and got lots of error messages.
 Can someone fill me an example to do this and a short explanation ? I don't 
 want it
 to work without knowing why ... . (And please do not only refer to the docs. 
 I read
 them all - it helped little).
 
 Thanks in advance,
 Klaus.