sending mail under testlink gui without postfix installed

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

sending mail under testlink gui without postfix installed

Postby pg75 » Thu Oct 04, 2012 2:10 pm

Hello,

In my company, I have installed and configured Testlink 1.9.3, but for safety reasons, we can't install the postfix service on localhost where we have installed Testlink.
We must directly to send the mail to postfix relay server.
They asked me to stop postfix service, and since I'm trying without success to send mail under testlink gui.

in /usr/local/apache2/htdocs/testlink/config.inc.php , i changed some line like this:


$g_tl_admin_email = 'testlink-admin@testlink.bas.proj.aso.xxx'; # for problem/error notification
$g_from_email = 'no_replay@testlink.test_team'; # email sender
$g_return_path_email = 'testlink-admin@testlink.bas.proj.aso.xxx';
/**
* Email notification priority (low by default)
* Urgent = 1, Not Urgent = 5, Disable = 0
**/
$g_mail_priority = 5;
/**
* Taken from mantis for phpmailer config
* select the method to mail by:
* PHPMAILER_METHOD_MAIL - mail()
* PHPMAILER_METHOD_SENDMAIL - sendmail
* PHPMAILER_METHOD_SMTP - SMTP
*/

#/*define ("SMTP_SEND",2);
#$g_phpMailer_method = SMTP_SEND;*/

$g_phpMailer_method = PHPMAILER_METHOD_SMTP;


/** Configure only if SMTP server requires authentication */
$g_smtp_username = 'testlink'; # user
$g_smtp_password = 'xxxxxxxxxxx'; # password

Also, I tryed to search on testlink forum and google, and somme people changed also
some informations under /usr/local/apache2/htdocs/testlink/third_party/phpmailer/class.phpmailer.php

but I I activate des login and passwd under class.phpmailer.php, when I connect to testlink gui and go some case test where I can send mail, I have as result blank page.

Someone could help me and tell me how to configure testlink for sending mail without postfix installed on localhost but directly to transfer this mail to smtp server.
Thanks lot for you help
pg75
TestLink user
 
Posts: 13
Joined: Sat Sep 15, 2012 10:07 am

Re: sending mail under testlink gui without postfix installe

Postby fman » Thu Oct 04, 2012 3:15 pm

>> Someone could help me and tell me how to configure testlink for sending mail without postfix installed on localhost but directly to transfer >>this mail to smtp server.
what you are saying is not right, testlink has no requirement regarding having postfix installed locally.
phpmailer class is supposed to be a MAIL CLIENT that will connect to any SMTP server
I've configured for my test gmail as SMTP server and also mailjet without any issue.

Your sysadmin people has to help you to check how to connect to your company mail SMTP server

in your config example I'm not able to find the line where smtp host is configured.
Give a look to custom config example present on 1.9.4 distribution, to see if some config example can help you
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: sending mail under testlink gui without postfix installe

Postby fman » Thu Oct 04, 2012 3:21 pm

example with gmail
(all other parameters are with default values)
$g_smtp_host = 'smtp.gmail.com';
$g_smtp_username = 'xavier.charlesfrancis@gmail.com'; # user
$g_smtp_password = '******'; # password
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 587;

with mailjet
$g_smtp_host = 'in.mailjet.com';
$g_smtp_username = '361cad*******'; # user
$g_smtp_password = '**********'; # password
$g_smtp_port = 25;
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: sending mail under testlink gui without postfix installe

Postby pg75 » Thu Oct 04, 2012 4:54 pm

Hello,
Thanks for you help, but I know and I have configured the same parameters in config.inc.php file.(stopped postfix) and I sent mail from gui testlink without result.
Also, must I add this informations in class.phpmailer.php ? there are also some parameters in class.phpmailer.php where we could also indicate same informations, must we changing also this file.
According to your opinion, I can simply configure the file config.inc.php and indicate the correct mail server to make it work?
Thanks for your return.

under you can find the 2 config files.

/**config.inc.php***/
$g_smtp_host='relais-mx1.xxx';
$g_tl_admin_email = 'testlink-admin@testlink.bas.proj.aso.xxx'; # for problem/error notification
$g_from_email = 'no_replay@testlink.test_team'; # email sender
$g_return_path_email = 'testlink-admin@testlink.bas.proj.aso.xxx';
$g_mail_priority = 5;
$g_phpMailer_method = PHPMAILER_METHOD_SMTP;
$g_smtp_username = 'testlink'; # user
$g_smtp_password = 'T3stl1nkxxx'; # password
$g_smtp_connection_mode = 'tls';
$g_smtp_port = 25;

/***class.phpmailer.php***/

/* public $Host = 'localhost';*/
public $Host = 'relais-mx1.xxx';
public $Port = 25;
pg75
TestLink user
 
Posts: 13
Joined: Sat Sep 15, 2012 10:07 am

Re: sending mail under testlink gui without postfix installe

Postby fman » Thu Oct 04, 2012 5:24 pm

you do not have to touch the phpmailer class, is not part of config.
all config has to be done on TL files

again ask for help to your sysadmin people
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: sending mail under testlink gui without postfix installe

Postby pg75 » Mon Oct 15, 2012 1:02 pm

Thanks for your advises
pg75
TestLink user
 
Posts: 13
Joined: Sat Sep 15, 2012 10:07 am

Re: sending mail under testlink gui without postfix installe

Postby fman » Wed Oct 17, 2012 5:56 pm

@pg75
please let us know if you were able to solve the issue, and if answer is Yes!, provide us the steps
fman
Member of TestLink Community
 
Posts: 3063
Joined: Tue Nov 15, 2005 7:19 am

Re: sending mail under testlink gui without postfix installe

Postby pg75 » Mon Oct 22, 2012 2:26 pm

I don't find solution for this issue, I restarted the postfix service and configured it also. That work with my postfix server.
But when I only add information like I indicated them on top and try to send mail, I have no mail.
unforunately I keep for this moment the postfix server.
Thanks
pg75
TestLink user
 
Posts: 13
Joined: Sat Sep 15, 2012 10:07 am


Return to Installation and configuration



Who is online

Users browsing this forum: No registered users and 3 guests

cron