Re: [exim] Exim Configuration - Setting O/S User

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Cabbar Duzayak
Data:  
Para: exim-users
Assunto: Re: [exim] Exim Configuration - Setting O/S User
Hi,

Let me clarify why I asked this in the first place... AS I mentioned,
when you invoke sending e-mail via perl/php, that script is executed
as nobody on u/x for security reasons. Hence, exim puts this nobody in
the header. And, when this happens, some recipient SMTPs mark this
e-mail as SPAM right away, only because they see this "nobody" in the
header, and I was merely trying to avoid this. So, it is not like I am
trying to confuscate anything.

First of all, the "received_header_text" setting worked beautifully!
Thanks very much for that...

As for (1), I was not trying to change the log or mask any details. In
fact, even though, I set the "received_header_text", exim log still
had the actual user who sent the e-mail... So, using the mail id, I
can still trackt he user.

Once again, thanks a lot for your help. You saved my day...

On 10/27/05, Marc Sherman <msherman@???> wrote:
> Cabbar Duzayak wrote:
> > Hi,
> >
> > When someone sends an e-mail using php, exim sets the following 2
> > headers (along with others of course):
> >
> > Received:      from x.x.x.x (EHLO host.mydomain.com) (x.x.x.x) by
> > mta151.mail.dcn.yahoo.com with SMTP; Wed, 24 Sep 2005 10:29:04 -0700

>
> 2 points:
>
> 1)
> http://www.exim.org/eximwiki/MailingListEtiquette#head-a6f7fb5ce8816568569a321f783315207ec38063
>
> 2) This header is _not_ added by your exim server; rather, it's added by
> mta151.mail.dcn.yahoo.com when it receives the message from your server.
>
> > Received:     from <O/S User> by host.mydomain.com with local (Exim 4.52)
> > id 3ABiAO-00019o-KL for yahoouser@???; Thu, 27 Oct 2005 13:29:03
> > +0300

> >
> > Here, the <O/S User> is picked up from the operation system, and it is
> > the user that owns the process, which is the php process that
> > initiates sending out this e-mail.
> >
> > Is there a way to configure exim such that, it won't pick up the owner
> > of that process for this header, but a specific user that I explicitly
> > specify through configuration?
>
> It looks to me like the only way to suppress the OS user name from being
> included in the Received header here would be to change the
> received_header_text setting. It's expanded, so you can put a
> conditional in there where $sender_ident is used in the default.
>
> http://exim.org/exim-html-4.50/doc/html/spec_14.html#IX1351
>
> To make the conditional easier, you might want to have your php script
> use -oMr when it invokes exim to set the protocol to something other
> than "local".
>
> - Marc
>
> --
> ## 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/
>