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.
Does anybody know how to get post fix to relay mail for only one user? I quite often use my email outside of the office, but am unable to send mail to anybody outside of our network.
If you have a static IP, you could add that to "mynetworks" in main.cf.
Since static IP's are rare and most of my users also had the desire to be able to access e-mail from outside the office, I setup VPN using PoPToP. This way they get an IP from inside the office subnet, so no changes to the relay setup required. The connection to PopToP is easy to setup on any Windows or Linux client.
Use SMTP AUTH. Take a look at sample-auth.cf on how to enable SASL (system used by smtp auth). It'll take some configuration, but SuSE should have it installed. It's the way everybody should be doing it, and it isn't too hard to setup. Modern email clients support this.
There is a way to use the "MAIL FROM:" address to allow relaying, but it is bad etiquette to do so (once a spammer/abuser finds it, your MTA will spew mail everywhere). Quoting Ralf above in fact this restriction is used only by administrators who have no grasp of how SMTP actually works.. But now I'll point out the rope and tree. You'll have to tie your own noose ;). Take a look at sample-smtpd.cf, specifially the check_sender_access restriction and smtpd_recipient_restrictions. (and if it don't work, don't ask, I've never done it.)
Originally posted by bastard23 Use SMTP AUTH. Take a look at sample-auth.cf on how to enable SASL (system used by smtp auth). It'll take some configuration, but SuSE should have it installed. It's the way everybody should be doing it, and it isn't too hard to setup. Modern email clients support this.
There is a way to use the "MAIL FROM:" address to allow relaying, but it is bad etiquette to do so (once a spammer/abuser finds it, your MTA will spew mail everywhere). Quoting Ralf above in fact this restriction is used only by administrators who have no grasp of how SMTP actually works.. But now I'll point out the rope and tree. You'll have to tie your own noose . Take a look at sample-smtpd.cf, specifially the check_sender_access restriction and smtpd_recipient_restrictions. (and if it don't work, don't ask, I've never done it.)
It's in /etc/postfix or /usr/share/doc/packages/postfix/sample depending on what version of postfix and SuSE packaging. There is also a SASL_README included with the postfix distribution. You should be able to skip over the cyrus sasl (a specific implemntation of sasl (Simple Authentication and Security Layer)) compilation as SuSE should already have it packaged and postfix linked against it. Take a look at /usr/share/doc/cyrus-sasl/doc for the nitty gritty of SASL. The readme should get you running. If not feel free to post some specific problems here or in a new thread.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.