You are not logged in.
Hi,
I have configured msmtp on my PC to deliver local mails to my GMail account (via a Yahoo account):
/etc/msmtprc:
defaults
auth on
tls on
tls_trust_file /etc/ssl/certs/ca-certificates.crt
aliases /etc/aliases
syslog LOG_MAIL
account default
host smtp.mail.yahoo.com
port 587
user ---@yahoo.de
from ---@yahoo.de
syslog on
password ---
/etc/aliases
johannes: ---@gmail.com
root: johannes
default: johannes
When I send a mail to root, the mail gets delivered to mail GMail account:
echo "Test" | mail -s "Subject" root
Everything works fine, but the "To" field in the mail is set to "root" and not to my GMail address, which seems strange:
Received: ---
From: ---@yahoo.de
Date: ---
To: root
Subject: Subject
User-Agent: mail v14.9.19
X-SMTP-MAILFROM: ---@yahoo.de
X-SMTP-RCPTTO: ---@gmail.com
X-Mailer: ---
Content-Length: 5
Test
Is there a way to set the "To" field to my GMail Adress from the /etc/aliases file?
Offline