On 1/29/2017 6:41 AM, Christoph Moench-Tegeder wrote: > ## Jeremy T. Bouse (jeremy.bo...@undergrid.net): > >> Everything is working fine... So with the PGPASSFILE set in >> import_environment and I've confirmed through procfs that it is in the >> environ file for the postfix processes I comment out the 'user' and >> 'password' lines in each of the .cf files and restart postfix. > There's your mistake: you need to specify the user in that cf file. > https://www.postgresql.org/docs/current/static/libpq-pgpass.html > libpq selects the password matching the host/port/db/user tuple - > not the user/password tuple matching host/port/db. > > Regards, > Christoph Christoph,
Thanks that was the missing piece I guess... I also found when testing with 'postmap -q' I had to include the PGPASSFILE environment variable as it wasn't being read from main.cf apparently. Just commenting out the password and leaving user in the .cf files it is now working fine.
smime.p7s
Description: S/MIME Cryptographic Signature