[prev in list] [next in list] [prev in thread] [next in thread] 

List:       exim-users
Subject:    Re: [exim] sender-address and gmail
From:       Angelo Chen via Exim-users <exim-users () exim ! org>
Date:       2017-10-24 5:16:16
Message-ID: CANp9Ab8AQFJkA5nNRE-qpLLZaVvf4fnHT=T-Gjpp6-UXzOEfXg () mail ! gmail ! com
[Download RAW message or body]

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@exim.org> wrote:

> Hi,
>
> Angelo Chen via Exim-users <exim-users@exim.org> (Mo 23 Okt 2017 10:25:33
> CEST):
> > On Mon, Oct 23, 2017 at 3:24 PM, Angelo Chen <angelochen960@gmail.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I sent a test email as follow:
> > >
> > > echo "This is a test." | mail -s Testing -r user1@abc.com
> user2@abc.com
> …
> > >
> > > 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/
>
-- 
## 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/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic