Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Tips/Tricks/Mods

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 5th June 2012, 15:06
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default 2 essential add-ons for ISPConfig3

After the installation of an OS, for example Debian, following one of the excellent "perfect servers" how-tos and then installing ISPConfig3, there are a few more things I consider to be essential:

- install Mod_Security.
This can be skipped if you use only software that is guaranteed to be secure.
Mod_security needs some work for fine-tuning, but if you run a hosting environment for clients or if you use opensource software, Mod_Security might save you more than just a couple bucks...

- install the PEAR mail package
Most if not almost all software packages involving mailing to users make use of the PHP mail()/sendmail function.
The problem with this is that regardless of all your efforts using SPF and setting PTRs, your mail will be stopped by spamfilters of all major email providers because it was not sent using SMTP auth.
PEAR provides a simple way for sending mail using SMTP auth, so you increase your website's reach.
Reply With Quote
The Following 2 Users Say Thank You to manarak For This Useful Post:
edge (6th July 2012), falko (6th June 2012)
Sponsored Links
  #2  
Old 6th July 2012, 11:26
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

I add another essential tweak:

enable port 465 to enable mail sending even when ISPs block port 25:
http://www.faqforge.com/linux/how-to...ix-mailserver/

just use reload instead of restart
Reply With Quote
  #3  
Old 6th July 2012, 20:14
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,146
Thanks: 4
Thanked 55 Times in 51 Posts
Default

Test port 587 which is the mail submission port. That would be better than 465.
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
  #4  
Old 21st July 2012, 20:41
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

my experience is that the email ports are configured in many different ways depending on the provider.

For example, at google:

587 is the Outgoing server (SMTP) port for IMAP. It uses a TLS
encryption connection.

465 is the Outgoing server (SMTP) port for pop. It uses an SSL
encryption connection.
Reply With Quote
  #5  
Old 21st July 2012, 20:44
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

another (potentially) essential config tweak:

if you are running high-traffic sites, and especially if they sit on a cloud Vserver that usually have limited storage and limited I/O bandwidth, you want to disable the Apache Access log:

http://www.howtoforge.com/forums/showthread.php?t=52180

just use google analytics or another stats provider for stats. they are better anyway - and won't clog your server with 30+ Gigs of logs, hello backup storage!

Last edited by manarak; 21st July 2012 at 20:58.
Reply With Quote
The Following User Says Thank You to manarak For This Useful Post:
bajodel (6th August 2012)
  #6  
Old 21st July 2012, 23:43
sjau sjau is offline
Local Meanie
 
Join Date: Apr 2006
Location: Switzerland
Posts: 1,146
Thanks: 4
Thanked 55 Times in 51 Posts
Default

smtp and imap are not related.

smtp is to send email between servers.

imap is a way to access stored email on a server by some client.

And port 587 is still the email submission port
__________________
"Common sense is not as common as commonly believed" by sjau

Auto-Install Script for ISPConfig and Horde on a Vanilla Debian Stable

Need more Repos for Ubuntu? Repository Generator
Need more Repos for Debian? Debian Repository Generator
Reply With Quote
  #7  
Old 3rd August 2012, 14:26
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

Quote:
Originally Posted by sjau View Post
smtp and imap are not related.

smtp is to send email between servers.

imap is a way to access stored email on a server by some client.

And port 587 is still the email submission port
yeah, go tell all the mail service about that, they will continue to do what they want anyway ;-)

I will add another essential tweak to this list:
to avoid some funny issues with character encoding in MySQL, configure UTF-8 as default character set for MySQL.

in my.cnf :

Quote:
[client]
default-character-set=utf8

[mysql]
default-character-set=utf8


[mysqld]
character-set-server = utf8
collation-server = utf8_unicode_ci
init-connect='SET NAMES utf8'
Reply With Quote
The Following User Says Thank You to manarak For This Useful Post:
falko (4th August 2012)
  #8  
Old 13th August 2012, 12:37
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

one more tweak to outbound emails:
use DKIM (domainkeys) to increase even more your emails' reach, in addition to sending through SMTP and using SPF records.

The following how-to is for debian:
http://syslog.tv/2010/01/11/dkim-on-...-with-postfix/

or this howto (untested):
http://www.debiantutorials.com/setup...im-in-postfix/

Last edited by manarak; 13th August 2012 at 12:46.
Reply With Quote
  #9  
Old 14th August 2012, 09:08
manarak manarak is offline
Senior Member
 
Join Date: Apr 2009
Posts: 262
Thanks: 32
Thanked 6 Times in 5 Posts
Default

more of a trick than an essential add-on:

To be able to display (and switch between) sites that have been setup on the server to display as default when browsing to the server's IP or FQH is useful for example when developing a site when the DNS has not been set to point there, or to host stuff without using a domain name

To achieve this, do:

in /etc/apache2/sites-enabled
rename 000-default (or similar) to something like _000-default
then *copy* the file with the domain you want to appear as default into 000-default (same file name as was renamed above)
restart apache.

to switch to another default site, just copy another domain file to 000-default

to switch back to default behavior, copy back _000-default to 000-default
(and restart apache after every change)

I wish this could be done easily through ISPConfig

Last edited by manarak; 14th August 2012 at 09:15.
Reply With Quote
  #10  
Old 16th August 2012, 17:12
ressel ressel is offline
Senior Member
 
Join Date: Apr 2007
Location: Denmark
Posts: 128
Thanks: 18
Thanked 5 Times in 5 Posts
 
Default

Another solution, that I like and find useful, is to edit the local hosts file, on my own machine.

Quote:
Originally Posted by manarak View Post
more of a trick than an essential add-on:

To be able to display (and switch between) sites that have been setup on the server to display as default when browsing to the server's IP or FQH is useful for example when developing a site when the DNS has not been set to point there, or to host stuff without using a domain name

To achieve this, do:

in /etc/apache2/sites-enabled
rename 000-default (or similar) to something like _000-default
then *copy* the file with the domain you want to appear as default into 000-default (same file name as was renamed above)
restart apache.

to switch to another default site, just copy another domain file to 000-default

to switch back to default behavior, copy back _000-default to 000-default
(and restart apache after every change)

I wish this could be done easily through ISPConfig
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple Actions Required to Add Domain fatbear General 4 22nd April 2012 15:13
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 16:54
ISPConfig 3.0.0.8 RC1 released till General 92 22nd February 2010 09:52
Add ons for ISPConfig 3 virtue Installation/Configuration 24 16th October 2009 17:30
Advice on how to setup Lintrack As A LAN Gateway And An OpenVPN Bridge eddiequek HOWTO-Related Questions 0 12th July 2007 10:38


All times are GMT +2. The time now is 04:07.


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