• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 252
  • Last Modified:

Mail Handling under Linux

My mail server runs under Redhat Linux 3.0ES.
A mail is fetched from the POP3 account by fetchmail and forwarded to the local mail server (sendmail). This then transfers the mail to procmail, which then saves the mail to a local mailbox sorting mail into different users. I'm not sure if procmail or fetchmail is the one that sorts the emails into different users. Then users using outlook retrieves their messages.
We need that people can retrieve their email from outside of the company and I'm not sure how we can do this. I need help!!!

Thanks

0
geisha1
Asked:
geisha1
  • 2
  • 2
  • 2
2 Solutions
 
blklineCommented:
You need two things:

1) IMAP or POP3 server (which you can get in the "imap" RPM)  Apparently you have this already because the users can accesss their mail internally.
2) A route to the host from the outside of the company.

You didn't say whether the server in question is inside or outside of your firewall.   Give a few more details and we can go from there.
0
 
geisha1Author Commented:
Thanks for your quick response.

I'm a newbie in linux so I'm not sure what you mean when you said "imad" RPM".  Where I can verify this configuration? I do know that when users configures their email addres in outlook they use the POP3 option.

2) How I can do that?

We use squid as our firewall and is in the same server. We are planning to buy an external firewall but we are still evaluating different firewalls. We need that the firewall we choose works with VPN too. So any recommendation is welcome.

0
 
blklineCommented:
Well, then, you're probably already there.   To be clear, the outlook clients connect to *this machine* to retrieve their mail, right?  If that's the case then no additional software is necessary and you can ignore my comment about the RPM.  Simply allow access from the untrusted network (the internet) to your pop3/imap server.  The ports are:

for pop3    port 110    and for pop3s   995
for imap2 use port 143.   For imap3 use port 220 and for imap3s use 993.   If you need help doing this then post the results of:

cat /etc/sysconfig/iptables

and we can help you do what you need to do.  Alternately,  you can visit:

http://www.redhat.com/docs/manuals/enterprise/RHEL-3-Manual/ref-guide/ch-iptables.html

to learn how to do it yourself.
0
Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

 
wesly_chenCommented:
> people can retrieve their email from outside of the company and I'm not sure how we can do this
Through Outlook (Express) or web browser?

Through Outlook Express, you need to start pop3d, it's included in RHEL 3.0.

Throught web browser, you need webmail plug-in like SquirrelMail. it's also included in RHEL 3.0.

Wesly
0
 
geisha1Author Commented:
Yes, the Outlook clients connect to the server to retrieves their mail. But they only can do this internally but not from outside of the company.
As I'm new working with linux and administrating it, I'm sending you the output of the cat /etc/sysconfig/iptables so you can help me configure it correctly.

Thanks,

# Generated by iptables-save v1.2.8 on Mon Aug 23 12:35:03 2004
*nat
:PREROUTING ACCEPT [5845:2359956]
:POSTROUTING ACCEPT [34:2384]
:OUTPUT ACCEPT [37:2278]
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128
-A POSTROUTING -o eth0 -j SNAT --to-source 66.231.165.70
COMMIT
# Completed on Mon Aug 23 12:35:03 2004
# Generated by iptables-save v1.2.8 on Mon Aug 23 12:35:03 2004
*mangle
:PREROUTING ACCEPT [12831:2820798]
:INPUT ACCEPT [6989:460978]
:FORWARD ACCEPT [5837:2357800]
:OUTPUT ACCEPT [6987:461492]
:POSTROUTING ACCEPT [12823:2818860]
COMMIT
# Completed on Mon Aug 23 12:35:03 2004
# Generated by iptables-save v1.2.8 on Mon Aug 23 12:35:03 2004
*filter
:FORWARD DROP [0:0]
:INPUT DROP [0:0]
:OUTPUT DROP [0:0]
COMMIT
# Completed on Mon Aug 23 12:35:03 2004
0
 
wesly_chenCommented:
> Outlook clients connect to the server to retrieves their mail. But they only can do this internally
> but not from outside of the company.
Do you have two NICs on your Linux box? If not, then you need to open the tcp port 110 (inbound) on your firewall.
If your Linux box have 2 NICs: one to internet and another to LAN, then run
# redhat-config-securitylevel
to configure your firewall. (GUI, very easy).

Wesly
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!

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now