I have set up postfix on a server that has to send all output from root to R*****@gmail.com - But the problem is that when it sends mail it tries and sends to "root@rene-desktop" which I am notified via gmail:
"Your message was not delivered to the root@rene-desktop because the domain rene-desktop was not found. Check if there are spelling errors or excess spaces and try again."
I just want the following: Root ---------> My gmail. (Not root@rene-desktop)
What can the problem be?
Sudo nano main.cf myhostname = localhost.localdomain mydestination = localhost localhost.localdomain relayhost = [smtp.gmail.com]:587 smtp_use_tls = yes smtp_sasl_auth_enable = yes smtp_sasl_security_options = smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt compatibility_level = 2 sudo nano /var/log/mail.log Jan 29 13:35:55 rene-desktop postfix/cleanup[1686]: F1E494016EB: message-id=<[email protected]> Jan 29 13:35:56 rene-desktop postfix/qmgr[1313]: F1E494016EB: from=<root@rene-desktop>, size=420, nrcpt=1 (queue active) Jan 29 13:35:57 rene-desktop postfix/smtp[1690]: F1E494016EB: to=<root@rene-desktop>, relay=smtp.gmail.com[108.177.119.108]:587, delay=1.7, delays=0.02/0.06/0.61/1, ds$ Jan 29 13:35:57 rene-desktop postfix/qmgr[1313]: F1E494016EB: removed