Install paclink-unix
- Configure a single MTA
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
plu:email_client_config [2014/01/26 13:38] gunn [Configure mutt] |
plu:email_client_config [2017/12/04 10:23] (current) gunn [mutt and mail] |
||
---|---|---|---|
Line 20: | Line 20: | ||
</file> | </file> | ||
- | ===== mutt ===== | + | ===== mutt and mail ===== |
+ | * Overview of [[wp>Mail_(Unix) | Mail]] & [[wp>Mutt_(e-mail_client) | Mutt]]. | ||
+ | * The latest version of mutt is [[https://www.neomutt.org/ | NeoMutt]] | ||
+ | * [[http://www.mutt.org/ | Original Mutt e-mail client home page]] | ||
+ | * [[http://www.ucolick.org/~lharden/learnmutt.html | Learning Mutt]] | ||
+ | ==== Install mutt or mail ==== | ||
+ | * As root | ||
- | * [[http://www.mutt.org/ | Mutt e-mail client home page]] | + | <code> |
- | ==== Install mutt ==== | + | |
- | * As root | + | |
- | <code bash> | + | |
apt-get install mutt | apt-get install mutt | ||
</code> | </code> | ||
+ | * or install //mail// program | ||
+ | <code> | ||
+ | apt-get install mailutils | ||
+ | </code> | ||
==== Configure mutt ==== | ==== Configure mutt ==== | ||
+ | * [[plu:email_client_config:mutt:muttrc | Example .muttrc file]] | ||
* mutt has good [[http://www.mutt.org/#doc | documentation]] | * mutt has good [[http://www.mutt.org/#doc | documentation]] | ||
- | * cd to your home directory and confirm there is a //Mail// directory | + | * cd to your home directory and confirm there is a //Maildir// directory |
* Setup up the rest of the mail directories | * Setup up the rest of the mail directories | ||
<code bash> | <code bash> | ||
- | mkdir -p ~/Mail/{,cur,tmp,new} | + | mkdir -p ~/Maildir/{,cur,tmp,new} |
- | mkdir -p ~/Mail/inbox/{,cur,tmp,new} | + | mkdir -p ~/Maildir/inbox/{,cur,tmp,new} |
- | mkdir -p ~/Mail/sent/{,cur,tmp,new} | + | mkdir -p ~/Maildir/sent/{,cur,tmp,new} |
- | mkdir -p ~/Mail/drafts/{,cur,tmp,new} | + | mkdir -p ~/Maildir/drafts/{,cur,tmp,new} |
- | mkdir -p ~/Mail/trash/{,cur,tmp,new} | + | mkdir -p ~/Maildir/trash/{,cur,tmp,new} |
- | mkdir -p ~/Mail/attachments/{,cur,tmp,new} | + | mkdir -p ~/Maildir/attachments/{,cur,tmp,new} |
</code> | </code> | ||
* Copy the following mutt .muttrc config file to your home dir and personalize | * Copy the following mutt .muttrc config file to your home dir and personalize | ||
- | * **Do not run mutt until you have edited this file**: [[plu:email_client_config:mutt_config | example .muttrc file]] | + | * **Do not run mutt until you have edited this file**: [[plu:email_client_config:mutt:muttrc| example .muttrc file]] |
* Make sure that you have configured you mail client Reply-To: to be a valid winlink address. ie: | * Make sure that you have configured you mail client Reply-To: to be a valid winlink address. ie: | ||
* Reply-To: ke7kro@winlink.org | * Reply-To: ke7kro@winlink.org | ||
Line 50: | Line 57: | ||
* Create a mail message in a text file | * Create a mail message in a text file | ||
- | * Subject is: %%//WL2K R/%% Test msg | + | * Subject follows -s in quotes |
+ | * //mutt -c// allows specifying Carbon Copy addresses | ||
+ | * Blind Copy (Bcc:) does not work in winlink e-mail | ||
+ | <code> | ||
+ | # send content of a file in body of e-mail | ||
+ | mutt -s "put subject line here" you@youremailid.com someoneelse@whatever.com < file_name_of_content | ||
+ | </code> | ||
+ | * Another example doing the same thing | ||
<code bash> | <code bash> | ||
mutt -s "//WL2K R/ Test msg" callsign>@winlink.org < mail_message_file_name | mutt -s "//WL2K R/ Test msg" callsign>@winlink.org < mail_message_file_name | ||
Line 68: | Line 81: | ||
mutt -s “//WL2K R/” kg6geu@winlink.org, ke7kro@winlink.org < /tmp/mailmessage.txt | mutt -s “//WL2K R/” kg6geu@winlink.org, ke7kro@winlink.org < /tmp/mailmessage.txt | ||
</code> | </code> | ||
+ | |||
+ | |||
+ | ==== Running mail in a script or command line ==== | ||
+ | |||
+ | * //mutt// and //mail// programs have similar syntax for the basic operation | ||
+ | * //mutt -x// will emulate the mailx compose mode | ||
+ | * **NOTE**: winlink mail is picky about the "From:" & "Reply-To:" fields so you need to set them explicitly | ||
+ | |||
+ | <code> | ||
+ | # send content of a file in body of e-mail | ||
+ | mail -s "//WL2K your subject line here" -a "From: yourcallsign@winlink.org" -a "Reply-To: yourcallsign@winlink.org" someonescallsign@winlink.org someregularemailaddress < file_name_of_content | ||
+ | </code> | ||
+ | * Note in the example below you must use single quotes in the -s subject argument because of the forward slashes | ||
+ | <code> | ||
+ | # from command line or script | ||
+ | echo “This will go into the body of the mail” | mail -s '//WL2K cmd line test' -a "From: yourcallsign@winlink.org" -a "Reply-To: yourcallsign@winlink.org" some_regular_email_address | ||
+ | </code> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== WEB Based Email Clients ===== | ||
+ | * There are a number of choices for web based e-mail clients, google is your friend | ||
+ | * [[http://sourceforge.net/projects/neomail/ | NeoMail]] - uses movemail | ||
+ | * [[http://squirrelmail.org/ | SquirrelMail]] - uses imap server |