LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail \ Ubuntu \ Windows Exchange (https://www.linuxquestions.org/questions/linux-server-73/sendmail-%5C-ubuntu-%5C-windows-exchange-4175442219/)

dogdaynoon 12-19-2012 05:09 PM

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!

EricTRA 01-05-2013 03:15 AM

Hi,

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

Kind regards,

Eric


All times are GMT -5. The time now is 09:52 AM.