LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Sendmail virtual domain issue (https://www.linuxquestions.org/questions/linux-software-2/sendmail-virtual-domain-issue-912482/)

zang8027 11-08-2011 09:50 AM

Sendmail virtual domain issue
 
Hello all,

Let me first start out by saying that I am a newbie when it comes to linux. I just got hired on to this company and the company uses a linux mail server running sendmail. Here is the server specs:


Sendmail 8.14.2
Fedora 8 (Werewolf)


We have two domains, which we will call example.com and example2.com. Example.com is our main domain that the server is on. So we have an aliases file that works great! Example: we have licensing@example.com going to admin@example.com. This works great.

The problem we have is that we had our exchange server crash for example2.com so we moved all the users to a POP account on example.com. We had a support@example2.com that we want to alias to a few people, but we cannot do that because its on a different domain.

We are trying to use VirtualUserTable to do this but it is not working. I get no errors. We edited the sendmail.mc file to add in:

Code:

FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
Inside of /etc/mail, we see virtusertable and virtusertable.db. Inside of virtusertable, we have, at the bottom, the following:

Code:

support@example2.com admin@example.com
We then ran the following:
Code:

makemap hash virtusertable.db < /etc/mai/virtusertable
Now I tried sending an email to the account but I got nothing on admin@example.com.

Anything I am missing or doing wrong? When something is sent to support@[any of our domains], it is sent to our server running sendmail, then it is run through procmail (procmailrc) and from there, recipes send it out. We could adjust the recipes but its sloppy.

bathory 11-08-2011 03:33 PM

Hi,

If I can understand well, you had an exchange server that was getting mail for example2.com. And you want to (at least temporarily) get that mail to sendmail running on example.com.
If that's the case, the first thing that needs to be changed, is the MX record of the domain example2.com, so it points to your sendmail server. So ask the admin of the example2.com nameserver to do this change.
Then add example2.com in /etc/mail/local-host-names and restart sendmail.


Regards


All times are GMT -5. The time now is 03:38 PM.