LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-08-2011, 09:50 AM   #1
zang8027
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
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.

Last edited by zang8027; 11-08-2011 at 10:00 AM.
 
Old 11-08-2011, 03:33 PM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail Domain Issue tele2002 Linux - Software 3 01-11-2011 07:24 PM
[SOLVED] Openwebmail Virtual Domain + Sendmail Issue mail4vijay Linux - General 1 12-11-2009 07:06 AM
How to configure Sendmail + 1 dyndns.org free domain + Mysql for virtual server simon.unix Linux - Server 1 04-15-2009 12:23 PM
sendmail unresolved domain issue Bake-SaleNet Linux - Networking 0 11-30-2003 09:27 AM
how to add virtual user & domain on sendmail? earl Linux - Networking 2 07-30-2002 10:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration