Re: [exim] sender-address and gmail

Góra strony
Delete this message
Reply to this message
Autor: Angelo Chen
Data:  
Dla: exim-users
Temat: Re: [exim] sender-address and gmail
yes, trusted users fixed the issue, thanks.
MAIN_TRUSTED_USERS = uucp : user1 : root

On Mon, Oct 23, 2017 at 11:46 PM, Heiko Schlittermann via Exim-users <
exim-users@???> wrote:

> Hi,
>
> Angelo Chen via Exim-users <exim-users@???> (Mo 23 Okt 2017 10:25:33
> CEST):
> > On Mon, Oct 23, 2017 at 3:24 PM, Angelo Chen <angelochen960@???>
> > wrote:
> >
> > > Hi,
> > >
> > > I sent a test email as follow:
> > >
> > > echo "This is a test." | mail -s Testing -r user1@???
> user2@???
> …
> > >
> > > gmail_login:
> > >     driver = plaintext
> > >     public_name = LOGIN
> > >     client_send = : $sender-address : aPassword

> > >
> > > this failed, looks like $sender-address is expanded into
> user1@localhost,
> > > any idea how to make this work? THanks,
>
> Your
>
>     echo … | mail … -r …

>
> is called by a non-privileged user "user1", isn't it?
> Exim overrides the envelope sender with the ID it believes to be correct
> and trusted. In your case it is the "user1".
>
> (I assume, mail invokes sendmail, which in turn is just an Exim.)
>
> You can add your local "user1" to the list of trusted users. Or use the
> ${address:$h_from:} expansion. (And hope that the From: header doesn't
> contain
> multiple addresses.)
>
>     Best regards from Dresden/Germany
>     Viele Grüße aus Dresden
>     Heiko Schlittermann
> --
>  SCHLITTERMANN.de ---------------------------- internet & unix support -
>  Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
>  gnupg encrypted messages are welcome --------------- key ID: F69376CE -
>  ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -

>
> --
> ## List details at https://lists.exim.org/mailman/listinfo/exim-users
> ## Exim details at http://www.exim.org/
> ## Please use the Wiki with this list - http://wiki.exim.org/
>