Solved

Restriction of accepting mail - Per email address

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.

803 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