[Exim] maildir, To, Cc and exim -bm -t -oMr xyz

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Philipp, gaschütz
Data:  
Para: exim-users
Asunto: [Exim] maildir, To, Cc and exim -bm -t -oMr xyz
Hey all!

I just slipped over a small problem.

I have configured exim to save all mail that is not being received with
protocol "xyz" to a directory in maildir format.

Once a mail arrives in that directory a script picks it up, does a couple of
things with it and pipes it back to Exim using
exim -bm -t -oMr xyz

(((
--> means: -bm accept locally generated mail (not (batch) SMTP format)
        -t read recipient from the mail headers (To: Cc: BCc: From:)
        -oMr specify protocol
)))


ok, basically that works fine.. (there's always a but, you know ;D):

Imagine the following simplified mail:
<<<<
From: mike@???
To: joe@???            (local address)
BCc: paul@???    (remote address)

>>>


* if someone sends this email from his client software directly to my server
everything works fine.

* However, if he uses another SMTP server (server B) in the first place,
server B will send the mail to paul@??? and to joe@???
my exim setup will save the msg into the maildir, the script picks it up and
pipes it back to exim. ...and exim will then deliver it to joe@??? AND
to paul@??? (paul has now got 2 copies of the mail... we don't
want that ;)


I'm a bit stuck now... would anyone have a pointer on how to correct this
problem? well, I believe it's only my problem, since this is probably what
exim is supposed to do....

thanks,
philipp!