User Tools

Site Tools


heirloom_mailx_under_linux_bsd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
heirloom_mailx_under_linux_bsd [2020/06/26 07:44] – reformat peteyboyheirloom_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/.nailrc** to set the default SMTP relay:
  
-Add the following to** ~homeuser/.nailrc** to set the default SMTP relay:+<file config ~homeuser/.nailrc>
  
-<code> 
 # Remote SDF SMTP relaying (use SDF 'mkvpm' tool to set auth user:pw): # Remote SDF SMTP relaying (use SDF 'mkvpm' tool to set auth user:pw):
 set ssl-verify="ignore" set ssl-verify="ignore"
Line 12: Line 12:
 set smtp-auth-user="sdf_user.sdf.org@sdf.org" set smtp-auth-user="sdf_user.sdf.org@sdf.org"
 set smtp-auth-password="my_password"'' set smtp-auth-password="my_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 ~/.openssl/) as pem file, then edit **~homeuser/.nailrc** like so: somewhere (ie. under ~/.openssl/) as pem file, then edit **~homeuser/.nailrc** like so:
  
 +<file config ~homeuser/.nailrc>
  
-  set ssl-ca-file="/home/home_user/.openssl/sdf_self-signed_ca.pem" +set ssl-ca-file="/home/home_user/.openssl/sdf_self-signed_ca.pem" 
-  set ssl-verify="warn"  # will issue "self-signed CA" warning +set ssl-verify="warn"  # will issue "self-signed CA" warning 
-  ...+... 
 + 
 +</file>
  
 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 : 
- 
-<code> 
-% sudo postconf -A 
-saslc 
-<code> 
- 
-create (as superuser) the following postfix config files: 
- 
-**/etc/postfix/main.cf** 
- 
-<code> 
- myhostname = mypc.my.box 
-  mydomain = my.box 
-  mynetworks_style = host 
-  alias_maps = hash:/etc/mail/aliases 
-  # SMTP client settings:  
-  relayhost = [mx.sdf.org]:submission 
-  smtp_generic_maps = hash:/etc/postfix/generic 
-  smtp_sasl_auth_enable = yes 
-  smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd 
-  smtp_sasl_security_options = noplaintext, noanonymous 
-  smtp_sasl_tls_security_options = noanonymous 
-  ## explicitly allow/prohibit certain SSL protocols: 
-  #smtp_tls_mandatory_protocols = !SSLv2, !SSLv3, TLSv1 
-  ## use of "may" option allows fallback to cleartext 
-  #smtp_tls_security_level = may 
-  smtp_tls_security_level = encrypt 
-  smtp_sasl_type = saslc 
-</code> 
- 
-**/etc/postfix/generic** 
- 
-<code> 
-  # applies to msgs to be delivered off-site 
-  me@mypc.my.box  sdf_login@sdf.org 
-</code> 
- 
-**/etc/postfix/sasl_passwd** 
- 
-(for security set ownership to root:wheel, permissions to 600) 
- 
- 
-<code>  [mx.sdf.org]:submission  sdf_login.sdf.org:smtp_passwdrd</code> 
- 
-hash /etc/postfix/{generic,sasl_passwd}, then check and reload configs: 
- 
- 
-<code> 
-% cd /etc/postfix/ 
-% sudo postmap generic sasl_passwd  # creates generic.db & sasl_passwd.db 
-% sudo postfix check                # no output unless errors 
-% sudo /etc/rc.d/postfix reload 
-</code> 
- 
-test to verify everything is working correctly: 
- 
- 
-<code> 
-% mailx sdf_login@sdf.org 
-  Subject: test 
-  123 
-  . 
-  EOT 
- 
  
-% sudo tail -n10 /var/log/maillog | grep smtp         +----
-<nowiki>  Apr 27 08:53:42 mypc postfix/smtp[13387]: A61631F1FDC: to=<sdf_login@sdf.org>, \ </nowiki> +
-  relay=mx.sdf.org[192.94.73.24]:587, delay=3.9, delays=0.02/0/3.7/0.11, dsn=2.0.0, status=sent \ +
-  (250 2.0.0 s3RFrfvZ010436 Message accepted for delivery) +
-</code>+
  
-You should now be set up to use SDF's SMTP serverEnjoy!+[[http://sdf.org/?tutorials/smtpauth#heirloommailx|Heirloom Mailx under Linux/BSD]] - traditional link (using [[wp>Revision_Control_System|RCS]])
  
heirloom_mailx_under_linux_bsd.1593157494.txt.gz · Last modified: 2020/06/26 07:44 by peteyboy