postfix_mta_on_netbsd_6.x
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
postfix_mta_on_netbsd_6.x [2021/03/08 06:39] – hc9 | postfix_mta_on_netbsd_6.x [2021/03/12 19:40] (current) – hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== Postfix MTA using libsaslc(3) on NetBSD 6.x: ==== | ||
+ | |||
+ | first, verify that // | ||
+ | |||
+ | < | ||
+ | % sudo postconf -A | ||
+ | saslc | ||
+ | </ | ||
+ | |||
+ | * create (as superuser) the following postfix config files: | ||
+ | |||
+ | |/// | ||
+ | |||
+ | <file config / | ||
+ | |||
+ | 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 | ||
+ | |||
+ | </ | ||
+ | |||
+ | |/// | ||
+ | |||
+ | |||
+ | <file config / | ||
+ | |||
+ | # applies to msgs to be delivered off-site | ||
+ | me@mypc.my.box | ||
+ | |||
+ | </ | ||
+ | |||
+ | |/// | ||
+ | |(for security set ownership to '' | ||
+ | |||
+ | <file config / | ||
+ | |||
+ | [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:// | ||