LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-24-2010, 11:02 PM   #1
LincP9
LQ Newbie
 
Registered: Sep 2010
Location: CA
Posts: 3

Rep: Reputation: 0
e-mail redirect and port change


I am looking to set up a system that will bring in an e-mail on a port like 4082 then sent it out to a standard e-mail port. this is a fire wall issue. I am looking for the best software I can use on an Ubuntu-Desktop platform to accomplish this and an idea on how to set this up?
 
Old 09-25-2010, 01:37 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
I do not completely understand what you want to do. But whatever I understand, you need to redirect connections from one port to another. May be another system. What you need for redirection is iptables. This is default with every Linux distribution. So you need not install it. Just configure it to work your way.

Start here for iptables documentation.
 
Old 09-25-2010, 02:45 AM   #3
LincP9
LQ Newbie
 
Registered: Sep 2010
Location: CA
Posts: 3

Original Poster
Rep: Reputation: 0
I have an alarm system sitting behind a firewall, the IT is only allowing me one port which is 4082. The alarm system will send out an e-mail if there is a problem. My e-mail will not receive an e-mail coming to it on 4082 I need to set up a system that will receive a e-mail on 4082 and send it back out on a port a normal e-mail can receive.
 
Old 09-25-2010, 05:56 AM   #4
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
By default no mail service will listen on the port that is open. If you are planning to put your own mail server, then you can configure it to listen on the port and then redirect the connections where you want.
But I still do not understand one thing, are you running your own mail server? And if you are not the administrator for your infrastructure, then you may not be able to do that either.

Also, how do you receive mails? And where is the mail server if you are not running one?
 
Old 09-25-2010, 04:38 PM   #5
LincP9
LQ Newbie
 
Registered: Sep 2010
Location: CA
Posts: 3

Original Poster
Rep: Reputation: 0
By what I am seeing and what you are saying I need to set up a mail server. I have been looking into Postfix. Is there another one that you can think of that would accomplish this. It would only receive e-mail from the security controller then forward it out to about five e-mail addresses.
 
Old 09-27-2010, 04:37 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
I do not mean to say you obviously need a mail server. What I am asking how do you receive mails right now? Or you do not have a mailing system and you are planning to put one for yourself? If you already have a mailing system, and you have a mail server in place, even if that is managed by someone else, you can set the settings for the email address to forward the mails to another address.
Or am I still confused?

Another thing that you mentioned was postfix. That should be good choice. But if you want something else, sendmail is another one. I would say give as much information as possible about your network infrastructure so that we can understand what the situation is and what you are planning to do.
One more thing that would like to ask, when you say IT admin blocked all the ports except one, why did he/she do it? I do not see a point in blocking email ports? And even a www port is blocked?
That looks strange to me.
 
Old 09-27-2010, 04:46 AM   #7
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,138
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi,

You have in-house mail server or is it hosted somewhere else?

You cant post your mail server settings here; but let us know in short names :

Your SMTP Server name

Your POP or IMAP Server name

In short we want to know how you configure your mail clients(outlook or Thunderbird or kmail or evolution or any other?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
with iptables, how-to redirect outgoing mail from port 25 to port 587 thumbelina Linux - Networking 12 03-19-2012 09:26 AM
debian iptables squid - redirect port 80 to port 8080 on another machine nickleus Linux - Networking 1 08-17-2006 01:59 AM
Outside FTP Port 21 redirect to different port inside LAN??? hendrixx Linux - Security 5 06-05-2004 07:42 PM
Redirect to another port dlucas10 Linux - Networking 4 02-06-2004 02:03 PM
Change / Redirect SMTP Port Kernel_Sanders Red Hat 0 11-13-2003 09:42 AM


All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration