Solved

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

Posted on 2001-09-04
7
342 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
7 Comments
 

Author Comment

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

Accepted Solution

by:
ksemat earned 150 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 150 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

Email signatures have numerous marketing benefits. Here are 8 top reasons to turn your email signature into a marketing channel.
Marketers need statistics and metrics like everybody else needs oxygen. In this article we explain how to enable marketing campaign statistics for Microsoft Exchange mail.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …

830 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