gmail_as_a_relay_on_linux_centos8
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| gmail_as_a_relay_on_linux_centos8 [2022/03/18 14:26] – created juckins | gmail_as_a_relay_on_linux_centos8 [2025/03/20 19:55] (current) – juckins | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== GMail as a Relay on Linux CENTOS8 ==== | + | ==== GMail as a Relay on Linux Ubunutu 20.04 LTS and CENTOS8 |
| Using Postfix for this solution. | Using Postfix for this solution. | ||
| - | |||
| - | dnf install postfix ca-certificates mutt | ||
| - | dnf install cyrus-sasl, cyrus-sasl-gssapi, | ||
| Follow instructions at https:// | Follow instructions at https:// | ||
| + | |||
| + | Or see the same at {{ :: | ||
| * Will this also break with less sure apps? | * Will this also break with less sure apps? | ||
| Line 12: | Line 11: | ||
| * Everything should work OK. | * Everything should work OK. | ||
| + | For CENTOS8: | ||
| + | |||
| + | dnf install postfix ca-certificates mutt | ||
| + | dnf install cyrus-sasl, cyrus-sasl-gssapi, | ||
| + | systemctl start postfix | ||
| + | systemctl enable postfix | ||
| + | |||
| + | Next perform the following steps as root: | ||
| + | | ||
| + | cd / | ||
| + | cp main.cf main.cf.distro | ||
| + | mkdir / | ||
| + | cd / | ||
| + | vi sasl_passwd | ||
| + | |||
| + | Add this line: | ||
| + | |||
| + | [smtp.gmail.com]: | ||
| + | |||
| + | postmap / | ||
| + | chown root:root / | ||
| + | chmod 0600 / | ||
| + | |||
| + | vi / | ||
| + | |||
| + | Comment out this line: | ||
| + | |||
| + | # | ||
| + | |||
| + | Now wdd to the end of the main.cf file: | ||
| + | |||
| + | # Local Edits | ||
| + | relayhost = [smtp.gmail.com]: | ||
| + | # Enable SASL authentication | ||
| + | smtp_sasl_auth_enable = yes | ||
| + | # Disallow methods that allow anonymous authentication | ||
| + | smtp_sasl_security_options = noanonymous | ||
| + | # Location of sasl_passwd | ||
| + | smtp_sasl_password_maps = hash:/ | ||
| + | # Enable STARTTLS encryption | ||
| + | smtp_tls_security_level = encrypt | ||
| + | # Location of CA certificates | ||
| + | smtp_tls_CAfile = / | ||
| + | |||
| + | Restart postfix: | ||
| + | |||
| + | systemctl restart postfix | ||
| + | |||
| + | Send test message: | ||
| + | |||
| + | mutt -s " | ||
gmail_as_a_relay_on_linux_centos8.1647627977.txt.gz · Last modified: by juckins
