BSD Now

197: Relaying the good news


Listen Later

We’re at BSDCan, but we have an interview with Michael W. Lucas which you don’t want to miss.

This episode was brought to you by

Headlines

We are off to BSDCan but we have an interview and news roundup for you.

Interview - Michael W. Lucas - [email protected] / @mwlauthor
  • Books, conferences & how these two combine
  • ***
    News Roundup
    In The Name Of Sane Email: Setting Up OpenBSD's spamd(8) With Secondary MXes In Play
    • “The Grumpy BSD Guy”, Peter Hansteen is at it again, they have produced an updated version of a full recipe for OpenBSD’s spamd for your primary AND secondary mail servers
    • Recipes in our field are all too often offered with little or no commentary to help the user understand the underlying principles of how a specific configuration works. To counter the trend and offer some free advice on a common configuration, here is my recipe for a sane mail setup.

      Mailing lists can be fun. Most of the time the discussions on lists like openbsd-misc are useful, entertaining or both. But when your battle with spam fighting technology ends up blocking your source of information and entertainment (like in the case of the recent thread titled "spamd greylisting: false positives" - starting with this message), frustration levels can run high, and in the process it emerged that some readers out there place way too much trust in a certain site offering barely commented recipes (named after a rare chemical compound Cl-Hg-Hg-Cl).

      • 4 easy steps:
        • Make sure your MXes (both primary and secondary) are able to receive mail for your domains
        • Set set up content filtering for all MXes, since some spambots actually speak SMTP
        • Set up spamd in front of all MXes
        • Set up synchronization between your spamds
        • These are the basic steps. If you want to go even further, you can supplement your greylisting and publicly available blacklists with your own greytrapping, but greytrapping is by no means required.

          Once you have made sure that your mail exchangers will accept mail for your domains (checking that secondaries do receive and spool mail when you stop the SMTP service on the primary), it's time to start setting up the content filtering.

          • The post provides links if you need help getting the basic mail server functionality going
          • At this point you will more likely than not discover that any differences in filtering setups between the hosts that accept and deliver mail will let spam through via the weakest link. Tune accordingly, or at least until you are satisfied that you have a fairly functional configuration.

            As you will have read by now in the various sources I cited earlier, you need to set up rules to redirect traffic to your spamd as appropriate. Now let's take a peek at what I have running at my primary site's gateway.

            • The articles provides a few different sets of rules
            • The setup includes running all outgoing mail through spamd to auto-populate the whitelists, allowing replies to your emails to get through without greylisting
            • At this point, you have seen how to set up two spamds, each running in front of a mail exchanger. You can choose to run with the default spamd.conf, or you can edit in your own customizations.

              • There is also a link to Peter’s spamd.conf if you want to use “what works for me”
              • The fourth and final required step for a spamd setup with backup mail exchangers it to set up synchronization between the spamds. The synchronization keeps your greylists in sync and transfers information on any greytrapped entries to the partner spamds. As the spamd man page explains, the synchronization options -y and -Y are command line options to spamd.

                • The articles steps through the process of configuring spamd to listen for synchronization, and to send synchronization messages to its peer
                • With these settings in place, you have more or less completed step four of our recipe.

                  • The article also shows you how to configure spamd to log to a separate log file, to make the messages easier to find and consolidate between your mail servers
                  • After noting the system load on your content filtering machines, restart your spamds. Then watch the system load values on the content filterers and take a note of them from time to time, say every 30 minutes or so

                    Step 4) is the last required step for building a multi-MX configuration. You may want to just leave the system running for a while and watch any messages that turn up in the spamd logs or the mail exchanger's logs
                    The final embellishment is to set up local greytrapping. The principle is simple: If you have one or more addresses in your domain that you know will never be valid, you add them to your list of trapping addresses
                    any host that tries to deliver mail to [email protected] will be added to the local blacklist spamd-greytrap to be stuttered at for as long as it takes.
                    Greytrapping can be fun, you can search for posts here tagged with the obvious keywords. To get you started, I offer up my published list of trap addresses, built mainly from logs of unsuccessful delivery attempts here, at The BSDly.net traplist page, while the raw list of trap email addresses is available here. If you want to use that list in a similar manner for your site, please do, only remember to replace the domain names with one or more that you will be receiving mail for.

                    • Let us know how this affects your inbox
                    • ***
                      Beastie Bits
                      • Status of FreeBSD’s capsicum on Linux
                      • How to build a gateway, from 1979
                      • Linux escapee Hamza Sheikh on “Why FreeBSD?”
                      • UNIX is still as relevant as ever
                      • Upcoming Summer 2017 FreeBSD Foundation Events
                      • ***
                        ...more
                        View all episodesView all episodes
                        Download on the App Store

                        BSD NowBy JT Pennington

                        • 4.9
                        • 4.9
                        • 4.9
                        • 4.9
                        • 4.9

                        4.9

                        89 ratings


                        More shows like BSD Now

                        View all
                        Security Now (Audio) by TWiT

                        Security Now (Audio)

                        1,974 Listeners

                        Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

                        Software Engineering Radio - the podcast for professional software developers

                        272 Listeners

                        The Changelog: Software Development, Open Source by Changelog Media

                        The Changelog: Software Development, Open Source

                        284 Listeners

                        LINUX Unplugged by Jupiter Broadcasting

                        LINUX Unplugged

                        265 Listeners

                        Python Bytes by Michael Kennedy and Brian Okken

                        Python Bytes

                        215 Listeners

                        Late Night Linux by The Late Night Linux Family

                        Late Night Linux

                        154 Listeners

                        Home Assistant Podcast by HK Media

                        Home Assistant Podcast

                        65 Listeners

                        CoRecursive: Coding Stories by Adam Gordon Bell - Software Developer

                        CoRecursive: Coding Stories

                        189 Listeners

                        Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

                        Kubernetes Podcast from Google

                        181 Listeners

                        Late Night Linux Family All Episodes by The Late Night Linux Family

                        Late Night Linux Family All Episodes

                        44 Listeners

                        Linux Dev Time by The Late Night Linux Family

                        Linux Dev Time

                        21 Listeners

                        Self-Hosted by Jupiter Broadcasting

                        Self-Hosted

                        135 Listeners

                        2.5 Admins by The Late Night Linux Family

                        2.5 Admins

                        92 Listeners

                        Linux After Dark by The Late Night Linux Family

                        Linux After Dark

                        29 Listeners

                        Oxide and Friends by Oxide Computer Company

                        Oxide and Friends

                        47 Listeners