I have postfix and mail installed on my server.
The following command works fine
$mail [email protected]
But if I use this command
$mail [email protected]
The system thinks I am trying to send a local email to the user 'aj'. How can set mail to send emails to [email protected] externally?
The output from /etc/mailname is
$cat /etc/mailname
mydomain.com
The output from /etc/mail.rc
$cat /etc/mail.rc
set ask askcc append dot save crt
ignore Received Message-Id Resent-Message-Id Status Mail-From Return-Path Via Delivered-To