[exim] Vacation and Exim with virutal users and domains

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Mike Jones
Date:  
À: 'exim-users@exim.org'
Sujet: [exim] Vacation and Exim with virutal users and domains
After having solved the initial problem with vacation and exim, I now have a new one. Tried lots to find a solution, but just keep going round in circles. Its probably so obvious that I'm missing it, so maybe another pair of eyes will see whats wrong. What I don't know is whether this is a problem with vacation or exim or both.

This is how we're set up here

Fred Jones has a log in account of fjones for his email.
The mail server has the domain name of mail.example.com
Freds email is delivered to fred.jones[at]hisoffice.co.uk

So we have a virtual domain file of hisoffice.co.uk and in it we have

fred.jones: fjones

Now, in .forward we have

\fjones, "|/usr/local/bin/vacation fjones"

and in .vacation.msg we have

From : fred.jones[at]hisoffice.co.uk
Subject : Re $SUBJECT

text...

This works fine, but the vacation email that gets returned has the return address of : fjones[at]mail.example.com instead of fred.jones[at]hisoffice.co.uk

We've tried \fjones, "|/usr/local/bin/vacation -a fred.jones[at]hisoffice.co.uk fjones" but it made no difference.

Now, ok, fair enough, perhaps I'm being picky, but for neatness it would be nice for the return address to be right.

Our forward router and transport in configure are:

userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
allow_filter
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply

I've discovered that Address_Pipe gets used here

address_pipe:
driver = pipe
return_output

Any more thoughts anyone ? We're using V1.1.8 of vacation, Exim V4.66 and it's on a FC 6 system.

Mike From searcher@??? Wed May 14 21:25:44 2008
Envelope-to: exim-users@???
Received: from mail.dracon.biz ([83.170.72.190]:56353)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.69)
    (envelope-from <searcher@???>) id 1JwNXY-0004pj-O9
    for exim-users@???; Wed, 14 May 2008 21:25:44 +0100
Received: from searcher ([78.105.0.234])
    (authenticated user searcher@???) by mail.dracon.biz
    (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits))
    for exim-users@???; Wed, 14 May 2008 20:26:32 +0000
Received: from searcher by searcher (PGP Universal service);
    Wed, 14 May 2008 21:25:26 +0000
X-PGP-Universal: processed;
    by searcher on Wed, 14 May 2008 21:25:26 +0000
From: "Searcher" <searcher@???>
To: <exim-users@???>
Date: Wed, 14 May 2008 21:25:16 +0100
Message-ID: <02a101c8b600$a0c799f0$e256cdd0$@biz>
MIME-Version: 1.0
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Aci2AJ7o5ygz95ZYS5C0Jk0J2NfgnQX-PGP-Encoding-Format: MIME
X-PGP-Encoding-Version: 2.0.2
Content-Type: multipart/signed;
    boundarypGP_Universal_D12D2381_19330D17_D39A2FEB_C4F191A1";
    protocol*pplication/pgp-signature"; micalg?gp-sha1"
X-Spam-Score: -1.5 (-)
X-Spam-Status: No, score?.5 required~0 tests?YES_00?.5,
    UNPARSEABLE_RELAY.001 autolearnO version^1.8
Subject: Re: [exim] ACL rewrite
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject?subscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subject?lp>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject?bscribe>
X-List-Received-Date: Wed, 14 May 2008 20:25:44 -0000



--PGP_Universal_D12D2381_19330D17_D39A2FEB_C4F191A1
Content-Type: text/plain;
    charset?s-ascii"
Content-Transfer-Encoding: QUOTED-PRINTABLE
Content-Language: en-us


Thanks for the reply Bill,

The problem here is that I need to rewrite the headers for multiple
recipients so the only way how to separate them (AFAIK) is to get in emails
one by one and check the rcpt_to value.

Since I can't touch the headers yet I need to set some flags or variables,
understood

Could you please provide some simple syntax for doing so? Checking rcpt_to
against a list of users and adding a flag at SMTP time and checking this
flag at DATA (or later) time and modifying the headers? Or just point me to
some papers which deal with this thing specifically (I found few but maybe
you know more readable ones)

Can I perhaps use this new variable even in the rewrite part?

Thank you either way


Searcher wrote:
> Hi there,
>
> how would I go about an ACL SMTP time header rewrite?
> I need to check RCPT TO, that's not in the headers so can't use regular
> rewrite/31_exim4-config_rewriting
>
> Thanks
> -src-
>
>


At RCPT TO you don't yet have any headers....

Prior to DATA, all an smtp session has is a 'negotiation' situation.

Your MTA and the distant sender are introducing themselves, exchanging
credentials, describing what is available and what is wanted (connect,
helo, mail_from, rcpt_to).

Ever see two dogs meeting for the first time?

Much the same.

You can *prepare* headers to be substituted or appended later, and can
set flags to cause whatever you have prepped to be actioned. Or NOT.

But DATA is the earliest you are transferred the message and its headers
and attachments (if any).

That said, a flag, value, or string carried in an acl_m variable might
serve you better than header alteration.

Bill


--PGP_Universal_D12D2381_19330D17_D39A2FEB_C4F191A1
Content-Type: application/pgp-signature;
    x-mac-typep674453;
    nameGP.sig
Content-Disposition: attachment; filenameGP.sig


-----BEGIN PGP SIGNATURE-----
Version: PGP Desktop 9.7.1 (Build 1503)

iQA/AwUBSCtKttGmU1S4YnBxEQImRgCfZEhOT28yd/1jfVe0q3HdYWrX/+wAn06p
HZg8QE2RHz9wlYXqveTqvLuS
XSU
-----END PGP SIGNATURE-----

--PGP_Universal_D12D2381_19330D17_D39A2FEB_C4F191A1--