Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 19th July 2006, 16:16
hopeless hopeless is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Red face Please help , I am gonna be fired...

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

pls help , just comment will be great for me...
Reply With Quote
Sponsored Links
  #2  
Old 19th July 2006, 17:27
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,035
Thanks: 267
Thanked 153 Times in 133 Posts
Default

Try sending stuff (test emails) to a NON hotmail account! (gmail will do fine)

If you have NO correct SPF record, and if the domain is not "white listed" for hotmail no email will ever arrive in hotmail!
That is.. In the IN box.. You might find some test emails in the "bulk" box!
Reply With Quote
  #3  
Old 19th July 2006, 17:46
Tortanick Tortanick is offline
Member
 
Join Date: Mar 2006
Posts: 48
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Why is your company asking a new linux user to run a mailserver? Beside the point.

Have you tried following falco's guide, its litrally copy and paste into the command line untill you have a server.

http://www.howtoforge.com/virtual_po..._quota_courier

It won't explain how to syncronise the users & passwords, or other stuff designed primarally for running a backup, but it will get you a working server.

And as edge said, get a SPF record, your webmaster will probobly know about that.

Last edited by Tortanick; 19th July 2006 at 23:07.
Reply With Quote
  #4  
Old 20th July 2006, 08:28
hopeless hopeless is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #5  
Old 20th July 2006, 13:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

So you want to have a backup mail exchanger so that when your server in Germany goes down, emails arrive on your other mail server which then delivers the mails to the server in Germany when it's back online again?
Have a look here: http://www.howtoforge.com/traditional_dns_howto (especially page 4) and http://bobcares.com/article3.html
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 26th July 2006, 13:21
hopeless hopeless is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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)

mydomain = example.com
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_maps = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender,header_sender,header_recipient
myhostname = mail.example.com
program_directory = /usr/lib/postfix
inet_interfaces = all
masquerade_domains = example.com
mydestination = $mydomain mail.example.com localhost.$mydomain localhost
defer_transports =
disable_dns_lookups = no
relayhost =
content_filter = vscan:
mailbox_command =
mailbox_transport =
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination,check_relay_domains,permit
smtp_sasl_auth_enable = no
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = no
smtpd_sasl_local_domain =
Reply With Quote
  #7  
Old 27th July 2006, 12:54
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What about my previous question?
Quote:
Originally Posted by falko
So you want to have a backup mail exchanger so that when your server in Germany goes down, emails arrive on your other mail server which then delivers the mails to the server in Germany when it's back online again?
What exactly is the purpose of your new mailserver?

Quote:
Originally Posted by hopeless
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
Try to change the value of myhostname.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #8  
Old 27th July 2006, 15:45
hopeless hopeless is offline
Junior Member
 
Join Date: Jul 2006
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi falko , I figured out the postfix configuration, now I can send messages finallay, thank you so much for your helps , now I trying to secure the mail server , I actuallly know nothing about security, first off all, I try to learn Smtp server, I read but why iti important I couldnt understand now I am trying to make a key, cert file, I created one
#cat cakey.pem newreq.pem > mykey.pem
it gave an error
cat:newreq.pem : No such file directory
I think the installation guide, that I read, was for previous versions
but although it gave error, now I can see in the directory , mykey.pem cert file occured, and when open with cat command I saw encrypted version
I think it occured
now how I configure in main.cf
in old version of main.cf in germany server its written like::

smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination,
check_relay_domains,permit
smtp_sasl_auth_enable = no
smtpd_sasl_security_options = noanonymous
smtpd_sasl_auth_enable = yes
smtpd_tls_auth_only = no
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_use_tls=yes
smtpd_tls_cert_file = /etc/postfix/mydomain.crt
smtpd_tls_key_file = /etc/postfix/mydomain.key
smtpd_use_tls=no

above sometimes a term repated one more time, for example the red ones, have you any idea, or any reference that you can prefer to me read
thank you
Reply With Quote
  #9  
Old 28th July 2006, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

Have a look here:
http://wiki.cacert.org/wiki/PostfixC...=%28postfix%29
http://postfix.state-of-mind.de/patr...s_support.html
http://www.postfix.org/TLS_README.html#quick-start
That should give you an idea.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 16:44.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.