LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-19-2012, 05:09 PM   #1
dogdaynoon
LQ Newbie
 
Registered: Dec 2012
Posts: 2

Rep: Reputation: Disabled
Sendmail \ Ubuntu \ Windows Exchange


I have an Ubuntu server set up for wordpress and sendmail.
I also have a Windows Exchange server.
On my windows exchange server, i set up a rule to allow incoming mail from a specific IP (Ubuntu machine).
Sendmail from the Ubuntu Box sends to gmail and yahoo fine, when i try to use sendmail to send to the exchange server, i see that i am getting a reject because the mail is coming from 127.0.0.1 i need it to come from 192.168.0.16 say.
How do i do this?
Is there something in the mc file that i need to change? or is it simply a network configuration issue. please help!
-------------------------------SOLVED-------------------------------------
Okay, so after some more reading here was the solution if anyone else is interested...

1 - clean install of sendmail.
2 - create a text file in /etc/mail called mailertable
3 - in this file add line.
Code:
domain.name     relay:[ip.address.of.exchange]
note, you have to have the square brackets around the ip address
4 - save and exit
5 - run
Code:
makemap -v hash mailertable < mailertable
6 - go into the sendmail.mc file and add a line right after FEATURE(`access_db', , ...) line that contains this:
Code:
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
Save and exit.
7 - reconfig sendmail by running
Code:
/usr/sbin/sendmailconfig
8 - restart sendmail. that should do it.

Dogdaynoon!

Last edited by dogdaynoon; 12-20-2012 at 11:50 AM. Reason: update solved
 
Old 01-05-2013, 03:15 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Thank you for sharing your solution and marking the thread as solved. Off the Zero Reply List.

Kind regards,

Eric
 
  


Reply



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
[SOLVED] sendmail to exchange alias bino25 Linux - Newbie 2 11-14-2011 10:12 AM
I need help with Sendmail and Exchange scream Linux - Server 6 12-08-2008 12:34 PM
SMTP Sendmail via Exchange FastForward Linux - Server 3 07-02-2008 03:59 PM
exchange to sendmail Ammad Linux - Networking 1 06-06-2006 08:13 PM
exchange to sendmail shabandri Linux - Software 0 02-19-2004 01:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:58 PM.

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
Open Source Consulting | Domain Registration