FTP Setup (VSFTPD)

Posted on March 22, 2007 by nseidm1.
Categories: vsftpd.

As with all my suggestions do a yum or apt-get install “yum install vsftpd” or “apt-get install vsftpd”. The vsftpd configuration file is in /etc/vsftpd/vsftpd.conf. You can organize things nicely, and find the correct lines to edit, but order is not important. I add all my configuration lines right to the top of the configuration file. To make things simple for your ftp users, your going to probably want the user to automatically login into their root directory. To do this add the line “chroot_local_user=YES”. Another thing that I like to do for added security is the following; because vsftpd uses two ports (21 for the initial connection, and then a HIGH port for the data connection), you should specify the data connection port. You can do this by adding the lines “pasv_min_port=*****, and pasv_max_port=*****”. You can set the ***** to any port, or ports that you want. Remeber, if you want to allow multiple ftp users to log in at the same time you will have to allow multiple ports. Also remeber that what ever ports you choose you will have to allow through your router via port forwarding!!! You will also have to allow port 21 through port forwarding. Another important configuration is to disable anonymous; do this by finding the line “anonymous_user=YES” and change the YES to NO. Don’t comment or delete the line as anonymous access is on by default, specify NO explicitly. Also make sure the “listen=YES” line is not commented. BAM your ftp is setup. Login to start FTP’in!

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati

Dovecot Installation and Configuration

Posted on by nseidm1.
Categories: Dovecot.

For a server to send and receive mail it requires Sendmail, for a user to interact with the mail POP or IMAP access is a convenient feature. Dovecot is a simple IMAP, and POP piece of software. I recommend, as I always do, install using yum, or apt-get. Once installed the configuration file should simply be in the /etc directory with a filename of dovecot.conf. In the configuration file there is little that needs editing, the first and foremost you going to want to define the services you want the program to perform. This is done with the “protocols”. I prefer IMAP, which runs on port 143. Remeber, if you have SELinux install you are going to have to disable it for the Dovecot service to properly access the server. Go into your “system” menu in the main navigation, go into the administration submenu, and open Security Level and Firewall configuration (obviously this is for a graphical desktop associated with Fedora Core, or Ubuntu). In your Firewall/SELinux configuration window click the SELinux tab, expand modify SELinux, scroll down and expand the SELinux Service Protection tab, and then scroll down and click the distable SELinux protection for Dovecot. Also if you have a router you will have to enable port forwarding for port 143 to the local IP address of the server.

Now go back to the /etc/dovecot.conf file for final configuration. Make sure there is a line “listen = *:143″. If you want to be specific instead of the “*” you can put the local IP address, but a “*” will suffice. The only other configuration that you will have to do is specify where the mailboxes will be kept. This is simply done with a single line “mail_location = mbox:~/mail:INBOX=/var/mail/%u”. With this mailbox setup your servers users will have a mailbox that is auto-configured with Sendmail. All mail sent to the email addresses set up by sendmail can be accessed via a IMAP or POP Dovecot interface.

As with all my posts feel welcome to give an email to admin [at] bgevolution.com if you run into any issues.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati

Sendmail Configuration

Posted on March 20, 2007 by nseidm1.
Categories: Sendmail.

Sendmail is a simple MTA (mail transport agent). There are two programs that are required to access email, a MTA and either an IMAP or POP. The MTA allows a computer to send and receive emails, while the IMAP or the POP allows for the reading of the mail. Start with a simple yum or apt-get install. In Fedora Core there is an auto yum program in the applications menu; access this an add in the server options “sendmail”. It will automatically install all dependancies. After installed, make sure it runs at boot, and start the program. In Fedora Core go to the system menu and select administration - services. In the services make sure the sendmail checkbox is clicked and then also make sure it is started. Now for configuration. There is practically nothing that has to be done, all you have to do is go into the /etc/mail/local-host-names file, open it, and add the domain name or the ip address of your computer/server. Save and close, and now open the virtusertable file, add the email address that you want to accept mail to. The proper format is:

example@exampledomain.com user

The first is the email address and then a tab, then the user that is going to receive the email. If you have multiple email addresses make sure they all line (tab wise):

example@exampledomain.com     user1

example2@exampledomain.com  user2

ex@tempdomain.com                     user3

Save the file and close. Now open the Sendmail.mc file. You must now tell Sendmail to access port 25 on your system, and its default configuration is to only look on the local network. Go to the DAEMON_OPTIONS line that is not commented with (dnl), and change it to DAEMON_OPTIONS(`Port-smtp,Name=MTA’ )dnl . Now csave the file and close. Go into a terminal change to the sendmail configuration directory (cd /etc/mail) and type “make”. Now type “service sendmail restart”. BAM you have send mail working. Make sure your firewall allows the SMTP port. Go into the systems menu, select
administration - Security Level and Firewall. In this click the Mail (SMTP) box, and close the window. You will also have to make sure that your router directs port 25 to the computer/server. You will have to use port forwarding and forward port 25 to the local IP address of your computer/server.

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati

Cband Apache Bandwidth Throttling

Posted on March 19, 2007 by nseidm1.
Categories: Apache, cband.

A quick link to a perfect tutorial.

http://howtoforge.com/mod_cband_apache2_bandwidth_quota_throttling

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • NewsVine
  • StumbleUpon
  • Technorati