Thursday, August 28, 2008

Ontario Old Licence Plates

Qmail Sendmail Options





purely for educational purposes of this guide, let's make some assumptions:

* The domain of our server is midominio.org. In any part of this guide appears in the string midominio.org, you should change the name of your email domain.
sysadmin sysadmin@midominio.org
* are respectively a shell account and an email account for management purposes. If you use other accounts for that purpose, you know, find and replace.

* CO, Cundinamarca and Bogotá correspond to my location. Modify as needed.

* The configuration file of Apache server has not been modified. If your DocumentRoot is different from / var / www / html, CGI's your directory is different from / var / www / cgi-bin, or changed other parameters need to modify the commands in the guide to fit your system. Remember: do not just copy and paste.




Prerequisites:

Red Hat Enterprise Linux 4 / Fedora Core 3 or 4 / CentOS 4.0, 4.1 or 4.2 (as I mentioned several times, this guide only covers the installation in these distributions, for others, see the Guide Qmailrocks original) with at least the following sets of packages:

gcc
gcc-c + +
make and configure
diff and pathutils
openssl and openssl-devel
apache
php
mysql
squirrelmail
expect
gdbm-devel
xinetd
openssl097a
perl
perl-suidperl



If your installation is minimal or very personalized, surely require many more packages. To avoid problems, I recommend using up2date, yum or apt-get for RPM. If you find any unit that is not listed here can let me know in the comments of this post along with your name / nick / nickname. Will update the guide and will give him credit for.
Software
NOT to be running or installed:

Services SMTP (Postfix, Exim)

Services Services POP3 IMAP Sendmail

can be installed. The guide explains how to uninstall it.


Qmailrocks
download and compile Qmail:

a terminal log in as root. Create the directory where you stored Qmail installer and other software to use, placed in that directory, download the installer and unzip the following commands:

mkdir / downloads
cd / downloads wget
http://www.qmailrocks. org / downloads / tar zxvf
qmailrocks.tar.gz qmailrocks.tar.gz



Run the script that automatically creates directories, users and special files, unzip the daemontools software and set the permissions necessary to run the command:

/ downloads/qmailrocks/scripts/install/qmr_install_linux-s1.script



Install patches to enable SMTP authentication features, TLS, user fees and other running the command:

/ downloads / qmailrocks / scripts / util / qmail_big_patches.script



Compile, install and configure Qmail running by running the following commands: cd

/ usr/src/qmail/qmail-1.03
make man & &
make setup check. / config-fast midominio.org



Generate certificate will encrypt the communication using TLS running the command: make cert





This is an example of the certificate settings, change as required:

Country Name (2 letter code) [GB]: State or Province CO
Name (full name) [Berkshire]: Locality Name
Cundinamarca (eg, city) [Newbury]: Organization Name
Bogotá (eg, company) [My Company Ltd]: My Institution
Organizational Unit Name (eg, section) []:
Systems Department Common Name (eg, your name or your server's hostname) []: midominio.org
Email Address []: sysadmin@midominio.org



Set the permissions of the certificate by running the command:

chown-R vpopmail: qmail / var / qmail / control / clientcert.pem / var / qmail / control / servercert.pem





Installing ucspi-tcp and daemontools:

Apply patch for RH 9/RHEL/Fedora/Slackware specific, build and install ucspi-tcp:

cd / usr/src/qmail/ucspi-tcp-0.88 /
patch < /downloads/qmailrocks/patches/ucspi-tcp-0.88.errno.patch
make & & make setup check



Apply patch for RH 9/RHEL/Fedora/Slackware specific, compile and install daemontools:

cd / package/admin/daemontools-0.76
cd / package/admin/daemontools-0.76/src
< /downloads/qmailrocks/patches/daemontools-0.76.errno.patch
patch cd / package/admin/daemontools-0.76
package / install



Run the command: ps

-
aux


and verify that the process being executed
svscanboot



Installing ezmlm and Autoresponder:

Unpack, compile and install ezmlm:

cd / downloads / qmailrocks /
tar zxvf ezmlm-0.53-idx-
0.41.tar.gz cd ezmlm-0.53-idx-0.41 make & & make
setup



Unpack, compile and install Autoresponder:

cd / downloads / qmailrocks
autoresponder-2.0.5.tar.gz tar zxvf cd

autoresponder-2.0.5 make & & make install





Vpopmail supported Installing MySQL: Set connection

MySQL for vpopmail running the following commands:

mkdir ~ vpopmail / etc chown
vpopmail: vchkpw ~ vpopmail / etc
echo "localhost running the following commands: chown vpopmail

: vchkpw ~ vpopmail / etc / chmod 640 ~ vpopmail.mysql
vpopmail / etc / vpopmail.mysql



Create the database and set the permissions to the user entering vpopmail as root to the MySQL console by running the command (request the password for the MySQL root user):

mysql-u root-p



in the MySQL console run the following SQL statements: CREATE DATABASE vpopmail

;
GRANT select, insert, update, delete, create, drop ON vpopmail .* TO vpopmail @ localhost IDENTIFIED BY 'password';



In the last command word password must be changed by the user password will vpopmail MySQL, then exit the console by running the command: quit





Testing vpopmail user data by running the command:

mysql-u vpopmail-p



After entering the password prompt will deploy the MySQL console, then exit the console by running the command: quit







Unpack, compile and install Vpopmail:

Run the following commands :

cd / downloads / qmailrocks
tar zxvf vpopmail-5.4.9.tar.gz cd vpopmail-5.4.9

. / Configure - enable-logging = p - enable-auth-module = mysql - disable-passwd - enable-clear-passwd - disable-many-domains - enable-auth-logging - enable- sql-logging - enable-worth - disable-mysql-limits
make & & make install-strip





Installing Vqadmin, maildrop and Qmailadmin:


Unpack, compile and install Vqadmin:

cd / downloads / qmailrocks
vqadmin-2.3.6.tar.gz tar zxvf cd

vqadmin-2.3.6. / configure - enable-cgibindir = / var / www / cgi-bin - enable-Htmldir = / var / www /
html make & & make install-strip



Modify the running Apache configuration the command:

vi / etc / httpd / conf / httpd.conf



and modify the section:


# # "/ var / www / cgi-bin" should be changed to whatever your
# CGI ScriptAliased directory exists, if You Have That configured.



# AllowOverride None Options None

Order allow, deny Allow from all





by:

# # "/ var / www / cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if You Have That configured.



# AllowOverride All Options None

Order allow, deny Allow from all





Note: Just change the word by word None All, but the section should be changed to / var / www / cgi-bin
then add the following to the end of the file: #

configuration for
Vqadmin


deny from all Options ExecCGI AllowOverride AuthConfig

Order deny, allow




Save the file and exit the editor. Edit the file
authentication vqadmin:

cd / var / www / cgi-bin / vqadmin /
vi. Htaccess



modify the contents of the file. Htaccess: AuthType


Basic AuthUserFile / usr / local / apache / conf / vqadmin.passwd
AuthName vQadmin

require valid-user Satisfy Any



to:


AuthType Basic AuthUserFile / var / www / passwords / .htpasswd AuthName
vQadmin
require valid-user Satisfy Any




Save the file and exit the editor.

Change the file permissions. Htaccess running the following commands: chown apache

.
htaccess chmod 644. Htaccess



Create the corresponding file that contains the user name and password encrypted access to running commands Vqadmin :

mkdir / var / www / passwords
htpasswd-bc / var / www / passwords / .htpasswd admin password



In the last command word password must be changed by the user password that will access Vqadmin

Modify the file permissions. Htpasswd running the following command:

chmod 644 / var / www / passwords / .htpasswd



Restart the Apache service using the command: service httpd restart





Vqadmin Test operation of opening a web browser URL and create the domain midominio.org:

http://midominio.org/cgi-bin/vqadmin/vqadmin.cgi



must deploy a authentication window and entering the access data previously set to appear Vqadmin main window. Click the "Add Domain" on the page that appears enter in the "Domain Name" value "midominio.org" in the "Postmaster Password" enter the domain administrator password. Click the "Add Domain".

Unpack, compile and install maildrop:

cd / downloads / qmailrocks
tar zxvf maildrop-1.6.3.tar.gz cd maildrop-1.6.3

. / Configure - prefix = / usr / local - exec -prefix = / usr / local - enable-maildrop-uid = root - enable-maildrop-gid = vchkpw - Enable-maildirquota
make & & make install-strip & & make install-man



Unpack, compile and install Qmailadmin:

cd / downloads / qmailrocks
tar zxvf qmailadmin-1.2.3.tar.gz cd qmailadmin

-1.2.3. / configure - enable-cgibindir = / var / www / cgi-bin - enable-Htmldir = / var / www / html
make & & make install-strip



Qmailadmin Test Setup opening a browser window and entering the URL:

http://midominio.org/cgi-bin/qmailadmin



If the installation was successful, you should see the login page
Qmailadmin


Finalizing Qmail installation: Run the script

completion of the installation of Qmail:

/ downloads / qmailrocks / scripts / finalize / linux / finalize_linux.script



Edit the file / var / qmail / supervise/qmail-pop3d/run running the command:

vi / var/qmail/supervise/qmail-pop3d/run



and change: mail.example.com





by:

mydomain. org



Save the file and exit the editor.

Edit the file / var / qmail / supervise / qmail-smtpd / run by running the command:

vi / var / qmail / supervise / qmail-smtpd / run



and change: mail.example.com





by:

midominio.org



Save the file and exit the editor.

Stop Qmail running the command: stop qmailctl





Establish a selective relay localhost by running the command: echo '127

.: Allow, RELAYCLIENT = "" '>> / etc / tcp.smtp
qmailctl cdb



alias Establish administrative Qmail running the command: echo

sysadmin@midominio.org> / var / qmail / alias / .qmail-root
sysadmin@midominio.org echo> / var / qmail / alias / .qmail-postmaster echo
sysadmin@midominio.org> / var / qmail / alias / .qmail-mailer-daemon



Create symbolic links and establish necessary permissions for administrative alias files by running the command:

ln-s / var / qmail / alias / .qmail-root / var / qmail / alias /
.qmail-anonymous chmod 644 / var / qmail / alias /. qmail *





Uninstalling Sendmail:

Search sendmail installation packages in the RPM database by running the command:

rpm-qa command should look like this: sendmail-8.13.4

-2
sendmail-cf-8.13.4-2



Stop and uninstall the service by running the command sendmail: service sendmail stop


rpm-e -
sendmail-nodeps rpm-e - nodeps sendmail-cf



Create symbolic links below to the qmail sendmail by running the command:

ln-s / var / qmail / bin / sendmail / usr / lib /
sendmail ln-s / var / qmail / bin / sendmail / usr / sbin / sendmail





Final Test:

Run the script that verifies the installation of Qmail:

/ downloads / qmailrocks / scripts / util / qmr_inst_check



shall receive the message:

Congratulations, your Qmailrocks.org Qmail installation looks good!



verify the correct implementation of Qmail running the command:

qmailctl
qmailctl stop start stat

qmailctl


should get output like this:

/ service / qmail-send: up (pid 29956)
2 seconds / service / qmail-send / log: up (pid 29960) 2 seconds
/ service / qmail-smtpd: up (pid 29963) 2 seconds
/ service / qmail-smtpd / log: up (pid 29968) 2 seconds
/ service/qmail-pop3d: up (pid 29971) 2 seconds
/ service/qmail-pop3d/log: up (pid 29972) 2 seconds messages in queue
: 0 messages in queue
But Not yet preprocessed: 0



Test your POP3 service by running the command: telnet localhost 110





the server must respond with an output like this:

Trying 127.0.0.1 ...
Connected to localhost.localdomain (127.0.0.1). Escape character is'^]'.

+ OK




type the following and press Enter: user
postmaster@midominio.org



<26343.1130771165@midominio.org> the server should respond with an output like this: + OK





type the following and press Enter: password pass





In the last command word password must be changed to the password that was assigned to the user domain postmaster midominio.org. The server should respond with an output like this: + OK





type the following and press Enter:





quit the server should respond with an output like this: + OK


Connection closed by foreign host.



Test your SMTP service and TLS encryption capability by running the command: telnet localhost

25



the server should respond with an output like this:

Trying 127.0.0.1 ...
Connected to localhost.localdomain (127.0.0.1). Escape character is'^]'.
220
midominio.org ESMTP



type the following and press Enter: ehlo localhost





the server must respond with the following output: 250-midominio.org


250-AUTH LOGIN
CRAM-MD5 PLAIN LOGIN 250-AUTH = CRAM-MD5 PLAIN
250-STARTTLS
250-PIPELINING
250 8BITMIME



250-STARTTLS verify that the line is displayed, as it informs the ability to encrypt communications e-mail using TLS. Afterwards type the following and press Enter:

starttls



the server should respond with an output like this:

220 ready for tls



run twice the command: quit





the server must respond with the following output and close the connection:

Connection closed by foreign host.





Congratulations!

If you've gotten this far without problems, you have a mail server with Qmail fully functional.

as you do not need other features Qmailrocks offering, consider the work as completed successfully.

If you want to install other features, the next step is to consult the second film (as yet unpublished).

Update: Thanks to David Souter for their corrections on the Apache configuration to Vqadmin. Alejandro Rincon Linares


alejandro corner {dot} {at} gmail {dot} com

all the guide was extracted from

linuxiando a while



Friday, August 22, 2008

Messages Of Thanks For Marriage

hidden Mac OS X






Defaults is an online tool BSD systems commands (which first appeared in NeXTStep) that allows access preferences and user settings in Mac OS X. You can type man defaults from Terminal to learn more about it. with defaults Modifications take effect only if the application whose configuration change is closed. defaults write command writes a value in a key file settings (plist - Property List). Using Terminal, type the command defaults write dominio_de_aplicación
key value. For example



com.apple.finder AppleShowAllFiles defaults write TRUE TRUE

changes the value of property in the Finder "Show all files" so that hidden files are shown.

Some useful modifications can be performed using defaults write are: defaults write com.apple.finder

AppleShowAllFiles
TRUE FALSE defaults write com.apple.finder AppleShowAllFiles
(Show / hide invisible files in the Finder)

defaults com.apple.Safari write WebKitHistoryItemLimit 20
(number of items in the history of Safari: 20)

defaults write com.apple.Safari
WebKitHistoryAgeInDaysLimit 1 (Number of days saved in the history of Safari)

com.apple.CrashReporter DialogType defaults write none
defaults DialogType com.apple.CrashReporter write prompt
(whether or not to send error dialog)

com.apple.mail PreferPlainText defaults write-bool TRUE
com.apple.mail PreferPlainText defaults write-bool FALSE
(e-Mail default plain text)

NSNavPanelExpandedStateForSaveMode defaults write-g-bool TRUE; killall Finder defaults write-g
NSNavPanelExpandedStateForSaveMode-bool FALSE; killall
Finder (Show dialogs to save files in extended mode, restart Finder)

defaults write com.apple.terminal TerminalOpaqueness
0.0 1.0 defaults write com.apple.terminal TerminalOpaqueness
(Transparency of the Terminal window, ranging from 0.0 to 1.0 ; restart Terminal)

defaults write com.apple.desktopservices DSDontWriteNetworkStores
defaults write TRUE FALSE com.apple.desktopservices DSDontWriteNetworkStores
(Avoid creating files. DS_Store on Windows servers)

com.apple.finder QuitMenuItem defaults write-boolean YES; killall Finder defaults write com.apple.finder
QuitMenuItem-boolean YES; killall Finder
(Show the Exit menu in the Finder, restart Finder)

com.apple.dock launchanim defaults write-boolean NO; killall Dock defaults write com.apple.dock
launchanim-boolean YES; killall Dock
(Animate Dock icons, restart Dock)


Complete Collection