@Paul Floyd@

Email: <pjfloyd AT SPAMFREE wanadoo DOT fr>

Main interests

Valgrind ; The main Valgrind wieb site

FreeBSDValgrind ; Valgrind github repo used in upstreaming the FreeBSD port

FreeBSDArm64Valgrind ; Repo used during the development of Valgrind for FreeBSD arm64

If anyone would like to sponsor my work on Valgrind then you can do it via GitHub sponsors.

sendmail

One thing that I do infrequently on FreeBSD is set up outgoing sendmail so that I can run the Valgrind regression tests and have them send the results to the valgrind-testresults mailing list.

Here are the steps the follow. All commands need to be run as root.

  1. Make sure that your machine is configured with a fully qualified domain name (FQDN). I don't think that is the default.
    • Edit /etc/hosts like this
          ::1                     localhost localhost.orange.fr green
          127.0.0.1               localhost localhost.orange.fr green
      Change the last two fields to match your ISP domain and hostname.
  2. Install sendmail
    • pkg ins sendmail
  3. cd /etc/mail
  4. sendmail configuration needs 2 files, sendmail.cf and submit.cf.
    • These are derived from template files freebsd.mc and freebsd.submit.mc respectively
          cp freebsd.submit.mc `hostname`.submit.mc
          cp freebsd.mc `hostname`.mc
  5. Edit hostname.mc

    • Add the following line at the end of the FEATURE section
          FEATURE(`authinfo',`hash /etc/mail/authinfo.db')dnl
      Add to the end of the file
          dnl SMART HOST CONFIG
          define(`SMART_HOST', `smtp.orange.fr')dnl
          define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
          define(`confAUTH_MECHANISMS', `GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
          TRUST_AUTH_MECH(`GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
      (change the SMART_HOST for your ISP as needed)
  6. Edit and create an authinfo file containing
    •     AuthInfo:smtp.orange.fr "U:root" "I:user@address" "P:password" "M:LOGIN"
          AuthInfo:smtp.orange.fr:587 "U:root" "I:user@address" "P:password" "M:LOGIN"
      Change the e-mail address and password as necessary
  7. make all
  8. make install
  9. Modify rc.conf so that sendmail runs on startup
    • Add the following lines
          sendmail_enable="NO"
          sendmail_submit_enable="YES"
          sendmail_msp_queue_enable="YES"
      I've only enabled submit and queue as I only want outgoing to work.
  10. Test the configuration
    • service sendmail onestart
          echo "this is a test green" | mail -v -s test user@address -f user@address

Short Bio

Studied Electronics, but now really a software developer. I work in EDA (Electronic Design Automation, simulation of analogue circuits to be precise) so I haven't completely betrayed my roots.

Started on OS/2 and Windows, but fairly quickly moved to UNIX systems. Worked a lot on Solaris, then on Linux.

At home, I've used OS/2, Solaris, macOS, FreeBSD, Windows and Linux. Currently I mainly use my macbook and FreeBSD.

I first started using FreeBSD way back with FreeBSD 2.10 in late 1995. For many years I would fight with the installer, run a few things on twm and then wait a couple of years and repeat. Since about FreeBSD 10 I've been using FreeBSD regularly.


CategoryHomepage

PaulFloyd (last edited 2025-04-14T06:06:06+0000 by PaulFloyd)