Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.