I've configured postfix to relay gmail (google apps) but the emails are sending as email@example.com instead of firstname.lastname@example.org as (I believe) I've configured. I think the config is ok because I'm not getting any error. The issue is that it tries to send as root which doesn't exist! How can I get the emails to send as email@example.com as I specified in my sasl_password file and db?
For all config/logs, I've removed my domain and replaced with example.com.
Oct 1 13:40:57 mon1 postfix/qmgr: C01AD22880: from=<firstname.lastname@example.org>, size=450, nrcpt=1 (queue active) Oct 1 13:40:57 mon1 postfix/local: C01AD22880: to=<admin@domain>, relay=local, delay=0.05, delays=0.03/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to mailbox)
/etc/aliases (no tutorials suggested this, just one of the things I've tried)
#PostFix root: email@example.com
additions to main.cf
relayhost = [smtp.gmail.com]:587 # enable SASL authentication smtp_sasl_auth_enable = yes # disallow methods that allow anonymous authentication. smtp_sasl_security_options = noanonymous # where to find sasl_passwd smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd # Enable STARTTLS encryption smtp_use_tls = yes # where to find CA certificates smtp_tls_CAfile = /etc/ssl/certs/ca-bundle.trust.crt