Solved

mail aliases to be restricted to use within internet domain

Posted on 2003-11-21
7
279 Views
Last Modified: 2010-04-21
Hello,
     We have an IBM server with Linux op. System (Redhat ver 8.0). This server has been configured as mail server using sendmail. I have difined the aliases in /etc/aliases (which become part of aliases db in /etc/mail/aliases. These are working ok but the problem is these can be used by OUTSIDERS also.

I am looking at the documentation but if some one knows how to restrict the mail aliases to LOCAL use (use within our mail server or within our internet domain), please let me know, Thanks
0
Comment
Question by:Ramesh Satija
  • 3
  • 2
7 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 9797497
I'm sorry but aliases are global and there's no mechanism that would allow you to restrict alias expansion to local users. Denpenif on what sort of aliases you've created there might be other ways of accomplishing the task that could be restricted to local users. Culd you elaborate?
0
 

Author Comment

by:Ramesh Satija
ID: 9808506
Thanks jlevie for your comment. My only requirement is that I need to define one alias for a group of local users and sending mail to all those users should be possible using this alias (or shortname). It can be done (in say pine)  by a particular user, but I want to define in such a manner that all local users should be able to use it for sending mail to this group of local users and all users don't use pine.
Thanks
 
0
 
LVL 40

Assisted Solution

by:jlevie
jlevie earned 50 total points
ID: 9866962
I figured that was what you wanted to do. It can't be done with a simple alias list unless you are willing to expose that alias to the world, since mail servers don't have the concept of local-only aliases. The only way that I know of to accomplish this at the server level is to create an alias the feeds a "selective remailer" program. That remailer can check the sender and not send the message to the list if if isn't a local user.
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 3

Accepted Solution

by:
Ravi Goru earned 75 total points
ID: 9992031


just create an account .. which will receive all the sort mail .. to forward .. !!

and then try .. using .. 'procmail.rc'  & '.forward'  facilities .. !!


and u should be able to achieve all .. what ever u  r really looking for .. !!

best of luck ..


RaviGoru
0
 
LVL 40

Expert Comment

by:jlevie
ID: 10179771
Split between ravigoru & jlevie
0
 

Author Comment

by:Ramesh Satija
ID: 10181468
Dear jlevie,
          I have accepted the answers which seem to be relevant. Your comment gave the direction of solving the problem, and comment from ravigoru gave the details of exactly what is to be done. I have still not done the full thing but am almost sure that iravigoru's suggestion would work, so I have accepted the answers.
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now