LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-29-2006, 04:55 PM   #1
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Rep: Reputation: 31
Route mail through personal server


Ok, I have a dynamic IP and use dyndns.org. I setup my own mail server (let's call it X), which functions as follows:

X uses fetchmail & postfix to get mail from my ISP's mailserver

X uses MailX to send mail through ISP's server

This works fine. Now, I wanted remote access. I setup dovecot (IMAP server) which works fine and gives me IMAP access to my mail on X, including folders and all that. So I can access my mail remotely.

Now, how do I send mail remotely?

Essentially, I want my email client to connect (with authentication) to X, and send the mail through it. Since mailX is working, X should know to send the mail through the ISP server, like it does for mail that originates locally.

1) What server/protocol/configuration do I need so that I can send mail through my server (X) but limit this ability to authenticated users, so that it won't become an open relay?

Thanks,
Jason
 
Old 11-29-2006, 06:30 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
You need to send mail from a site that is not connected to the same IP range as to your X mail server?

Meaning you cannot send mail from remote site C since the mail server is located in site A which is the only way your ISP will except mail to be sent. So if you were connected on your site A you are able to send mail to the ISP mail server. Correct?

I hope you understand that.

What I am thinking of is using ssh to setup forwarding of ports. This may be to far. Does require the then remote location to be able to do ssh and do some port modifying.

Brian
 
Old 11-29-2006, 08:18 PM   #3
jantman
Member
 
Registered: Nov 2005
Location: New Jersey, USA
Distribution: SuSE
Posts: 492

Original Poster
Rep: Reputation: 31
Brian,

Yes, that is correct. However... I'd rather not do that.

I was looking around and I think that postfix and Cyrus SASL is the way to go... but the configuration seems complex.

Right now, when someone sends mail to me, it goes from ISP's server -> "X" -> checked by remote user "C".

What I want is for "C" to send mail -> "X" which relays it (as if it originated on "X") -> ISP.

I hope this makes sense.

Essentially, I want to be able to send mail from any authenticated client in the world to my server "X" and then have "X" send it to the outside world via my ISP.
 
Old 11-30-2006, 05:44 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
I see what you want. Never setup anything quite like that.

Brian
 
  


Reply



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
Sendmail as SmartHost to route MS exchange 2003 Internal mail cksoo Linux - Enterprise 4 01-15-2007 10:34 AM
hosting a personal mail server ankit_mcgill Linux - General 1 04-05-2006 07:48 AM
I am not able to add a new route to my route table using route command prashanth s j Linux - Networking 2 09-03-2005 04:34 AM
mail route to local server bplee Linux - Enterprise 4 07-19-2004 08:49 PM
Personal Mail Server jmirles Linux - Newbie 3 07-10-2004 09:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:51 AM.

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
Open Source Consulting | Domain Registration