[ SDF Public Access UNIX System .. Est. 1987 ]

join welcome faq status members projects store tour gopher abuse dialup dsl minecraft social
tilde nihongo europa webmail gallery usermap teach irc tutorials software telnet ssh

POP3, IMAP and SMTP AUTH for Popular Mail Clients

Introduction

SDF uses SMTP Authentication to allow remote network clients such as desktop, tablet and phone mail applications to use its SMTP server for the purpose of sending (relaying) e-mail messages. SDF users with the VPM, VHOST and MetaARPA memberships have access to the SMTP server.

Quick Starter Notes

Receiving Email

Sending Email

Please note: the SMTP AUTH secret is set on the command line via mkvpm. The command history of the shell may keep the secret in the history file.

The Mail Client Configurations

  • K-9 Mail for Android
  • Outlook Express under Windows
  • Mail.App under MacOS X
  • Mozilla Thunderbird under Windows
  • Heirloom Mailx under Linux/BSD
  • Postfix MTA on NetBSD 6.x

  • K-9 Mail for Android

    To send mail, set up SMTP with
    SMTP servermx.sdf.org
    SecuritySTARTTLS
    Port587
    UsernameYour domain name*
    AuthenticationEncrypted password
    Passwordstring set via mkvpm set YOUR_PASSWORD_HERE
    * If you are a Meta-ARPA member and not a VHOST member, this is whatever web domain you've chosen (frequently username.sdf.org@sdf.org). If you're a VHOST member, it's your VHOST domain.

    Outlook Express under Windows

  • Open Outlook Express
  • Tool -> Accounts
  • Click Add -> Mail to start the Account Wizard
  • Display name: Your Name
  • E-Mail address: Your email address (ex. bill@microsoft.com)
  • Select POP3
  • Incoming Mail server: wm.sdf.org
  • Outgoing mail (SMTP) server: mx.sdf.org
  • Account name: Your email address (full email address for VPM and VHOST members, just username for MetaARPA)
  • The wizard will now save, double click on the new configuration under the Mail tab to continue
  • Select the Advanced tab
  • Outgoing mail (SMTP) change from 25 to 587 (not completely necessary, but recommended)
  • Select the Servers tab
  • Check the box 'My server requires authentication, then click Settings
  • Select Log on using:
  • Account name: YOUR DOMAIN NAME (ex. alan8r.sdf.org, traumhost.com)
  • Password: What you set with the mkvpm set secret command at the shell
  • Click 'Apply'

    Mail.App under Macos X

  • Open Mail.app
  • In the Mail menu, select Preferences
  • Click the Accounts tab
  • Select the account on the left you wish to edit
  • On the Account Information tab, find "Outgoing Mail Server (SMTP):"
  • Click the arrows for the dropdown menu, and select Edit Server List...
  • Make sure the server you wish to use is selected in the list, and click on the Advanced tab
  • In the Authentication dropdown, select "MD5 Challenge-Response"
  • Type in your SDF username in User Name field
  • Type in your password in Password field
  • Click ok, and close the Preferences window.

  • Mozilla Thunderbird under Windows

  • Tools -> Account Settings
  • Account Actions -> Add Mail Account
  • Your name: Your Name (ex. Bill Gates)
  • Email address: your email address (ex. bill@microsoft.com)
  • Password: your POP3 password (VPM or VHOST use mkvpm add user@domain, MetaARPA use account password
  • Click Continue and then click Manual Config
  • Incoming pop3 or imap
  • Incoming Server Hostname: wm.sdf.org
  • Outgoing Server Hostname: mx.sdf.org
  • Port 587
  • SSL Enabled
  • Authentication NTLM
  • Username: YOUR DOMAIN NAME (ex. alan8r.sdf.org)
  • Click Re-Test and Create Account
  • You will be prompted for your passwords when you first send/receive email.
  • Click Add (right side)
  • Description: SDF
  • Server Name: mx.sdf.org
  • Port: 587
  • Connection security: none
  • Authentication Method: NTLM
  • User Name: YOUR DOMAIN NAME (ex. alan8r.sdf.org)

    Heirloom Mailx under Linux/BSD

    Add the following to ~homeuser/.nailrc to set the default SMTP relay:

    
    # Remote SDF SMTP relaying (use SDF 'mkvpm' tool to set auth user:pw):
    set ssl-verify="ignore"
    set smtp-use-starttls
    set smtp=mx.sdf.org:587
    set smtp-auth=cram-md5
    set smtp-auth-user="sdf_user.sdf.org@sdf.org"
    set smtp-auth-password="my_password"
    

    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:

    
    set ssl-ca-file="/home/home_user/.openssl/sdf_self-signed_ca.pem"
    set ssl-verify="warn"  # will issue "self-signed CA" warning
    ...
    

    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:

    /etc/postfix/main.cf

    
      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
    
    /etc/postfix/generic
    
      # applies to msgs to be delivered off-site
      me@mypc.my.box  sdf_login@sdf.org
    
    /etc/postfix/sasl_passwd
    (for security set ownership to root:wheel, permissions to 600)
    
      [mx.sdf.org]:submission  sdf_login.sdf.org:smtp_passwd
    
  • hash /etc/postfix/{generic,sasl_passwd}, then check and reload configs:

    
    % 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
    
  • test to verify everything is working correctly:
    
    % mailx sdf_login@sdf.org
      Subject: test
      123
      .
      EOT
    
    % sudo tail -n10 /var/log/maillog | grep smtp        
      Apr 27 08:53:42 mypc postfix/smtp[13387]: A61631F1FDC: to=<sdf_login@sdf.org>, \  
      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)
    
    

    You should now be set up to use SDF's SMTP server. Enjoy!

    $Id: smtpauth.html,v 1.15 2017/01/08 19:51:42 smj Exp $

    ©1987-2065 SDF Public Access UNIX System, Inc. 501(c)(7)
    (this page was generated using ksh, sed and awk)