The new Arch install needs to be able to send email to an outside smtp server. Or use an outside smtp server like my google account. Arch has s-nail by default and could out of the box send mail within its own network. But what I'm talking about is using Google smtp to send mail. The configuration file for s-nail are /etc/mail.rc and ~/HOME/.mailrc.
I began my config file with these in it.
set smtp=smtp://email_addr:password-app ##colon separated values
I saved the text file in ~/.mailrc. Then do a test send mail with the -d flag on to see what's happening wrong. It will tell you what's being loaded and line by line call of the config file. This is how my config file looks now with my goals accomplished.
set smtp-use-starttls
set smtp=smtp://smtp.gmail.com:587
set smtp-auth=login
set smtp-auth-user=USERNAME
set smtp-auth-password=<password-app>
set from="USER_EMAIL_ADDR<hostname.domain>"
For Google Mail it is important that you use the app password for the 2-way authentication in the Google web site. For the hostname.domain you can use your name but I like to use my hostname.
Comments