Secretion is the movement of material from one point to another, such as a secreted chemical substance from a cell or gland. In contrast, excretion is the removal of certain substances or waste products from a cell or organism. The classical mechanism of cell secretion is via secretory portals at the plasma membrane called porosomes.  Porosomes are permanent cup-shaped lipoprotein structures embedded in the cell membrane, where secretory vesicles transiently dock and fuse to release intra-vesicular contents from the cell.
Secretion in bacterial species means the transport or translocation of effector molecules for example: proteins, enzymes or toxins (such as cholera toxin in pathogenic bacteria e.g. Vibrio cholerae) from across the interior ( cytoplasm or cytosol) of a bacterial cell to its exterior. Secretion is a very important mechanism in bacterial functioning and operation in their natural surrounding environment for adaptation and survival.
Eukaryotic cells, including human cells, have a highly evolved process of secretion. Proteins targeted for the outside are synthesized by ribosomes docked to the rough endoplasmic reticulum (ER). As they are synthesized, these proteins translocate into the ER lumen, where they are glycosylated and where molecular chaperones aid protein folding. Misfolded proteins are usually identified here and retrotranslocated by ER-associated degradation to the cytosol, where they are degraded by a proteasome. The vesicles containing the properly folded proteins then enter the Golgi apparatus.
In the Golgi apparatus, the glycosylation of the proteins is modified and further post-translational modifications, including cleavage and functionalization, may occur. The proteins are then moved into secretory vesicles which travel along the cytoskeleton to the edge of the cell. More modification can occur in the secretory vesicles (for example insulin is cleaved from proinsulin in the secretory vesicles).
Eventually, there is vesicle fusion with the cell membrane at porosomes, by a process called exocytosis, dumping its contents out of the cell's environment. 
Strict biochemical control is maintained over this sequence by usage of a pH gradient: the pH of the cytosol is 7.4, the ER's pH is 7.0, and the cis-golgi has a pH of 6.5. Secretory vesicles have pHs ranging between 5.0 and 6.0; some secretory vesicles evolve into lysosomes, which have a pH of 4.8.
There are many proteins like FGF1 (aFGF), FGF2 (bFGF), interleukin-1 (IL1) etc. which do not have a signal sequence. They do not use the classical ER-Golgi pathway. These are secreted through various nonclassical pathways.
At least four nonclassical (unconventional) protein secretion pathways have been described.  They include:
In addition, proteins can be released from cells by mechanical or physiological wounding  and through non-lethal, transient oncotic pores in the plasma membrane induced by washing cells with serum-free media or buffers. 
Many human cell types have the ability to be secretory cells. They have a well-developed endoplasmic reticulum, and Golgi apparatus to fulfill this function. Tissues that produce secretions include the gastrointestinal tract which secretes digestive enzymes and gastric acid, the lungs which secrete surfactants, and sebaceous glands which secrete sebum to lubricate the skin and hair. Meibomian glands in the eyelid secrete meibum to lubricate and protect the eye.
Secretion is not unique to eukaryotes - it is also present in bacteria and archaea as well. ATP binding cassette (ABC) type transporters are common to the three domains of life. Some secreted proteins are translocated across the cytoplasmic membrane by the SecYEG translocon, one of two translocation systems, which requires the presence of an N-terminal signal peptide on the secreted protein. Others are translocated across the cytoplasmic membrane by the twin-arginine translocation pathway (Tat). Gram-negative bacteria have two membranes, thus making secretion topologically more complex. There are at least six specialized secretion systems in gram-negative bacteria. Many secreted proteins are particularly important in bacterial pathogenesis. 
Type I secretion is a chaperone dependent secretion system employing the Hly and Tol gene clusters. The process begins as a leader sequence on the protein to be secreted is recognized by HlyA and binds HlyB on the membrane. This signal sequence is extremely specific for the ABC transporter. The HlyAB complex stimulates HlyD which begins to uncoil and reaches the outer membrane where TolC recognizes a terminal molecule or signal on HlyD. HlyD recruits TolC to the inner membrane and HlyA is excreted outside of the outer membrane via a long-tunnel protein channel.
Type I secretion system transports various molecules, from ions, drugs, to proteins of various sizes (20 – 900 kDa). The molecules secreted vary in size from the small Escherichia coli peptide colicin V, (10 kDa) to the Pseudomonas fluorescens cell adhesion protein LapA of 520 kDa.  The best characterized are the RTX toxins and the lipases. Type I secretion is also involved in export of non-proteinaceous substrates like cyclic β-glucans and polysaccharides.
Proteins secreted through the type II system, or main terminal branch of the general secretory pathway, depend on the Sec or Tat system for initial transport into the periplasm. Once there, they pass through the outer membrane via a multimeric (12–14 subunits) complex of pore forming secretin proteins. In addition to the secretin protein, 10–15 other inner and outer membrane proteins compose the full secretion apparatus, many with as yet unknown function. Gram-negative type IV pili use a modified version of the type II system for their biogenesis, and in some cases certain proteins are shared between a pilus complex and type II system within a single bacterial species.
It is homologous to the basal body in bacterial flagella. It is like a molecular syringe through which a bacterium (e.g. certain types of Salmonella, Shigella, Yersinia, Vibrio) can inject proteins into eukaryotic cells. The low Ca2+ concentration in the cytosol opens the gate that regulates T3SS. One such mechanism to detect low calcium concentration has been illustrated by the lcrV (Low Calcium Response) antigen utilized by Yersinia pestis, which is used to detect low calcium concentrations and elicits T3SS attachment. The Hrp system in plant pathogens inject harpins and pathogen effector proteins through similar mechanisms into plants. This secretion system was first discovered in Yersinia pestis and showed that toxins could be injected directly from the bacterial cytoplasm into the cytoplasm of its host's cells rather than simply be secreted into the extracellular medium. 
|SCOP2||1gl7 / SCOPe / SUPFAM|
It is homologous to conjugation machinery of bacteria, the conjugative pili. It is capable of transporting both DNA and proteins. It was discovered in Agrobacterium tumefaciens, which uses this system to introduce the T-DNA portion of the Ti plasmid into the plant host, which in turn causes the affected area to develop into a crown gall (tumor). Helicobacter pylori uses a type IV secretion system to deliver CagA into gastric epithelial cells, which is associated with gastric carcinogenesis.  Bordetella pertussis, the causative agent of whooping cough, secretes the pertussis toxin partly through the type IV system. Legionella pneumophila, the causing agent of legionellosis (Legionnaires' disease) utilizes a type IVB secretion system, known as the icm/dot (intracellular multiplication / defect in organelle trafficking genes) system, to translocate numerous effector proteins into its eukaryotic host.  The prototypic Type IVA secretion system is the VirB complex of Agrobacterium tumefaciens. 
Protein members of this family are components of the type IV secretion system. They mediate intracellular transfer of macromolecules via a mechanism ancestrally related to that of bacterial conjugation machineries.  
In short, Type IV secretion system (T4SS), is the general mechanism by which bacterial cells secrete or take up macromolecules. Their precise mechanism remains unknown. T4SS is encoded on Gram-negative conjugative elements in bacteria.T4SS are cell envelope-spanning complexes or in other words 11–13 core proteins that form a channel through which DNA and proteins can travel from the cytoplasm of the donor cell to the cytoplasm of the recipient cell. Additionally, T4SS also secrete virulence factor proteins directly into host cells as well as taking up DNA from the medium during natural transformation, which shows the versatility of this macromolecular secretion apparatus. 
As shown in the above figure, TraC, in particular consists of a three helix bundle and a loose globular appendage. 
T4SS has two effector proteins: firstly, ATS-1, which stands for Anaplasma translocated substrate 1, and secondly AnkA, which stands for ankyrin repeat domain-containing protein A. Additionally, T4SS coupling proteins are VirD4, which bind to VirE2. 
Also called the autotransporter system,  type V secretion involves use of the Sec system for crossing the inner membrane. Proteins which use this pathway have the capability to form a beta-barrel with their C-terminus which inserts into the outer membrane, allowing the rest of the peptide (the passenger domain) to reach the outside of the cell. Often, autotransporters are cleaved, leaving the beta-barrel domain in the outer membrane and freeing the passenger domain. Some researchers believe remnants of the autotransporters gave rise to the porins which form similar beta-barrel structures.[ citation needed] A common example of an autotransporter that uses this secretion system is the Trimeric Autotransporter Adhesins. 
Type VI secretion systems were originally identified in 2006 by the group of John Mekalanos at the Harvard Medical School (Boston, USA) in two bacterial pathogens, Vibrio cholerae and Pseudomonas aeruginosa.   These were identified when mutations in the Hcp and VrgG genes in Vibrio Cholerae led to decreased virulence and pathogenicity. Since then, Type VI secretion systems have been found in a quarter of all proteobacterial genomes, including animal, plant, human pathogens, as well as soil, environmental or marine bacteria.   While most of the early studies of Type VI secretion focused on its role in the pathogenesis of higher organisms, more recent studies suggested a broader physiological role in defense against simple eukaryotic predators and its role in inter-bacteria interactions.   The Type VI secretion system gene clusters contain from 15 to more than 20 genes, two of which, Hcp and VgrG, have been shown to be nearly universally secreted substrates of the system. Structural analysis of these and other proteins in this system bear a striking resemblance to the tail spike of the T4 phage, and the activity of the system is thought to functionally resemble phage infection. 
In addition to the use of the multiprotein complexes listed above, Gram-negative bacteria possess another method for release of material: the formation of bacterial outer membrane vesicles.  Portions of the outer membrane pinch off, forming nano-scale spherical structures made of a lipopolysaccharide-rich lipid bilayer enclosing periplasmic materials, and are deployed for membrane vesicle trafficking to manipulate environment or invade at host-pathogen interface. Vesicles from a number of bacterial species have been found to contain virulence factors, some have immunomodulatory effects, and some can directly adhere to and intoxicate host cells. release of vesicles has been demonstrated as a general response to stress conditions, the process of loading cargo proteins seems to be selective. 
In some Staphylococcus and Streptococcus species, the accessory secretory system handles the export of highly repetitive adhesion glycoproteins.