heirloom_mailx_under_linux_bsd
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
heirloom_mailx_under_linux_bsd [2020/06/26 07:35] – created peteyboy | heirloom_mailx_under_linux_bsd [2021/03/08 06:42] – hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Heirloom Mailx under Linux/BSD ====== | ====== Heirloom Mailx under Linux/BSD ====== | ||
+ | Add the following to // | ||
- | Add the following to ~homeuser/ | + | <file config |
# Remote SDF SMTP relaying (use SDF ' | # Remote SDF SMTP relaying (use SDF ' | ||
Line 11: | Line 11: | ||
set smtp-auth=cram-md5 | set smtp-auth=cram-md5 | ||
set smtp-auth-user=" | set smtp-auth-user=" | ||
- | set smtp-auth-password=" | + | set smtp-auth-password=" |
+ | |||
+ | </ | ||
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-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: | ||
- | |||
- | / | ||
- | |||
- | |||
- | myhostname = mypc.my.box | ||
- | 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) | ||
- | |||
- | |||
- | [mx.sdf.org]: | ||
- | |||
- | 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 / | ||
- | Apr 27 08:53:42 mypc postfix/ | ||
- | 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.txt · Last modified: 2021/03/12 19:43 by hc9