Refresh Interworx License

/home/interworx/cron/license.pex


Courier mail cannot log in 

/usr/sbin/authdaemond >logfile.log 2>&1


Change Hostname 

/etc/hosts

/etc/sysconfig/network

/home/interworx/iworx.ini

/var/qmail/control/locals

/var/qmail/control/me

/var/qmail/control/rcpthosts

/var/qmail/control/plusdomain


Postfix: How to block a domain

smtpd_sender_restrictions = hash:/etc/postfix/access reject_unauth_destination = hash:/etc/postfix/access 

Once this has been added to the main.cf, you need to create the /etc/postfix/access file and put entries in it like this:

Code:

aol.com REJECT yahoo.com REJECT msn.com REJECT

So on and so forth until all the domains have been entered. Once you have created this file and the permissions are correct run the following command:

Code:

postmap hash:/etc/postfix/access


Find spam email sender

turnkeysoftware.co.za/isoqlog


Find address that has been hacked

grep -rnw '/var/log/smtp' -e 'shidhany@omantel.net.om'

mysql -u root -p -S /usr/local/interworx/mysql/iworx-db.sock -p`grep dsn.orig ~iworx/iworx.ini | cut -d : -f 3 | xargs -d @ | cut -d " " -f 1` 

create user xxx identified by 'yyy';

GRANT ALL PRIVILEGES ON *.* TO 'xxx'@'41.203.z.z' identified by 'yyy' WITH GRANT OPTION;


Fix Interworx Folder Permissions

~iworx/bin/cvspermsfix.pex


Fix interworx Mail and Var Folder Permissions

~iworx/bin/varpermsfix.pex

~iworx/bin/varpermsfix.pex --siteworx=domain.com


or


find /home/user_dir_path -type f -exec chmod 0664 {} \;
find /home/user_dir_path -type d -exec chmod 0775 {} \;