Solved

Restriction of accepting mail - Per email address

Posted on 2004-09-13
4
177 Views
Last Modified: 2013-12-15
We have an email alias: allnsw@mydomain.com.au, which forwards mail to every user in my department.

We are having problem with spam being sent to this address.

I want to restrict this email alias so that it will only receive and forward email from an internal email address or internal IP address: (eg. somebody@mydomain.com.au and/or 192.168.1.1-254)

Is this possible?

I am running Redhat 9.0 and Sendmail

Let me know if you need any further information. Thanks everyone.
0
Comment
Question by:Jon_b123
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 38

Expert Comment

by:yuzh
ID: 12051928
You have a few options:

1. write a filter script to discard all the email from the other domain, see:
    http:Q_21087571.html
    to learn how.

2. setup a private mail server (only have local DNS), and create an email aliase in the
    box to forward the mail to your users. Or setup another mailchine to run sendmail
    only acceipt the email from your domain. ( /etc/mail/access )

     Please have a look at:
    http://www.faqs.org/docs/linux_network/x15291.html 
0
 

Author Comment

by:Jon_b123
ID: 12052063
Thanks yuzh,

I unfortunately don't have the in-depth knowledge required to customize your mentioned script to perform my task.

I guess I will have to go for your second suggestion, although it's not really feasible just for one alias.

I may just have to put up with the spam. (I am running spamassassin but cannot turn up the sensitivity as it loses legitimate email).

I will check back tomorrow and see if any other suggestions are made. If not I will award you the points.

Thanks again yuzh!
0
 
LVL 38

Accepted Solution

by:
yuzh earned 500 total points
ID: 12052126

>>>I unfortunately don't have the in-depth knowledge required to customize your mentioned script to perform my task.

Do you have some experiences with shell script (ksh/sh)? If you can read sh/ksh script, I
can give you a hand to modify the script to make it work for you (since you are from .au)

It is not that hard to modify it, in my autoreply script, it alread save the incoming script in

$TEMP (/home/${2}/forward.tmp) file, all you need to do is to check where the email
come from:

IF the email comes from your domain THEN
    forward to the users
ELSE
    donothing
ENDIF

0
 

Author Comment

by:Jon_b123
ID: 12109562
Unfortunately not much experience at all.. I guess I'll just have to change the alias name as a work-around.

Thanks anyway yuzh, I will award points for trying.
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

733 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