coolsti1954
Programmer
I have used sendmail often, but never had to configure it so I know very little about doing so.
Here is the problem: My Linux PC's are connected to our company main Windows 2003 server, srv01.mycompany.com. Recently we set up a new Exchange server to handle our emails, srv07.mycompany.com. After this was done, I could still send emails out with sendmail to external email addresses, but I no longer can send emails to people within the company.
When I look at the maillog entries, I see that emails to company employees has "relay=srv01.mycompany.com". The mails are being sent to the main company server, and most likely being dropped there instead of being passed on to the Exchange server.
I tried to force use of srv07 instead of srv01 by adding the line
define('SMART_HOST',`srv07.mycompany.com')dnl
to sendmail.mc, reconfiguring and restarting sendmail. Doing this, I can send mail to company employees, but no longer can send mail to external addresses (they also get relayed to srv07 and then bounced back saying I do not have permission, which is certainly an anti-spam protection).
So my question: How can I set up sendmail to relay to srv07 only the mail that is addressed to *.mycompany.com? I think this is what I need to do here.
Thanks for any help!
Here is the problem: My Linux PC's are connected to our company main Windows 2003 server, srv01.mycompany.com. Recently we set up a new Exchange server to handle our emails, srv07.mycompany.com. After this was done, I could still send emails out with sendmail to external email addresses, but I no longer can send emails to people within the company.
When I look at the maillog entries, I see that emails to company employees has "relay=srv01.mycompany.com". The mails are being sent to the main company server, and most likely being dropped there instead of being passed on to the Exchange server.
I tried to force use of srv07 instead of srv01 by adding the line
define('SMART_HOST',`srv07.mycompany.com')dnl
to sendmail.mc, reconfiguring and restarting sendmail. Doing this, I can send mail to company employees, but no longer can send mail to external addresses (they also get relayed to srv07 and then bounced back saying I do not have permission, which is certainly an anti-spam protection).
So my question: How can I set up sendmail to relay to srv07 only the mail that is addressed to *.mycompany.com? I think this is what I need to do here.
Thanks for any help!