Posts

Virtualmin / Usermin Error Logging In Connection Reset

http://www.virtualmin.com/node/21964#comment-99307 https://www.virtualmin.com/node/21963#comment-99306 Problem on logging in on usermin https://domain.com:20000 connection reset Probable solution is Edit /etc/usermin/miniserv.conf And add this line to the end: no_pam=1 After that, restart Usermin: /etc/init.d/usermin restart Solution by : andreychek on bugtracker

mod evasive not logging not sending mail

To enable logging and mail, 1. Set the desired configuration in mod_evasive conf or in httpd conf (depending on your distribution 2. Create a folder on /var/log $ mkdir mod_evasive $ chown apache:apache mod_evasive 3. Set the path on mod_evasive conf / httpd.conf to /var/log/mod_evasive 4. Restart httpd / apache ---- EOF ----

Migration Email Server

 postfix/pipe[14916]: 863524FD92: to=<user@example.com>, relay=maildrop, delay=0.02, delays=0.01/0/0/0.01, dsn=5.1.1, status=bounced (user unknown. Command output: Invalid user specified. ) FIX : COMPILE MAILDROP uncomment line: WITH_AUTHLIB=yes NOTE: compile maildrop so it will have:   maildrop 2.5.5 Copyright 1998-2005 Double Precision, Inc. GDBM/DB extensions enabled. Courier Authentication Library extension enabled. Maildir quota extension are now always enabled. This program is distributed under the terms of the GNU General Public License. See COPYING for additional information.     Virtual Domains and Users w/ Postfix / Courier-IMAP / MySQL Introduction Disclaimer MySQL Install MySQL Setup Create the database Create the Tables Create the Alias Table Create the Domain Table Create the Mailbox Table Populate the Tables Postfix Install Postfix Setup main.cf mysql_virtual_alias_maps.cf mysql_virtual_domains_m...

loops back to myself

Trying to fix an error : loops back to myself Hope this works on monday   Postfix virtual ALIAS example: separate domains, UNIX system accounts With the approach described in this section, every hosted domain can have its own info etc. email address. However, it still uses UNIX system accounts for local mailbox deliveries. With virtual alias domains , each hosted address is aliased to a local UNIX system account or to a remote address. The example below shows how to use this mechanism for the example.com domain. 1 /etc/postfix/ main.cf : 2 virtual_alias_domains = example.com ...other hosted domains ... 3 virtual_alias_maps = hash:/etc/postfix/virtual 4 5 /etc/postfix/virtual: 6 postmaster@example.com postmaster 7 info@example.com joe 8 sales@example.com jane 9 # Uncomment entry below to implement a catch-all address 10 # @example.com jim 11 ...virtual aliases for more domains... Notes: Line 2: th...

Restart apache if not running

#!/bin/bash RESTART="/sbin/service httpd restart" PGREP="/usr/bin/pgrep" HTTPD="httpd" $PGREP ${HTTPD} if [ $? -ne 0 ] # if apache not running then $RESTART fi

Can't load Perl module Apache::compat for server

Can't load Perl module Apache::compat for server Can't locate Apache/compat.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 . /etc/httpd) at (eval 2) line 3.\n Go to directory $ cd /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi Rename the folders $ mv Apache -> ApacheOld $ mv Apache2 -> Apache

resize xen guest

dd if=/dev/zero of=file.img bs=1M conv=notrunc count=1 seek=5000   # 5GB losetup /dev/loop1 file.img #loop1 had to be used as xen was already running a different domU via loop0. e2fsck -f /dev/loop1 resize2fs /dev/loop1 e2fsck -f /dev/loop1 losetup -d /dev/loop1       5GB