Os :debian8 .
Code:
ping MiWiFi.hwy
PING MiWiFi.hwy (127.0.1.1) 56(84) bytes of data.
64 bytes from MiWiFi.hwy (127.0.1.1): icmp_seq=1 ttl=64 time=0.034 ms
64 bytes from MiWiFi.hwy (127.0.1.1): icmp_seq=2 ttl=64 time=0.036 ms
Code:
hostname
MiWiFi.hwy
Code:
cat /etc/hosts
127.0.0.1 localhost
127.0.1.1 MiWiFi.hwy MiWiFi
MiWiFi.hwy is my local domain.
I want to send email from my local domain with
debian8@MiWiFi.hwy ,debian8 is one of user in my local pc.
Code:
sudo cat /etc/postfix/main.cf
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no
append_dot_mydomain = no
readme_directory = no
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myhostname = MiWiFi.hwy
mydomain = MiWiFi.hwy
myorigin = $mydomain
mydestination = MiWiFi.hwy, localhost.hwy, localhost
relayhost =
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_protocols = all
inet_interfaces = all
default_transport = error
relay_transport = error
home_mail = Maildir
To send email from localhost.
Code:
echo "it is a test" | mail -s "to send mail from local domain" xxxx@yahoo.com
send-mail: the server does not support authentication
send-mail: could not send mail (account default from /home/debian8/.msmtprc)
Can't send mail: sendmail process failed with error code 69
The log for sending email.
Code:
cat .msmtp.log
Oct 06 09:43:32 host=MiWiFi.hwy tls=off auth=on user=pengsir from=debian8@MiWiFi.hwy recipients=xxxx@yahoo.com errormsg='the server does not support authentication' exitcode=EX_UNAVAILABLE
The .msmtprc configuration file.
Code:
cat .msmtprc
account default
host MiWiFi.hwy
user pengsir
from debian8@MiWiFi.hwy
password xxxx
auth login
tls off
logfile .msmtp.log
How to fix it ?