On Mon, Jun 06, 2011 at 02:46:57PM -0400, Michael Way wrote:
> I have a setup where I use postfix to connect to my work smtpd
> exchange server via TLS encryption and normal login authentication.
> This smtpd server also requires that the "From" address in the
> email header is from the same user that authenticates, otherwise I
> get a: "Client does not have permissions to send as this sender"
>
> I can send emails via this system just fine using mutt or
> whatever command line mail I like, BUT I also use fetchmail to
> get email from our IMAP server. I then use a .forward file to
> keep a local copy AND send a copy to gmail as a backup.
Ugly and complex, but, oh well.
> Unfortunately my work smptd exchange server rejects all of the
> forwards to gmail because it sees that the From address is NOT
> from the authenticated user (at least that is what I gather when
> I get these messages "Client does not have permissions to send
> as this sender"
So why not just take MSexChange out of the picture? Set up direct
authentication to gmail. SASL_README.html#client_sasl just as you
did, setting it up to authenticate to MSexChange.
Have your .forward invoke sendmail(1) with your gmail address as the
sender. Then maybe a transport_maps entry to force your gmail address
to use the gmail submission service.
Did I miss something? Does that not achieve the original goal?
--
Offlist mail to this address is discarded unless
"/dev/rob0" or "not-spam" is in Subject: header