LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-27-2009, 10:41 AM   #1
fedder22
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Rep: Reputation: 0
DNS, Email and exchange. - email stays on linux box - should be going to exchange


okay to give a background heres my situation:

I'm working with Fedora 6 - a few years ago I believe this was the only server in my current organization. there are now windows servers that are predominantly used with the same domain. When I try to send an email from the fedora box to a users outlook account (which is the same address that it was on the linux box) it stays in the linux box instead of sending the email to their outlook. I'm able to view the emails using sendmail but I want them to go to my outlook account.

I believe this to be a weird dns issue because the linux box probably is sending the mail correctly to the email it has configured on its own instead of using the windows exchange server - can anyone help point me in any direction? any logs I should look at or conf files?
 
Old 01-28-2009, 11:01 AM   #2
okcomputer44
Member
 
Registered: Jun 2008
Location: /home/laz
Distribution: CentOS/Debian
Posts: 244

Rep: Reputation: 51
I think if you point the windows dns server in the linux box that could help.

Cos I think the linux box uses its own dns server right now and that is why it can't send the mails in to exchange.(MTA does not forward internal mails outside)

On the linux box the domain's mx record must be point into windows box.

So look at the resolv.conf in /etc and sometimes have to change the /etc/sysconfig/networking/profiles/default/resolv.conf cos the networkmanager rewrite it with the old dns record.

You can check where to point your linux box's mx record with the dig command.

dig mx yourdomain.com

Laz
 
Old 01-29-2009, 10:58 AM   #3
fedder22
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
Okay My resolv.conf looks like this

etc]# cat resolv.conf

search localdomain
nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx

The IP's are referencing my windows server

default]# cat hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.

127.0.0.1 localhost.localdomain localhost
xxx.xxx.xxx.xxx dns.name.windows.server1
xxx.xxx.xxx.xxx dns.name.windows.server2
::1 dns.name.linux.server
xxx.xxx.xxx.xxx dns.name.linux.server


should I change the localhost.localdomain entry to the IP of my exchange server?
 
Old 01-29-2009, 09:58 PM   #4
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi fedder,

Quote:
Originally Posted by fedder22 View Post

I believe this to be a weird dns issue because the linux box probably is sending the mail correctly to the email it has configured on its own instead of using the windows exchange server - can anyone help point me in any direction? any logs I should look at or conf files?
i'm not too clear about this,
what email client you used to use when using linux? was it evolution or thunderbird or kmail or anything else?

i'm seeing that your problem is not DNS/MX-record related - as long as your other client (outlook) has received any email normally using the exchange server then its your linux mail client config problem. try to reconfigure the SMTP and POP or IMAP address of your mail client to point to the new mailserver (exchange). and make sure that you've enabled POP service on your exchange server - because by default (from any Active Directory initial installation) it will only use the SMTP and IMAP TCP 143 to send/receive emails.

and dont change that /etc/hosts file - you dont need to.

HTH.

Last edited by rossonieri#1; 01-29-2009 at 10:00 PM.
 
Old 02-02-2009, 03:13 PM   #5
fedder22
LQ Newbie
 
Registered: Jan 2009
Posts: 9

Original Poster
Rep: Reputation: 0
im using sendmail and webmin, the software I'm trying to send mail from is OTSR trouble ticket - but when I ssend it instead of going to my exchange email it goes directly on my linux box to the corresponding emails I tried sending it to.


I'm willing to entirely start from scratch if someone can recommend something besides sendmail or a good how-to for sendmail (or other mail server)


also - if I try to compose from sendmail directly it doesnt work - I dont even know where it went
 
Old 02-03-2009, 09:34 AM   #6
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
hi fedder,

i dont understand clearly what you were trying to accomplished here,
but those 2 sendmail and OTRS are 2 different apps :
sendmail is pure an MTA, OTRS on the other hand is an application that being sendmail's or MTA mail client.

if you already create OTRS user account on the exchange server - than you should point its mailer config to your exchange server - not using the default sendmail.

here's the doc - in case you are wondering?
on chapter 7 : http://doc.otrs.org/2.3/en/html/
Code:
7.1.2. Via SMTP relay/smarthost

# SendmailModule
    $Self->{"SendmailModule"} = "Kernel::System::Email::SMTP";
    $Self->{"SendmailModule::Host"} = "mail.example.com";
    $Self->{"SendmailModule::AuthUser"} = "";
    $Self->{"SendmailModule::AuthPassword"} = "";

HTH.
 
Old 02-03-2009, 09:34 AM   #7
rossonieri#1
Member
 
Registered: Jun 2007
Posts: 359

Rep: Reputation: 34
sorry - this network problem keep getting me posting errors.

Last edited by rossonieri#1; 02-03-2009 at 09:37 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exchange to Linux SMTP outbound email. shogun90 Linux - Server 1 09-28-2007 03:35 AM
Linux email and ms exchange server M3Tuck Linux - General 3 04-29-2005 09:28 AM
how to seting the email exchange address in linux henryluo Linux - Networking 2 04-16-2005 10:27 AM
Email from a Linux to MS Exchange jkliebhan Linux - General 3 11-30-2004 01:27 PM
Linux newbie.. trying to set up email relay to Exchange jaybuffet Linux - Networking 4 10-29-2004 10:51 AM


All times are GMT -5. The time now is 07:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration