gmail_as_a_relay_on_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
gmail_as_a_relay_on_linux [2020/09/30 16:29] – juckins | gmail_as_a_relay_on_linux [2022/06/08 08:59] – juckins | ||
---|---|---|---|
Line 1: | Line 1: | ||
===== Using Gmail as a Relay on CentOS Linux ===== | ===== Using Gmail as a Relay on CentOS Linux ===== | ||
- | |||
- | Required packages if CentOS6 6.7: \\ | ||
- | * postfix (tested version 2: | ||
- | * ca-certificates.noarch (tested version 2015.2.4-65.0.1.el6_6) | ||
Required packages if CentOS7 7.2.1511: \\ | Required packages if CentOS7 7.2.1511: \\ | ||
Line 20: | Line 16: | ||
CentOS 8 Notes: | CentOS 8 Notes: | ||
- | * (Nothing) | + | * (Nothing |
Directions [[http:// | Directions [[http:// | ||
Line 90: | Line 86: | ||
</ | </ | ||
- | 9. Edit ~/.muttrc for each user as appropriate: \\ | + | 9. Add these lines to the global |
< | < | ||
- | #set from = $USER@$HOSTNAME | + | set from = "`whoami`@`hostname`" |
- | #set from = username@HOSTNAME_OR_ALIAS.domain | + | set realname = "`whoami`@`hostname`" |
- | #set realname="juckins@lightning" | + | |
- | set realname=" | + | |
</ | </ | ||
Line 107: | Line 100: | ||
< | < | ||
echo 'It works' | mailx -s 'Test message' | echo 'It works' | mailx -s 'Test message' | ||
+ | </ | ||
+ | or | ||
+ | < | ||
+ | mailx -a test.txt -s "test subject" | ||
</ | </ | ||
gmail_as_a_relay_on_linux.txt · Last modified: 2024/01/01 12:40 by juckins