Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am attempting, and failing to setup Postfix for local and internet mailing. My configuration may be weird to some and perhaps there are any number of better ways to do this, but I am also trying to learn why and how things they are put together and the more examples I have, the better I become. So, here it is:
I am after trying to achieve the following:
1) Any email that starts on machine1 and goes to machine1 should do so without any form of relaying to the internet - that I can get to work.
2) Any email that starts on machine1 and goes to machines2, 3, or 4 should do so without any form of relaying to the internet - that I can also get to work, however,
3) Any email that starts on machine1 and goes to anywhere else other than any machine on example.com (i.e. outside) should relay to the internet via my ISP. That is the problem.
In the mail log, it is saying that the relay being used is the username@localhost... but I cannot do that because I need to authenticate my email to my ISP using smtp_sasl_password_maps first.
I have set the relayhost = [my.isp.com] and
smtp_sasl_password_maps = hash:/etc/postfix/smtp_sasl_password_maps
but it appears to be being ignored. I currently have no entries in the transport maps table. The main.cf file is as follows:
OK so you have an issue here, you can either have Postfix deliver the mail itself OR relay. You can't do both, you can have it deliver to local mailboxes and then relay for everything else.
If you have multiple systems like this and you want internal delivery for some and relay for others it becomes very tricky, the easiest way is to have all the mailboxes be local and then use nfs or cifs to mount the mail files on the remote systems so they are accessible. Other ways to skin the cat but that seems easiest.
Thank you for that Kustom42 - I had a feeling that would be the outcome, I was just hopeful that perhaps there was a way. Never mind. I will do some more research. Your NFS idea seems to be a direction to go in. When I was at college (what seems to be a million years ago), I am sure we were able to do this, but then postfix did not exist and I am guessing it was all done with some clever stuff and sendmail (we had Sun machines there).