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
Solved

Restriction of accepting mail - Per email address

Posted on 2004-09-13
4
176 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
  • 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

860 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