Chris Pollock:
> On Sun, 2019-06-23 at 01:21 -0400, Viktor Dukhovni wrote:
> > On Sat, Jun 22, 2019 at 08:56:35PM -0500, Chris Pollock wrote:
> > 
> > > I've spent 3hrs going over and over my settings and can't find
> > > where
> > > I've got a problem. My /etc/postfix/sasl_passwd file contains:
> > > 
> > > smtp.gmail.com:587 [email protected]:********************
> > > *
> > 
> > Since your relayhost setting is:
> > 
> >   relayhost = [smtp.gmail.com]:587
> > 
> > Your SASL password should (IIRC) be either:
> > 
> >       [smtp.gmail.com]:587 [email protected]:**************
> > *******
> > 
> > or
> > 
> >       smtp.gmail.com [email protected]:********************
> > *
> > 
> > the version without the [], but the port might not work, as it is
> > neither the full destination, nor the underlying host.
> 
> Thank you for the reply Viktor. I've finally got it partially working
> with my GMail account now and most of my cronjob messages are being
> sent and returned to me as before. By adding the [ ] around the
> smtp.gmail.com it started working.
> I still have some that are going to /var/spool/mail/nobody however.
> Headers below:
> 
> From [email protected]  Sun Jun 23 09:01:26 2019
> Return-Path: <[email protected]>
> X-Original-To: root

All mail for root goes to nobody, if you're delivering mail with
procmail or the like.

Postfix expects that UNIX systems are used according this best practice:

- Log in as a real user, not as root.
- Use su (or sudo) for doing root stuff.
- Set up an alias root-> real user, and read mail as the real user.

        Wietse

Reply via email to