?
Solved

how can i restrict internal user to send and receive email from other/outside domain?

Posted on 2001-09-04
7
Medium Priority
?
353 Views
Last Modified: 2013-12-17
how can i restrict internal user to send and receive email from other/outside domain? The only emails that he can only get is internal mail. We're having pop3 server on machine1 and smtp on machine2.
0
Comment
Question by:mlgatchalian
  • 2
  • 2
5 Comments
 

Author Comment

by:mlgatchalian
ID: 6452681
linux sendmail issue
0
 
LVL 2

Accepted Solution

by:
ksemat earned 450 total points
ID: 6461316
Sending is easy. You can simply make sendmail masquerade all mail form your smtp server to appear as user@your.domain.com edit /etc/sendmail.cf and change this line to:

# Who I masquerade as ( null for no masquerading)
DMyour.domain.com

now all mail sent through this server will appear to come from his username@you.domain.com even when he explicitly sets another domain in his mailer.

But you then have to restrict his internet access so that he cannot use public services like yahoo and hotmail otherwise he is through. Which may not be practical.
However you can block him using ipchains rules such that he cannot connect to ports 25 and 110 of any other servers other than yours in the firewall.


0
 
LVL 2

Expert Comment

by:ksemat
ID: 6464694
Actually a better way to block the users os to do an ipchains redirect such that all connections to port 110 anywhere are redirected to your local pop servers 110 and all connections to port 25 are also redirected to port 25 on your local smtp server.
0
 
LVL 15

Assisted Solution

by:samri
samri earned 450 total points
ID: 6592477
i think by blocking outgoing SMTP, POP, and maybe IMAP on your firewall (if you have any) and only allow incoming/outgoing for your SMTP servers, will deny your local users while allowing your SMTP/POP server to still operate.  (just like ksemat suggestion).

Next step is to ADVERTISE it to your users.

I would say that port redirection will confuse your user even more.  Just tell them that they can't access POP/SMTP to external servers.

good luck.
0
 
LVL 15

Expert Comment

by:samri
ID: 6747833
any luck on this?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
The main intent of this article is to make you aware of ‘Exchange fail to mount’ error, its effects, causes, and solution.
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses
Course of the Month13 days, 20 hours left to enroll

809 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