| Both sides previous revisionPrevious revision | |
| install:nix:mail [2026/03/05 22:40] – The relevant links these are mail and mailx, not sbin/sendmail digital man | install:nix:mail [2026/03/05 23:09] (current) – My system actually sends me mail via usr/sbin/sendmail, so include that link again (with update-alternatives example) digital man |
|---|
| Create the following symbolic links to the Synchronet [[module:sendmail]] script: | Create the following symbolic links to the Synchronet [[module:sendmail]] script: |
| |
| | $ ls -l /usr/sbin/*mail |
| | lrwxrwxrwx 1 root root 26 Mar 5 23:03 /usr/sbin/sendmail -> /sbbs/exec/sendmail.js |
| $ ls -l /usr/bin/mail* | $ ls -l /usr/bin/mail* |
| lrwxrwxrwx 1 root root 37 Feb 13 15:44 /usr/bin/mail -> /sbbs/exec/sendmail.js | lrwxrwxrwx 1 root root 37 Feb 13 15:44 /usr/bin/mail -> /sbbs/exec/sendmail.js |
| lrwxrwxrwx 1 root root 37 Feb 13 15:44 /usr/bin/mailx -> /sbbs/exec/sendmail.js | lrwxrwxrwx 1 root root 37 Feb 13 15:44 /usr/bin/mailx -> /sbbs/exec/sendmail.js |
| |
| These symlinks may be installed automatically using the Linux ''update-alternatives'' utility: | ==== Linux ==== |
| $ sudo update-alternatives --install /usr/bin/mailx mailx /sbbs/exec/sendmail.js 100 --slave /usr/bin/mail mail /sbbs/exec/sendmail.js | |
| | These symlinks may be installed automatically (and double-redirected via ''/etc/alternatives/*'' symlinks) using the Linux ''update-alternatives'' utility: |
| | $ sudo update-alternatives --install /usr/bin/mailx mailx /sbbs/exec/sendmail.js 100 --slave /usr/bin/mail mail /sbbs/exec/sendmail.js --slave /usr/sbin/sendmail sendmail /sbbs/exec/sendmail.js |
| |
| The Synchronet [[module:sendmail]] script contains a "shebang" that will invoke ''[[dir:exec]]/[[util:jsexec]]'' to execute ''sendmail.js''. In turn, ''sendmail.js'' will determine its personality (e.g. which command-line arguments it will recognize: sendmail or mail/mailx) based on which symlink was used to invoke it. | The Synchronet [[module:sendmail]] script contains a "shebang" that will invoke ''[[dir:exec]]/[[util:jsexec]]'' to execute ''sendmail.js''. In turn, ''sendmail.js'' will determine its personality (e.g. which command-line arguments it will recognize: sendmail or mail/mailx) based on which symlink was used to invoke it. |