]> sipb.mit.edu Git - ikiwiki.git/blob - doc/todo/passwordauth:_sendmail_interface.mdwn
Merge branch 'ready/document-success-reason'
[ikiwiki.git] / doc / todo / passwordauth:_sendmail_interface.mdwn
1 [[!tag wishlist plugins/passwordauth]]
2
3 For sending out password reminder emails, the [[plugins/passwordauth]] plugin currently uses
4 the *[Mail::Sendmail](http://search.cpan.org/perldoc?Mail::Sendmail)* module.
5 This module, however, has the limitation that it can only talk *SMPT*,
6 but can't use the standard Unix *sendmail* (command-line) interface.
7 I don't want to have an MTA with a SMTPd running on my web server system.
8 Would it be possible to switch to using one of the existing Perl modules that support
9 the *sendmail* interface?
10
11 From doing a quick search, these might be some candidates:
12
13   * <http://search.cpan.org/perldoc?Mail::Transport::Sendmail>
14   * <http://search.cpan.org/perldoc?Email::Send::Sendmail>
15   * <http://search.cpan.org/perldoc?Mail::SendVarious>
16   * <http://search.cpan.org/perldoc?EasyMail>
17
18 None of them are packaged for Debian so far, but that should be doable easily, as far as I know.
19
20 ikiwiki might perhaps even try to use all of them in turn until it finds a working one.
21
22 I'd offer to work on a patch for the [[plugins/passwordauth]] plugin and other places
23 in the ikiwiki source code, where emailing is done.
24
25 --[[tschwinge]]
26
27 > One that is in Debian is [[!cpan Email::Send]], which can do SMTP and
28 > sendmail and some other methods and falls back through methods until one
29 > succeeds. I haven't tried to use it but it looks like a feasable
30 > candidate.
31
32 > I don't much like the idea of supporting a lot of different email sending
33 > modules.  --[[Joey]]
34
35 OK, so I'll have a look at replacing all email handling with *Email::Send*.
36
37 [[!tag patch]]
38 *<http://nic-nac-project.de/~schwinge/ikiwiki/0001-Use-Email-Send-instead-of-Mail-Sendmail.patch>*
39
40 Remaining TODOs:
41
42   * Resolve TODOs as denoted inside the patch.
43   * Update for the last years of ikiwiki development, such as adapting the
44     [[plugins/notifyemail]] plugin.
45   * Is this
46     [[UTF-8-safe|bugs/password_reset_fails_with___34__Wide_character_in_subroutine_entry__34__]]?
47   * Is it worthwhile to use and depend on [[!cpan Return::Value]]
48     just for this bit of functionality?
49   * Debian news file.
50   * ikiwiki news file.
51
52 --[[tschwinge]]
53
54
55 > BTW, I think you recently sent a patch improving mail logging, but I've
56 > lost it. --[[Joey]]
57
58 Resent.  --[[tschwinge]]
59
60 > Debian now has Mail::Sender, Mail::SendEasy, and Email::Sender
61 > (which, according to its dpkg description, "replaces the old and sometimes
62 > problematic Email::Send library, which did a decent job at handling very
63 > simple email sending tasks, but was not suitable for serious use, for a
64 > variety of reasons"). Are any of those any better? It's unfortunate that
65 > there doesn't seem to be a clear "best practice"... --[[smcv]]