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.
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
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:
mail sent by SMARTHOST; received via SMTP or fetchmail127.0.0.1blankblanksmtp.server.com::portNO, don't hide local mail name in outgoing mail.NO, don't keep number of DNS-queries minimal (Dial-on-Demand).YES, split configuration into small files
It is also possible to configure Exim to relay to Gmail.
* 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.
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
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