Versions 1.83 (Hayes++) to 8.08 (Kilen Woods)

Deki Wiki utilizes PHPMailer to handle its emailling. The application is installed in the phpmailer folder, but can be configured by adding these values in your LocalSettings.php:

//anonymous SMTP server
$wgSMTPServers = 'mail.server.com';

//authenticate SMTP server
$wgSMTPServers = 'mail.server.com';
$wgSMTPUser = 'login';
$wgSMTPPwd = 'password';

//$wgSMTPServers var may contain several server names or ips like this
$wgSMTPServers = "smtp1.example.com;smtp2.example.com";

Note: these settings are for the front-end, not the API, and thus cannot be set through the Control Panel.

PHPMailer is instantiated in includes/UserMailer.php if you'd like to add in more PHPMailer-specific configuration values.

Version 9.02 (Lyons)

Users of Deki 9.02 or greater can also specify a port and SSL encryption:

$wgSMTPServers = 'smtp.server.com';
$wgSMTPUser = 'your_username@mindtouch.com';
$wgSMTPPwd = 'your_password';
$wgSMTPPort = 465;
$wgSMTPSecure = 'ssl';

You can also set the following config variables in the control panel:

mail/smtp-servers
mail/smtp-port
mail/smtp-secure
mail/smtp-username
mail/smtp-password

Using the exim mailer

On the VM, you have the Exim mailer available to you.  You can have it listen for mail from Deki and deliver it to an upstream server for you.  Configure it with the command dpkg-reconfigure exim4-config - here are the answers you probably want:

  • Choose mail sent by SMARTHOST; received via SMTP or fetchmail
  • Type System Mail Name: e.g. company.com
  • Type IP Adresses to listen on for incoming SMTP connections: 127.0.0.1
  • Leave Other destinations for which mail is accepted: blank
  • Leave Machines to relay mail for: blank
  • Type Machine handling outgoing mail for this host (smarthost): smtp.server.com::port
  • Choose NO, don't hide local mail name in outgoing mail.
  • Chose NO, don't keep number of DNS-queries minimal (Dial-on-Demand).
  • Choose YES, split configuration into small files

 

It is also possible to configure Exim to relay to Gmail.

Tag page
Viewing 5 of 5 comments: view all
Which is the preferred method, to edit the "LocalSettings.php" file as suggested above or to add the following name / value pairs via the "Control Panel | Configuration" thus:

* admin/email
* mail/smtp-servers
* mail/smtp-username
* mail/smtp-password

according to :
http://wiki.opengarden.org/Deki_Wiki/Configuration

For the record, I have tried both, separately and concurrently, and still cannot send emails when I "add" a new user.

Maybe I am not supplying the correct values? I am using:

* admin/email --> smtp.maildomain.net
* mail/smtp-servers --> smtp.maildomain.net
* mail/smtp-username --> deki@maildomain.net
* mail/smtp-password --> somepassword

No quotes on any of the values. I have validated that I can connect and send email using this account from an email client. I have validated that the domain "smtp.maildomain.net" (an example domain, btw) can resolve using DIG. I am running the Hayes VM updated as of 12-12-2007. I have run the EXIM configuration per:

http://wiki.opengarden.org/Deki_Wiki/FAQ/Configuration/How_do_I...Configure_email_alerts%3f

...and have accepted apparently all of the default values as that is what the screenshots indicate.

Any guidance would be appreciated.
Posted 18:07, 16 Dec 2007
Yeah I completely lost too. I went to LocalSettings.php in my Deki-Wiki VM, and I see no lines mail configuration
Posted 17:08, 14 Mar 2008
Hello all,

I just tried both solutions and you know what? Both are correct (if you enter valid parameters)
First, I have directly modified the file /var/www/deki-hayes/LocalSettings.php, with addition of the following 3 lines :
$wgSMTPServers = 'smtp.free.fr'; --> # This is my french SMTP provider
$wgSMTPUser = 'firstname.bizzz'; --> # This my email user account
$wgSMTPPwd = 'secret'; --> # This is my email password
Before doing this no email was sent by my wiki. After this, emails are correctly sent

I have also tried the second possibility, with creation of corresponding keys into Control Panel-Configuration menu (only for wiki >= 1.8.3)
I first deleted lines added into LocalSettings.php in my first test ;-)
Then I have created the 3 following keys with their associated values :
mail/smtp-servers --> smtp.free.fr
mail/smtp-username --> firstname.bizz
mail/smtp-password --> secret

I rebooted my wiki to be sure no old configuration still exist. And one more time my wiki was able to send emails
So I suggest you verify values used for those parameters
(For russ: admin/email is not name of a smtp server but the email address of an admin user, victor.hugo@france.net for example :-)) edited 09:09, 1 Apr 2008
Posted 19:50, 29 Mar 2008
Modifiying LocalSettings.php worked for me after I added my SMTP server to /etc/hosts.
Posted 16:33, 16 Oct 2008
Hello. I've set the following Deki (8.08) configuration key parameters correctly but my outgoing email messages always fail:

mail/smtp-password password
mail/smtp-servers smtp.gmail.com
mail/smtp-username user@domain.com

Are there any other configuration options like
- Port (I need to use 587 rather than the usual 25)?
- secure connection type?

Maybe this feature is for a mail server running locally rather than trying to connect to one over the Web. edited 01:39, 3 Dec 2008
Posted 01:39, 3 Dec 2008
Viewing 5 of 5 comments: view all
You must login to post a comment.