LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Sendmail Configuration Question (https://www.linuxquestions.org/questions/linux-server-73/sendmail-configuration-question-819865/)

Stroik52 07-14-2010 07:17 PM

Sendmail Configuration Question
 
Hi everyone,
I'm new at configuring sendmail and I'm working on configuring it as a gateway for our MS Exchange server. Mail seems to relay correctly for the most part.

I'm having an issue that I am unsure how to fix though. Say the exchange mail server is mail.mydomain.com and the sendmail gateway is smtp.mydomain.com, when I send mail to user@mydomain.com, my message will bounce back with the message "user address required", if I send mail to user@mail.mydomain.com though, mail goes through without a hitch.

Is there a way to make mail.mydomain.com = mydomain.com? I've been using virtusertables to compensate for this but that doesn't sound like a good solution. There must be some other way to do this?

Thanks in advance

lbrigman124 07-14-2010 10:40 PM

Sendmail is very flexible but the config files are difficult to get right.

The setting is:
MASQUERADE_AS(mail.mydomain.com)

The other package that might be useful as there is more stuff for filtering - postfix.

kenneho 07-15-2010 04:50 AM

Just want to say that you should consider checking out postfix as a replacement for sendmail. I have close to no experience with sendmail, but from what I've heard postfix is easier and more secure.

Stroik52 07-15-2010 01:36 PM

My boss suggested using LDAP as a way to fill my aliases/virtusertable. Does anybody know how to integrate that with Active Directory? Are there any guides on the matter?

lbrigman124 07-16-2010 01:09 AM

If IT will help you get the info for the Domain controller so the machine can do the lookups then
you just need to get the ldap packages loaded an point to the domain controller as the ldap server.

If you need to get fully integrated with ldap I would recommend likewise.


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