Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 12-19-2012, 06:09 PM   #1
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 i need it to come from 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!
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:     relay:[]
note, you have to have the square brackets around the ip address
4 - save and exit
5 - run
makemap -v hash mailertable < mailertable
6 - go into the file and add a line right after FEATURE(`access_db', , ...) line that contains this:
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
Save and exit.
7 - reconfig sendmail by running
8 - restart sendmail. that should do it.


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

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295

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

Kind regards,



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

All times are GMT -5. The time now is 08:34 AM.

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