014.txt - gopherhole - My gopherhole source code.
 (HTM) git clone git://jay.scot/gopherhole
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       014.txt (1598B)
       ---
            1 [jay.scot]
            2 [014]
            3 
            4 
            5 --[ Re-evaluating my local mail setup with OpenSMTPD
            6 
            7 
            8 This one is not limited to OpenBSD, but something I came across and
            9 implemented after reading about daily(8) and security(8). These scripts
           10 perform a variety of system tasks daily, weekly, and monthly. The report
           11 produced by these tasks is sent to the local user, which prompted me to
           12 re-evaluate my current email situation.
           13 
           14 
           15 Previously, any mail I generated was sent via an external SMTP relay
           16 configured directly in mutt. This also included my git configuration
           17 file, which had an external SMTP relay set up for sending patches using
           18 git-send-email. When sending mail via shell scripts, I would do this by
           19 invoking mutt in the following manner.
           20 
           21         echo "the body" | mutt -s 'the title' -- me@domain.com
           22 
           23 
           24 Outside of the initial local user mail delivery issue, it worked, but
           25 came with overhead. If there were connectivity issues with the SMTP
           26 relay, things would hang or break. Mail would not be queued unless it
           27 was handled by the application or script. I would get a 1-2 second delay
           28 when mutt connected to the relay, which was annoying for some scripts.
           29 All mail that was meant for me, such as scripting results or
           30 notifications, would go through a public round trip.
           31 
           32     Then:
           33       script -> external smtp relay -> external imap fetch -> mutt (maildir)
           34 
           35     Now:
           36       script -> local openSMTPD -> mutt (maildir)
           37 
           38 
           39 And finally, after setting up OpenSMTPD locally I now get all system
           40 mail directly to my Maildir and a mail queue system. I should have fixed
           41 it ages ago, it's a nice quality of service change.
           42 
           43 
           44 .EOF