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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-24-2006, 12:58 PM
|
#1
|
Member
Registered: Jan 2006
Distribution: RHEL3
Posts: 97
Rep:
|
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?
|
|
|
02-26-2006, 05:40 AM
|
#2
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
Simple, set up your sendmail alias file like so:
Code:
humanrec: jsmith, ajones, ltaylor
Then type 'newaliases' to make sendmail read the changes.
-twantrd
|
|
|
02-26-2006, 08:04 PM
|
#3
|
Member
Registered: Jan 2006
Distribution: RHEL3
Posts: 97
Original Poster
Rep:
|
Thanks!
I'll give it a shot tomorrow.
|
|
|
02-27-2006, 04:58 PM
|
#4
|
Member
Registered: Jan 2006
Distribution: RHEL3
Posts: 97
Original Poster
Rep:
|
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 ?
|
|
|
02-27-2006, 09:31 PM
|
#5
|
Senior Member
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,440
Rep:
|
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
|
|
|
02-28-2006, 08:04 AM
|
#6
|
Member
Registered: Jan 2006
Distribution: RHEL3
Posts: 97
Original Poster
Rep:
|
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.
|
|
|
02-28-2006, 11:32 AM
|
#7
|
Member
Registered: Jan 2006
Distribution: RHEL3
Posts: 97
Original Poster
Rep:
|
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.
|
|
|
10-04-2009, 06:14 AM
|
#8
|
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Rep:
|
Don't you think its not properly configured.
Why its working becoz of /etc/aliases not virtusertable.
|
|
|
All times are GMT -5. The time now is 04:08 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|