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!