Solved

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

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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
exchange 2010 server 19 55
add and run outdated exchange database to an Exchange server 1 38
EXCH2013 IMAP problems 3 21
Exchange 2010, Implementing On-Prem Archiving 3 27
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
Resolve DNS query failed errors for Exchange
In this video we show how to create a Contact 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 Recipients >> Contact ta…
In this video we show how to create an Accepted Domain 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 Mail Flow >> Ac…

776 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