I was running my old mail server with sendmail, cubemail, dovecot IMAP and had a separate web calendar to store events. I recently bought a new machine where I am running a bunch of virtual machines and I setup one of the virtual machines as my zimbra server.
I got the server up and running but gmail and yahoo would not accept my email since it came from a home ip address. On my old server I was relaying my mail using my ISP. I remember I had to use smtp-auth with my provider but the instructions that worked with sendmail do no apply to Zimbra.
I also followed some instruction for postfix but they didn’t work either so I found this guide on the zimbra wiki. I followed it and everything worked fine :)
I am saving it here if I should ever migrate the server or for future reference.
Read the rest of this entry »
Posted by tepezcuintle as Uncategorized at 11:31 PM CST
No Comments »
An important tool for debugging PostgreSQL performance issues is the ability to view all the currently executing queries. Thankfully this is easy to do. Read on for how.
Configuration
Storing of query strings is usually disabled in PostgreSQL by default. To enable it, use this line in your postgresql.conf
Read the rest of this entry »
Posted by tepezcuintle as Databases at 8:13 PM CST
No Comments »
The Lsof Command is a great tool to troubleshoot your linux box. Check out these instructions that have saved me in the past
Problem:
You have a service that cannot bind to a port and the only message you have in log files is ‘port already in use’ or you have a need to find out exactly what processes are currently manipulating your server and what files they are affecting.
Read the rest of this entry »
Posted by tepezcuintle as General Linux at 5:29 PM CST
Comments Off
But SELinux can sometimes get
in your way. For example, I have had typical services, such as Apache, appear
to start up correctly, but remain inaccessible from the outside world because
I forgot to allow the apache user rights to open that port or maybe my distro
forgot about it. Before you turn off SELinux make sure you know why
you are turning it off and the security concerns you might be opening yourself
up to.
Read the rest of this entry »
Posted by tepezcuintle as General Linux at 8:37 PM CST
No Comments »
The files you just uploaded to your server are a mess. The original author used a Windows machine and now they all look like this:
#header div {^M
padding-top: 50px;^M
}^M
#header div a {^M
font-size: 24px;^M
color: #fdfdfd;^M
font-weight: bold;^M
…and so on. If you’re like me you’ve found a few hundred Perl scripts to do this. I don’t know why, but I was never a fan of that method. So without further ado, I would like to introduce you to another candidate: the “tr” command, or the translate command. tr takes characters from the standard input stream, processes them, and the writes to the standard output. This means we can use all our favorite Linux/BSD command and just pipe and redirect our way to results.
Using tr’s -d (delete) option we can simply tell tr that we’re wishing to delete any occurrence of “\r” which is being displayed as ^M in your files. Here’s the super-simple command, using our old friend cat:
# cat file | tr -d "\r" > newfile
So have fun, and remember, if you’re sending these files up using FTP you can skip this step by doing an ASCII upload instead of a binary upload.
Posted by tepezcuintle as General Linux at 3:24 PM CST
No Comments »
SEARCHING FOR ENTRIES USING LDAP SEARCH
You can find entries in your directory using any LDAP client. Most clients provide some form of a search interface that allows you to easily search the directory and retrieve entry information.
Note.
You cannot search the directory unless the appropriate access control has been set in your directory. For information on setting access control in your directory, see
Read the rest of this entry »
Posted by tepezcuintle as Work Related at 4:15 PM CDT
No Comments »
ldapmodify and ldapadd utilities
The ldapmodify utility allows you to change entries or add entries to the LDAP directory server from the QSH command shell on your system. It uses the ldap_modify, ldap_add, and ldap_delete application program interfaces (APIs). The ldapadd utility works almost identically to the ldapmodify utility with the exception that the -a flag is turned on automatically.
Format:
Read the rest of this entry »
Posted by tepezcuintle as Advanced Stuff at 3:14 PM CDT
Comments Off
`date’: Print or set system date and time
=========================================
`date’ with no arguments prints the current time and date, in the
format of the `%c’ directive (described below). Synopses:
date [OPTION]… [+FORMAT]
date [-u|--utc|--universal] [ MMDDhhmm[[CC]YY][.ss] ]
If given an argument that starts with a `+’, `date’ prints the
current time and date (or the time and date specified by the `–date’
option, see below) in the format defined by that argument, which is the
same as in the `strftime’ function. Except for directives, which start
with `%’, characters in the format string are printed unchanged. The
directives are described below.
* Menu:
* Time directives:: %[HIklMprsSTXzZ]
* Date directives:: %[aAbBcdDhjmUwWxyY]
* Literal directives:: %[%nt]
* Padding:: Pad with zeroes, spaces (%_), or nothing (%-).
* Setting the time:: Changing the system clock.
* Options for date:: Instead of the current time.
* Examples of date:: Examples.
********* From the Man Pages *****************************
DESCRIPTION
Display the current time in the given FORMAT, or set the system date.
-d, –date=STRING
display time described by STRING, not `now’
-f, –file=DATEFILE
like –date once for each line of DATEFILE
-I, –iso-8601[=TIMESPEC] output an ISO-8601 compliant date/time string.
TIMESPEC=`date’ (or missing) for date only, `hours’, `minutes’, or `seconds’ for date and time to the indi-
cated precision.
-r, –reference=FILE
display the last modification time of FILE
-R, –rfc-822
output RFC-822 compliant date string
-s, –set=STRING
set time described by STRING
-u, –utc, –universal
print or set Coordinated Universal Time
–help display this help and exit
–version
output version information and exit
Read the rest of this entry »
Posted by tepezcuintle as General Linux at 2:00 PM CDT
No Comments »
Getting to Know Joe
Who (or what) is Joe?
Starting Joe
Getting Help
Exiting
Working with Blocks of Text
Mark Beginning
Mark End
Delete
Move
Copy
Write
Making Joe the Default Editor
Quick Reference
Movement
Find and Replace
Block
Deleting
Miscellaneous
Window Control
Macros
File Functions
Exit
Read the rest of this entry »
Posted by tepezcuintle as General Linux at 6:30 PM CDT
No Comments »

ldapsearch Command
Purpose
Opens a connection to an LDAP server, binds, and performs a search using the filter filter.
Syntax
ldapsearch [-a ][-A ][-b basedn][-B][-C][-d][-D ][-e ][-f][-F][-G][-h][-i][-k][-K][-l][-L][-m][-M][-n][-N][-o][-O][-p][-P][-q][-R][-s][-t][-T][-U][-v][-V][-w][-y][-Y][-z ][-Z][-9] filter [attributes...]
where basedn equals the base distinguished name for the search, filter equals the LDAP search filter, options equals any other flags, and attributes equals a whitespace–separated list of attributes to retrieve. If no attribute list is specified, all attributes are retrieved.
Note:
basedn is optional if LDAP_BASEDN is set in the environment.
Description
If the ldapsearch command finds one or more entries, the attributes specified by attrs are retrieved and the entries and values are printed to standard output. If no attrs are listed, all attributes are returned.
Read the rest of this entry »
Posted by tepezcuintle as General Linux at 3:51 PM CDT
No Comments »