I find a lot of Unix mail programs' documentations unwieldy because they provide a lot of advanced commands but it is difficult to find basic set-up information.
I would like to check and send email from the command line and am reading about how to set up mailx.
The documentation says:
IMAP or POP3 client setup
As you probably want messages to be deleted from this account after saving them, prefix it with '%:'. The shortcut command can be used to avoid typing that many characters every time you want to connect:
shortcut myisp %:imaps://[email protected]
You might want to put this string into a startup file. As the shortcut command is specific to this implementation of mailx and will
confuse other implementations, it should not be used in ~/.mailrc, instead, put
set NAIL_EXTRA_RC=~/.nailrc in ~/.mailrc and create a file ~/.nailrc containing the shortcut command above. You can then access your remote mailbox by invoking
'mailx -f myisp' on the command line, or by executing 'fi myisp'
within mailx.
I followed these instructions. I notice that so far the configuration file does not contain a password or any other information.
I have mailx installed. I tried to invoke the mailx -f myisp
command, which returned No such file or directory.
Why does this not work?
How do I configure mailx to send and read email from Gmail?
I have looked through the documentation and I do not see any configuration instructions apart from "Mailx reads mail from the post office", without explanation of how to create that post office. I have definitely found useful third-party guides which explain to write configuration information in a .mailrc file, but I'm at least curious why this information is not in the mailx man pages and if there are some other man pages I should be reading as preparation for using mailx.