Mail configuration using 'microsoft exchange server'?

LATEST Official version.
Questions and discussions - NO ISSUES
FOR ISSUES => http://mantis.testlink.org

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
breizou
TestLink user
Posts: 11
Joined: Mon Oct 29, 2012 6:11 pm
Location: Jakarta, Indonesia

Mail configuration using 'microsoft exchange server'?

Post by breizou »

Hi,

In my company we dont have any smtp or pop but we use only a "microsoft exchange server" like:
server.mycompany.com
I found an old post about exchange server but I'm not sure I do the correct configuration.
I put the following parameters:

$g_smtp_host = server.mycompany.com;
$g_tl_admin_email = 'name@mycompany.com';
$g_from_email = 'test@testlink.com';
$g_return_path_email = 'name@mycompany.com';

$g_phpMailer_method = 'PHPMAILER_METHOD_MAIL';
$g_smtp_username = 'name'; # user
$g_smtp_password = '***** '; # password
$g_smtp_connection_mode = ' ';
$g_smtp_port = 25;

When trying to generate a report, I have no error and I have the following message in the GUI" message sent to 'name@mycompany.com' but I never receive the message...
How I can know if my configuration is wrong? Is there any debug traces?
Thanks,
Breizou
GunnarD

Re: Mail configuration using 'microsoft exchange server'?

Post by GunnarD »

You have an smtp server, all incoming mail from "Internet" are using SMTP. :)

Try the following commands to get the address of your smtp:

Code: Select all

nslookup -type=mx mycompany.com
And leave $g_smtp_username and $g_smtp_password empty.
breizou
TestLink user
Posts: 11
Joined: Mon Oct 29, 2012 6:11 pm
Location: Jakarta, Indonesia

Re: Mail configuration using 'microsoft exchange server'?

Post by breizou »

Hi Gunnar,

Thank you for your feedback. When entering the command you gave me I have:

server:xxx.mycompany.com
adress: IP_adress

I put $g_smtp_host='xxx.mycompany.com';

Keep empty '$g_smtp_username', '$g_smtp_password', '$g_smtp_connection_mode'
For the port" I keep the default value '$g_smtp_port = 25;'

For this parameter '$g_phpMailer_method', I tried the different options but still the same GUI message" message sent to 'name@mycompany.com' but no message receive...

Breizou
GunnarD

Re: Mail configuration using 'microsoft exchange server'?

Post by GunnarD »

When you execute the command you should get something like this:

Code: Select all

C:\>nslookup -type=mx teamst.org
Server:  my.dns.server
Address:  192.168.0.10

Non-authoritative answer:
teamst.org      MX preference = 10, mail exchanger = ms.smarthost.cz
teamst.org      MX preference = 20, mail exchanger = ms2.smarthost.cz

teamst.org      nameserver = ns.smarthost.cz
teamst.org      nameserver = ns.testudo.eu
ns.testudo.eu   internet address = 217.31.48.201
ns.testudo.eu   AAAA IPv6 address = 2001:1ab0:7e1e:2::5
ns.smarthost.cz internet address = 195.226.217.5
ns.smarthost.cz AAAA IPv6 address = 2001:67c:278::d45
The address you should use is one off the "mail exchanger = ....", use the one with the lowest "MX preference"
breizou
TestLink user
Posts: 11
Joined: Mon Oct 29, 2012 6:11 pm
Location: Jakarta, Indonesia

Re: Mail configuration using 'microsoft exchange server'?

Post by breizou »

Hi,

In fact I got a mistake, but anyway by putting the correct smtp adress, I still have the same problem. :cry:
Perhaps I can catch traces with Eterheal to check what's appends.
Breizou
Post Reply