Re: [exim] sender-address and gmail

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Heiko Schlittermann
Date:  
À: exim-users
Sujet: Re: [exim] sender-address and gmail
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 ------------ -