aboutsummaryrefslogtreecommitdiff
path: root/contrib/dma
Commit message (Collapse)AuthorAgeFilesLines
* dma: use OpenSSL 1.1 init APIEd Maste2023-05-111-2/+1
| | | | | | | | | | | | | | | > The SSL_library_init() and OpenSSL_add_ssl_algorithms() functions were > deprecated in OpenSSL 1.1.0 by OPENSSL_init_ssl(). and > The ERR_load_crypto_strings(), SSL_load_error_strings(), and > ERR_free_strings() functions were deprecated in OpenSSL 1.1.0 by > OPENSSL_init_crypto() and OPENSSL_init_ssl() and should not be used. Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D40065
* dma: restore addition of newline when missing from inputEd Maste2022-10-121-2/+9
| | | | | | | | | | | | | | If input mail does not have a newline on the last line dma must add one. This was broken by the addition of long-line splitting, with the switch from strlen(line) to linelen returned by getline(). PR: 266629 Reviewed by: bapt, Mikko Lehto Tested by: Mikko Lehto MFC after: 1 week Fixes: b0b2d05fd060 ("Split body of mails not respecting...") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D36763
* dma: use canonical getline() loopEd Maste2022-02-061-5/+3
| | | | | | | | | | getline() returns -1 on erorr or EOF, so use that condition instead of feof() and check that there was no error after the loop exits. Reviewed by: bapt, kevans (both earlier) MFC after: 3 weeks Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34159
* dma: exit if invoked with invalid (zero) argcEd Maste2022-01-281-0/+3
| | | | | | | | | | | This was prompted by the recent pkexec vulnerability (CVE-2021-4034). This change is being made on general principle for setuid/setgid binaries and is not in response to an actual issue. Reviewed by: kevans, markj (both earlier) MFC after: 1 week Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D34087
* dma: limit lines to 998 charactersEd Maste2022-01-281-2/+2
| | | | | | | | | | | | | Per RFC2822 the maximum transmitted line length is "998 characters... excluding the CRLF." In a file the maximum is 999 with the \n included. Previously mail containing a line with exactly 999 characters would bounce. PR: 208261 Reported by: Helge Oldach MFC after: 1 week Sponsored by: The FreeBSD Foundation
* dma: update to 2022-01-27 snapshotEd Maste2022-01-271-19/+32
|
* dma: import snapshot 2021-07-10Baptiste Daroussin2021-09-2216-129/+378
|
* Make dma(8) buildable.Jung-uk Kim2018-09-197-1/+13
| | | | Notes: svn path=/projects/openssl111/; revision=338770
* Convert `cap_enter() < 0 && errno != ENOSYS` to `caph_enter() < 0`.Mariusz Zaborski2018-06-191-1/+1
| | | | | | | No functional change intended. Notes: svn path=/head/; revision=335395
* Split body of mails not respecting RFC2822Baptiste Daroussin2017-12-061-28/+59
| | | | | | | | | | | | For mails which has a body not respecting RFC2822 (which often happen with crontabs) try to split by words finding the last space before 1000's character If no spaces are found then consider the mail to be malformed anyway PR: 208261 Notes: svn path=/head/; revision=326641
* dma: fix use-after-freeEd Maste2017-10-271-1/+1
| | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=325047
* dma.8: fix problems reported by igor and 'mandoc -Tlint'Eric van Gyzen2017-05-201-5/+6
| | | | | | | | | | | | | | dma.8:77:contraction:Queue the mail, but [don't] attempt to deliver it. dma.8:85:repeated:s [are are] ignored. dma.8:87:contraction:[Don't] run in the background. dma.8:201:contraction:Use the catch-all alias only if you [don't] want any local mail to be mandoc: dma.8:308:5: WARNING: macro neither callable nor escaped: Sm MFC after: 3 days Notes: svn path=/head/; revision=318586
* dma.8: use the correct name for 'SECURETRANSFER'Eric van Gyzen2017-05-201-4/+4
| | | | | | | | | The code uses 'SECURETRANS', but the config file uses 'SECURETRANSFER'. MFC after: 3 days Notes: svn path=/head/; revision=318585
* Import dma snapshot from git 2017-02-10Baptiste Daroussin2017-03-011-1/+2
| | | | | | | | | | | The only change is: use basename to select executable identity PR: 216910 Submitted by: Andrej Ebert <andrej@ebert.su> Notes: svn path=/head/; revision=314520
* Revert crap accidentally committedBaptiste Daroussin2017-01-281-51/+28
| | | | Notes: svn path=/head/; revision=312927
* Revert r312923 a better approach will be taken laterBaptiste Daroussin2017-01-281-28/+51
| | | | Notes: svn path=/head/; revision=312926
* dma-mbox-create: Restrict with CapsicumConrad Meyer2016-12-161-1/+38
| | | | | | | | | | | | | The restriction here is pretty late and pretty minimal. We need a lot of authority to open password databases, and don't do much after that point. Feedback from: lifanov at mail.lifanov.com (earlier version), emaste (earlier version) Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D7988 Notes: svn path=/head/; revision=310140
* Import dma 20160929Baptiste Daroussin2016-09-301-16/+10
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=306541
* Import Dragonfly Mail Agent snapshort from 20160806 aka v0.11+Baptiste Daroussin2016-08-207-9/+13
| | | | | | | | | | | | | | | | | | | | | | | Most important change being: dma - Fix security hole (#46) Affecting DragonFly 4.6 and earlier, Matt Dillon fixed this in base after finding out from BSDNow Episode 152. Comments following were from his commit which explains better than I. Just taking his change and putting it here as well. * dma makes an age-old mistake of not properly checking whether a file owned by a user is a symlink or not, a bug which the original mail.local also had. * Add O_NOFOLLOW to disallow symlinks. Thanks-to: BSDNow Episode 152, made me dive dma to check when they talked about the mail.local bug. MFC After: 2 days Notes: svn path=/head/; revision=304535
* Fix build with gcc 4.2Baptiste Daroussin2015-10-113-3/+3
| | | | Notes: svn path=/head/; revision=289144
* Update Dragonfly Mail Agent to v0.10Baptiste Daroussin2015-10-1038-1170/+113
| | | | Notes: svn path=/head/; revision=289123
* Fix build on i386Baptiste Daroussin2014-02-211-1/+1
| | | | Notes: svn path=/head/; revision=262298
* Fix build with gccBaptiste Daroussin2014-02-213-5/+5
| | | | Notes: svn path=/head/; revision=262295
* Import Dragonfly Mail Agent into base systemBaptiste Daroussin2014-02-2148-0/+6180
It is a small and lightweight Mail Transport Agent. It accepts mails from locally installed Mail User Agents (MUA) and delivers the mails either locally or to a remote destination. Remote delivery includes several features like TLS/SSL support, SMTP authentication and NULLCLIENT. Make dma conditional to new WITHOUT_DMA option and make it respect WITHOUT_MAIL Reviewed by: peter Discussed with: emaste, bz, peter Notes: svn path=/head/; revision=262282