LinuxQuestions.org
Help answer threads with 0 replies.
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 02-24-2006, 12:58 PM   #1
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Rep: Reputation: 15
virtusertable vs. aliases and multiple recipients


I have been browsing thru the forums and doing some google searches to find this info with no luck.

RHEL3
Sendmail 8.13.5

I am trying to determine how to set up an address which will deliver email to multiple recipients. For example, assume I have 3 users who work in our HR department:

jsmith
ajones
ltaylor

I want to have an email account (alias) that receives email to:

humanrec@company.com

where this email gets delivered to all 3 users.

Anyone tell me where I can configure this?
 
Old 02-26-2006, 05:40 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Simple, set up your sendmail alias file like so:
Code:
humanrec: jsmith, ajones, ltaylor
Then type 'newaliases' to make sendmail read the changes.

-twantrd
 
Old 02-26-2006, 08:04 PM   #3
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Original Poster
Rep: Reputation: 15
Thanks!

I'll give it a shot tomorrow.
 
Old 02-27-2006, 04:58 PM   #4
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Original Poster
Rep: Reputation: 15
An issue

I've added an alias like this:


aliasname: username



and the maillog reports that aliasname@company.com is an unknown user. I ran newaliases and restarted sendmail before I sent the test message. Am I missing something in my sendmail configuration to use the aliases file? btw, the aliases file is in /etc - should there be one in /etc/mail ?
 
Old 02-27-2006, 09:31 PM   #5
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Quote:
and the maillog reports that aliasname@company.com is an unknown user
Is DNS set up correctly? Is the MX record pointing to your box? If DNS is not set up, you will have problems with outside users trying to send mail to you.

However, if you are sending mail internally (ie. on that box itself), you should have no problems.

Quote:
btw, the aliases file is in /etc - should there be one
It should be a symbolic link.

-twantrd
 
Old 02-28-2006, 08:04 AM   #6
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Original Poster
Rep: Reputation: 15
My DNS records are fine. I have users already set up on the box and the only messages getting rejected are from bogus domains. Everything else gets thru with no trouble. I am debating not using the aliases file and simply making the entries in the virtusertable file, but I am not sure if I can set it up there to send the email to multiple recipients. I am going to test that this morning.
 
Old 02-28-2006, 11:32 AM   #7
Skip-DMP
Member
 
Registered: Jan 2006
Distribution: RHEL3
Posts: 97

Original Poster
Rep: Reputation: 15
Solved!!!

As it turns out, my resolution was a combination of using both files. Here are what my entries look like:

virtusertable
-------------

humanrec@company.com humanrec




aliases
-------------

humanrec: jsmith, ajones, ltaylor


======================

I had previously discovered that simply creating users on my linux box was not also generating the ability to receive email. In order to do so, I added entries into the virtusertable file. Apparently, by adding such an entry for an alias is also necessary. Thus, the user is not "unknown" by the virtusertable file and is then using the alias file to determine the recipients.
 
Old 10-04-2009, 06:14 AM   #8
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,439
Blog Entries: 6

Rep: Reputation: 51
Don't you think its not properly configured.
Why its working becoz of /etc/aliases not virtusertable.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
setting virtusertable in sendmail creates problems with aliases set jomy Linux - Networking 1 11-03-2011 06:32 PM
Multiple aliases in apache 1.3.33 mdcapt Linux - Networking 1 02-12-2006 07:07 AM
Procmail recipe-multiple recipients at same domain LocoMojo Linux - Software 0 01-19-2006 11:13 PM
sendmail virtusertable or aliases? HeadNoodle Linux - Newbie 7 02-18-2005 11:38 AM
exim 4 - multiple recipients for one alias Yoss Linux - Software 2 02-10-2004 01:45 AM


All times are GMT -5. The time now is 09:45 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration