Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hi actually I am new linux user, I have started a job 2 weeks ago, they wanna me to configure a mail server, which will be postfix.
the company ,hosting company,is located in Germany,but our country diffrent, so the boss wanna have a server also in our country, like a backup , if thare will be a connection problem between the companies, the server on our country wiill be work,
I have found a lot of ebooks,visit a lot of sites including postfix.org, actually I coudult understand ,I know I shouldnt hope that you explain step by step , it wuld be miracle, I know you have not so much time, just I wonder which configuration type will be used, I am confused , a lot of configuration methods, mail server like gateway, mail server with multiple domains, etc ,
I dont understand anything about mysystem
I configured many times just described in tutorials, none of them worked
now sendmail removed , and postfix installed well,
service postfix status---> running
chkconfig --list postfix..--> 0123456 all on
and
mail example@hotmail.com ---> will be no warning but nothing happened in mailbox no new mail in hotmail, or anaother email address
If you could post your config and the errors you are receiving, as well as exactly how you're trying to set this server up, it will be much easier to help you.
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
Are you trying to set up a local mail server? That is a server, which only works on your local network. Or, are you setting up an internet mail server, which can send to, and receive from external mail servers. If you setting up an internet mail server, for all email usage, you won't be able to send and receive with external servers unless you have a domain. If your company has a domain, hosted on the machine you are working on, use that as the end of your email addresses. Say your companies name is:
Thank you for replies, let me explain in brief way..
We have hosting company that gives and locates mail server in German, the boss wants to be also located the mail server in our country,
I wonder which method will be used, and in confuguration for example our IP let be IPHOME/24, and the mail server located in german hosting company is IPGER/24, and in our company there is a gateway so the mail server that I wanna to build in pc uses reserved IP, so
mydomain=example.com
myhost=mail.example.com --> in here host referes the pc in our company or german, is it so important ?because I wanna receive and send emails to the all email adress not only in a network,but also hotmail, yahoo, etc.
mynetworks=.....,127.0.0.0/8 ----> in here ... should be IPHOME or IPGER, which will be used, if I use IPHOME itis reserved address how I can receive emails from outside, cause there is a gatewayi should I configure gateway adjustments and how
I know a lot of questions, and answers , I am really in desprate mood, I only hope that I can find answer from forum sites, because there a lot of people that knows rightly and experinced about linux, please help to me find out this problem, thank you so much
you see we are not really clear as to what is it that you want to achieve. Are you trying to replicate the mail server in Germany at your place as a fallback strategy. if that's the case, you need full cooperation from your german counterparts.
As for only configuring a simple mail server for your own domain, its pretty much straight forward and any howto would pretty much suffice you to build one.
sorry I cant be so clear , because I am really stressful, I couldnt explain well, they want me to buid a mail server now that can work such as mail server in germany,now they want to have mail server in our country, not germany, they said me to, buşld a mail server, we will elimate the server in germany, the server that I am trying to build now,will be only mail server.I have no idea what I am talking about, its so complex for me, sorry for take your time, if I still cant tell what they want, please forget,I dont wanna take your time much more, thank you for replies, its my mistake that I couldnt explain, anyway if I will understand this, before they will fire me, I will definetely write "How Postfix Mail server build, which confuguration you need FOR DUMMIES but for really dummies"
take care
bye
Quick install process:
Copy all packages to /usr/local/src/ and unpacked
cp *.gz /usr/local/src/
tar zxvf qmail-1.03.tar.gz
tar zxvf checkpassword-0.90.tar.gz
tar zxvf daemontools-0.70.tar.gz
tar zxvf ucspi-tcp-0.88.tar.gz
thak you for comment
they want me to build postfix mailserver, because the german company uses that confuguration, qmail is so diffrent may I understand and follow the steps and configure postfix by that way?
thak you for comment
they want me to build postfix mailserver, because the german company uses that confuguration, qmail is so diffrent may I understand and follow the steps and configure postfix by that way?
no you cannot use the same howto to build postfix. search for 'postfix howto' if you have to build a postfix server.
hi again, I have found the configuration in the server at located in germany , I connected from putty to the server and looked main.cf in postfix at the server, I wrote almost same to the main.cf to my server , but now there is nothing again, I install Mailman and configure at there, and try to send a mail from there, it says The message sent succesfully, but there is no message at the client that I sent,also I sent message to a local user but there is no message in that user,(additionally when I try to send mail from Mailman(127.0.0.0:10000) it shows the email address test@mail.example.com although I wrote myorigin=$mydomain)
in the server at the located in german , when you create a user,Maildir(when you sent a message) and public_html occurs in the user directory, but for my server it cannot be occured, how I am gonna fixed it, have you any idea configuration is below
(our compnay doesnt use dns, I show the dns that example.com uses, and our internet is local area network, we have a gateway, just simple robotics modem)
First, copy this main.cf to main.cf.sav. Find a clean copy of the default main.cf and make as few changes as possible, for example setting mydomain. See if you can get the basics working before you start playing with maps and other more complicated parts of Postfix.
On the subject of maps, do you have the map files you refer to on the system (canonical, transport, etc - check for each map, and "access" too)? If so, remember that you need to run postmap on each file to create the database (eg postmap /etc/postfix/canonical). Once done, you should see a file in /etc/postfix called canonical.db and so on.
Second, forget mailman until your basic setup works.
Third, from terminal, type
#mail -s test your_username_here
then <ctrl>d a couple of times to send a mail to yourself.
See if it turns up. If not, post the output of
#tail -20 /var/log/maillog
If it does work, start adding the more complicated stuff to your main.cf, one bit at a time, so if you break something, you know what did it. Take a copy of main.cf as a backup each time.
By the way, there is another configuration file you need to remember - master.cf. Make sure the one used on the example server in Germany (the one you copied main.cf from) is the same as yours. It probably is, but make sure (don't just copy it, read it).
Look at www.postfix.org. It's got grreat information on it, and a couple of the guys linked to on the site have written specific postfix books that may be helpful. However as basic postfix setup is pretty simple, so get that working and add your bells and whistles.
Remember your logfile is your best friend here (/var/log/maillog)
Edit - when you get to virual aliasing, make sure that the domains in the virtual map are not to example.com - you can't have the same domain in vitual aliases as mydestination
Edit 2 - with respect to "it shows the email address test@mail.example.com although I wrote myorigin=$mydomain", where are you seeing this - in mailman? You say you aren't getting messages through. I'd suggest this is a mailman setup issue if what I assume is correct.
Last edited by billymayday; 07-26-2006 at 02:48 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.