heirloom_mailx_under_linux_bsd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
heirloom_mailx_under_linux_bsd [2020/06/26 07:44] – reformat peteyboy | heirloom_mailx_under_linux_bsd [2021/03/12 19:43] (current) – hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Heirloom Mailx under Linux/BSD ====== | ====== Heirloom Mailx under Linux/BSD ====== | ||
+ | Add the following to **~homeuser/ | ||
- | Add the following to** ~homeuser/ | + | <file config |
- | < | ||
# Remote SDF SMTP relaying (use SDF ' | # Remote SDF SMTP relaying (use SDF ' | ||
set ssl-verify=" | set ssl-verify=" | ||
Line 12: | Line 12: | ||
set smtp-auth-user=" | set smtp-auth-user=" | ||
set smtp-auth-password=" | set smtp-auth-password=" | ||
- | </code> | + | |
+ | </file> | ||
The SDF CA is self-signed but can still be used if desired. Retrieve and store | The SDF CA is self-signed but can still be used if desired. Retrieve and store | ||
somewhere (ie. under ~/ | somewhere (ie. under ~/ | ||
+ | <file config ~homeuser/ | ||
- | | + | set ssl-ca-file="/ |
- | set ssl-verify=" | + | set ssl-verify=" |
- | ... | + | ... |
+ | |||
+ | </ | ||
Account-specific smtp settings are possible; see the Heirloom Mailx documentation. | Account-specific smtp settings are possible; see the Heirloom Mailx documentation. | ||
- | Postfix MTA using libsaslc(3) on NetBSD 6.x: | ||
- | first, verify that postfix(1) knows about libsaslc : | ||
- | |||
- | < | ||
- | % sudo postconf -A | ||
- | saslc | ||
- | < | ||
- | |||
- | create (as superuser) the following postfix config files: | ||
- | |||
- | **/ | ||
- | |||
- | < | ||
- | | ||
- | mydomain = my.box | ||
- | mynetworks_style = host | ||
- | alias_maps = hash:/ | ||
- | # SMTP client settings: | ||
- | relayhost = [mx.sdf.org]: | ||
- | smtp_generic_maps = hash:/ | ||
- | smtp_sasl_auth_enable = yes | ||
- | smtp_sasl_password_maps = hash:/ | ||
- | smtp_sasl_security_options = noplaintext, | ||
- | smtp_sasl_tls_security_options = noanonymous | ||
- | ## explicitly allow/ | ||
- | # | ||
- | ## use of " | ||
- | # | ||
- | smtp_tls_security_level = encrypt | ||
- | smtp_sasl_type = saslc | ||
- | </ | ||
- | |||
- | **/ | ||
- | |||
- | < | ||
- | # applies to msgs to be delivered off-site | ||
- | me@mypc.my.box | ||
- | </ | ||
- | |||
- | **/ | ||
- | |||
- | (for security set ownership to root:wheel, permissions to 600) | ||
- | |||
- | |||
- | < | ||
- | |||
- | hash / | ||
- | |||
- | |||
- | < | ||
- | % cd / | ||
- | % sudo postmap generic sasl_passwd | ||
- | % sudo postfix check # no output unless errors | ||
- | % sudo / | ||
- | </ | ||
- | |||
- | test to verify everything is working correctly: | ||
- | |||
- | |||
- | < | ||
- | % mailx sdf_login@sdf.org | ||
- | Subject: test | ||
- | 123 | ||
- | . | ||
- | EOT | ||
- | |||
- | % sudo tail -n10 / | + | ---- |
- | < | + | |
- | relay=mx.sdf.org[192.94.73.24]: | + | |
- | (250 2.0.0 s3RFrfvZ010436 Message accepted for delivery) | + | |
- | </ | + | |
- | You should now be set up to use SDF's SMTP server. Enjoy! | + | [[http:// |
heirloom_mailx_under_linux_bsd.1593157494.txt.gz · Last modified: 2020/06/26 07:44 by peteyboy