I have postfix and mail installed on my server.
The following command works fine
$mail aj@xyz.com
But if I use this command
$mail aj@mydomain.com
The system thinks I am trying to send a local email to the user 'aj'. How can set mail to send emails to aj@mydomain.com 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