Hello list. I am looking for a suggestion on setting up an email system on a LAN. I am not really asking "How do I do this?", but rather, which software solutions should I use. I have never met too much in Linux that I can't figure out if I know where to look. What I have now .... SuSE 9.1 Pro, static IP, on WAN, Firewalled, SMTP port open, Postfix set to accept mail and route to one of 20 users on THAT machine. Postfix is configured to accept mail for 3 domains. All email for someuser@thisdomain or someuser@thismachine.thisdomain will be sent to someuser on this SuSE system. What I want to put into place .... The ability to route mail to anothermachine. So mail to someuser@thisdomain or someuser@thismachine.thisdomain would still got to someuser on the SuSE box, but mail to someotheruser@anothermachine.thisdomain would be set up to be delivered to mail software on anothermachine and mail from another machine would be sent out via routing through the SuSE system. I also want the ability to forward mail from someuser@thisdomain or someuser@thismachine.thisdomain to someotheruser@anothermachine.thisdomain and have it delivered to mail software on anothermachine. I have heard of fetchmail, pop mail, but I know nothing about any of this. I figured out postfix on the fly to get this far. All suggestions as to what software to use would be appreciated. Besides setting up the new software what changes do I need to make to my postfix main.conf file? Any HOWTO tips would also be appreciated. If there is a better list to direct these questions to please tell me. For completeness the other machine I am routing mail to is a Macintosh OS X system (10.4.1) All comments welcome. john
John N. Alegre wrote:
The ability to route mail to anothermachine. So mail to someuser@thisdomain or someuser@thismachine.thisdomain would still got to someuser on the SuSE box, but mail to someotheruser@anothermachine.thisdomain would be set up to be delivered to mail software on anothermachine and mail from another machine would be sent out via routing through the SuSE system.
I also want the ability to forward mail from someuser@thisdomain or someuser@thismachine.thisdomain to someotheruser@anothermachine.thisdomain and have it delivered to mail software on anothermachine.
You can do all of that with postfix. Just read the content of /etc/postfix/transport. That should already cover all the questions you asked. (^-^)
For completeness the other machine I am routing mail to is a Macintosh OS X system (10.4.1)
Just tell the mac that your suse box is his relay host.
All comments welcome.
If you need a more complete answer you will have to define your goals a bit more precise. Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com
On Saturday 02 July 2005 18:51, John N. Alegre wrote:
I have heard of fetchmail, pop mail, but I know nothing about any of this. I figured out postfix on the fly to get this far. All suggestions as to what software to use would be appreciated. Besides setting up the new software what changes do I need to make to my postfix main.conf file? Any HOWTO tips would also be appreciated. If there is a better list to direct these questions to please tell me.
Hello John, As Sandy said already postfix is the place to look at. They have a really good documentation: http://www.postfix.org/documentation.html http://www.postfix.org/docs.html and some lists: http://www.postfix.org/lists.html Regards Ulf
Thanks to Sandy and Ulf, Im still missing something. After I set the config correctly in postfix, what is the signal for the remote mac to go collect the mail into its mail software.? john On Saturday 02 July 2005 14:09, Ulf Rasch wrote:
As Sandy said already postfix is the place to look at.
John N. Alegre wrote:
Thanks to Sandy and Ulf,
Im still missing something.
After I set the config correctly in postfix, what is the signal for the remote mac to go collect the mail into its mail software.?
Could you tell just what kind of software you use on your mac? Does Postfix run on your mac as server as well? If a mail server program like sendmail, exim, qmail or postfix is running on your mac, then it doesn't have to do anything at all. A server is defined by offering a service, in this case it is offering to send AND receive mails. The transport tells postfix where it should deliver mails it receives. That means if you tell postfix to transport certain mails to the mac it will do exactly that. Isn't that nice? (^-^) /etc/postfix/transport # here list all addresses to be forwarded to the mac: user1@example.com smtp:192.168.1.20 # or whatever your mac is... #you can also define transports for entire domains or subdomains subdomain.example.com smtp:192.168.1.30 # another server... If you don't set explicite ways to transport mails postfix will deal with mail according to the definitions in main.cf that define domains it knows as local domains for mails that postfix itself is responsible for, relay domains that will be forwarded to other servers or virtual domains that will be rewritten to one of the two. Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com
On Saturday 02 July 2005 1:45 pm, John N. Alegre wrote:
Thanks to Sandy and Ulf,
Im still missing something.
After I set the config correctly in postfix, what is the signal for the remote mac to go collect the mail into its mail software.?
john
That question makes me wonder if you really do mean to relay mail to a subdomain, which is what Sandy explained how to do. Your question makes it seem like you only want to provide pop3 or imap on your main box for the others to collect their mail from, that's an entirely different setup. Which is it really? Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.7-default x86_64 SuSE Linux 9.3 (x86-64)
Scott, On Saturday 02 July 2005 18:31, Scott Leighton wrote:
That question makes me wonder if you really do mean to relay mail to a subdomain, which is what Sandy explained how to do.
Your question makes it seem like you only want to provide pop3 or imap on your main box for the others to collect their mail from, that's an entirely different setup.
Which is it really?
Im sorry for the confussion and will admit it is all mine. Ok .. I have a SuSE box with postfix collecting mail in via SMTP and sending it to user accounts on this same machine. This is machine libros on mydomain. So mail to someuser@libros.mydomain or mail to someuser@mydomain goes to someuser on that box. The DNS entry for mail to mydomain is all to the IP of this machine. Now I want to set up a mail account for a different machine, which is a Mac OS X machine. This is machine valencia and it has its own users. I want the users on valencia to get mail to their mail reader software that comes in to libros but is somehow sent to valencia. This is all in mydomain. So the questions are what software to use and what has to be done to postfix. I was thinking that I would need something like pop3 or imap for the mail to get to the valencia machine and the first question was what to use and what I have to do to postfix to use it. Sorry for the confussion and I will again admit it is all mine. Thanks for your continued help. john
On Saturday 02 July 2005 4:42 pm, John N. Alegre wrote:
Im sorry for the confussion and will admit it is all mine.
Ok .. I have a SuSE box with postfix collecting mail in via SMTP and sending it to user accounts on this same machine. This is machine libros on mydomain. So mail to someuser@libros.mydomain or mail to someuser@mydomain goes to someuser on that box. The DNS entry for mail to mydomain is all to the IP of this machine.
Now I want to set up a mail account for a different machine, which is a Mac OS X machine. This is machine valencia and it has its own users. I want the users on valencia to get mail to their mail reader software that comes in to libros but is somehow sent to valencia. This is all in mydomain. So the questions are what software to use and what has to be done to postfix.
OK, then your issue is really 'what to set up on that second machine', Sandy has already given you instructions on the changes for postfix on the SuSE machine so it passes the mail to the OSX machine.
I was thinking that I would need something like pop3 or imap for the mail to get to the valencia machine and the first question was what to use and what I have to do to postfix to use it.
You need to set up a server on the OSX machine to receive the mail that the SuSE machine relays to it. You also need a pop3 or imap server on that machine if you intend to let those users pop/imap their mail. Setting a mail server up on OSX is really an OSX topic, frankly, you will probably get more accurate and better advise from an OSX list than a SuSE list for the setup on that machine. The change to your SuSE box is simple, just follow Sandy's instructions. The hard work is all on the OSX box, good luck. Scott -- POPFile, the OpenSource EMail Classifier http://popfile.sourceforge.net/ Linux 2.6.11.4-21.7-default x86_64 SuSE Linux 9.3 (x86-64)
On 7/2/05, Scott Leighton
Setting a mail server up on OSX is really an OSX topic, frankly, you will probably get more accurate and better advise from an OSX list than a SuSE list for the setup on that machine.
You might want to give a look to Postfix Enabler for OS X. It's a nice UI frontend setup tool for OS X. Normally you'd get something like this with the server edition but the workstation has no such thing. It can edit all the files and whatnot for OS X so that PF behaves. It's shareware so it's $10 but WTF.. that's not that much to have tthe ease of use of the UI. You can also edit the files manually which is what did under 10.2 and 10.3. I'm just becoming lazy in my old age. :) http://www.cutedgesystems.com/software/PostfixEnabler/index.html - Ben -- "There is no need to teach that stars can fall out of the sky and land on a flat Earth in order to defend religious faith."
John N. Alegre wrote:
Ok .. I have a SuSE box with postfix collecting mail in via SMTP and sending it to user accounts on this same machine. This is machine libros on mydomain. So mail to someuser@libros.mydomain or mail to someuser@mydomain goes to someuser on that box. The DNS entry for mail to mydomain is all to the IP of this machine.
Now I want to set up a mail account for a different machine, which is a Mac OS X machine. This is machine valencia and it has its own users. I want the users on valencia to get mail to their mail reader software that comes in to libros but is somehow sent to valencia. This is all in mydomain. So the questions are what software to use and what has to be done to postfix.
Okay, so mail from the internet is received by postfix on server libros. Some of your users log in on libros itself and they can access their mail, others who do not log in on libros but some other server on your network can not access their mail. Is that the situation at the moment?
I was thinking that I would need something like pop3 or imap for the mail to get to the valencia machine and the first question was what to use and what I have to do to postfix to use it.
Actually, you don't need to move the mail to any other machine. You just use a service like imap to make the mail accessable to all the other users on the network, regardless on what machine they will log in. You just configure your mailclient with your susebox als smtp server for outgoing mail and with imap to access the stored mails on your server. The nice thing about imap is, that regardless the emails stay on the server and you can access the mail from any client on your network with just a few setting to set up the account. My network here at home is set up in such a way. I will admit it is ridiculously oversized for me alone, but it's just such a nice plaything I couldn't resist. (^-^) - Mails come in and are received by postfix - Postfix already performs some checks to fend off spammers and viruses - the rest of the mail is scanned by spamassassin and antivir - then it is delivered to Cyrus IMAP - Cyrus uses Sieve to filter the Mails into the proper folders. Postfix is configured to allow only TLS encrypted connections to relay for a user if he authenticates by SMTP Auth. That way you can also use your server at home or anywhere on the world where your have an internet connection. Cyrus also uses TLS encrypted connections to access the mails on the system. Please be aware that such a system is NOT trivial to set up and might be overkill for your office. You probably don't need all these options but the basic principle is what you probably want if you knew what imap means compared to pop. (^-^) Sandy -- List replies only please! Please address PMs to: news-reply (@) japantest (.) homelinux (.) com
John, Sandy: El Sáb 02 Jul 2005 19:12, Sandy Drobic escribió:
My network here at home is set up in such a way. I will admit it is ridiculously oversized for me alone, but it's just such a nice plaything I couldn't resist. (^-^)
- Mails come in and are received by postfix - Postfix already performs some checks to fend off spammers and viruses - the rest of the mail is scanned by spamassassin and antivir - then it is delivered to Cyrus IMAP - Cyrus uses Sieve to filter the Mails into the proper folders. (...) Please be aware that such a system is NOT trivial to set up and might be overkill for your office. You probably don't need all these options but the basic principle is what you probably want if you knew what imap means compared to pop. (^-^)
I find http://www.delouw.ch/linux/Postfix-Cyrus-Web-cyradm-HOWTO/html/index.html to be a very comprehensive howto to achieve a setup as described by Sandy. My company's email system is set up like that and has been running for over two years on a smallish 8.2 box. John, you might have a look and try and make it work. Regards, -- Andreas Philipp Noema Ltda. Bogotá, D.C. - Colombia http://www.noemasol.com
participants (6)
-
Andreas Philipp
-
Ben Rosenberg
-
John N. Alegre
-
Sandy Drobic
-
Scott Leighton
-
Ulf Rasch