Phoenix Technologies & Solutions Blog

24
Jul

Blacklist Databases with sendmail and the PTSMail Utilities

Blacklist databases are one of the most effective ways to stop spam using sendmail and the PTSMail Utilities. But you have to use the right ones. A good resource for learning about blacklists is the dnsbl resource web site. This site reviews blacklist databases and lets you know which ones are still active. One of the best blacklist database is the spamhaus project.

This site gives information on spammers as well as one the most accurate blacklists. With the right combination of blacklists you will get far fewer false positives.

For more information or tech support for blacklists,sendmail, or the PTSMail Utilities call 410-838-5100 or email us at experts@expertsinunix.com
Skype: solution1000

Share/Save/Bookmark

23
Jul

Getting myisamchk to run faster

On a large database myisamchk can take a long time to run, especially if you are using one of the more extensive repair or checking methods. By telling myisamchk to use more memory when it runs you can speed things up.

example:
myisamchk –sort_buffer_size=256M –read_buffer_size=2M –write_buffer_size =1M –recover thetable

Some of the variables that you want look at include:

key_buffer_size Buffer size to hold index blocks
read_buffer_size Buffer size for read
sort_buffer_size Buffer size for sorting
write_buffer_size Buffer size for writing

For more information or tech support by phone on MySQL call 410-838-5100 or email us at experts@expertsinunix.com
Skype: solution1000

Share/Save/Bookmark

22
Jul

Mail hosting by PTS

Mail hosting is an email service offered by internet service companies
which entails the hosting company to manage the mail server and often the DNS of the customer company. This service is often rendered at a cost, which includes email filtering before final delivery to Inboxes. PTS Mail Hosting works the same way. Our filtering capability is based off of a program that we designed called PTSMail Utilities. This filter is currently being used by several local government and educational facilities.

PTS Mail Hosting supports Imap and POP protocols for Outlook and other clients, as well as web based interface access. Employees and supervisors can also stay synchronized with shared calanders and email alerts to cellular devices. Administrators can view every email message that came into their system, as well as retrieve any message which was blocked by mistake. With literally hundreds of filtering features and different configurations, it would be impossible to list all of our filtering tests on a webpage that folks would actually read. That being said, please take a few minutes to read about the most popular features of PTS Mail Hosting.

Form more information or support please call 410-838-5100 or email us at experts@expertsinunix.com

Share/Save/Bookmark

21
Jul

Copying a mysql database using a network transfer

You can copy a mysql database to another server using the following command:

mysqldump –opt –database mydatabase | mysql -h database.otherdomain.com

This will make a copy of mydatabase on the server named database.otherdomain.com

For more information or tech support on MySQL call us at 410-838-5100 or email us at experts@expertsinunix.com
Skype: solution1000

Share/Save/Bookmark

20
Jul

Latest versions of third party software

These are the latest versions of third party software used by the PTSMail Utilities
—————————–

Clamav: 0.93
DCC: 1.3.90
MySql: 5.0.51
Vipul’s Razor: 2.84
Sendmail: 8.14.3

You can use the update_software utility in the PTSMail Utilities to bring the source down, compile and install any latest versions of the above utilities.

For more information or tech support by phone for clamav,dcc,mysql,vipul’s razor,sendmail or the PTSMail Utilities call 410-838-5100 or email us experts@expertsinunix.com
Skype: solution1000

Share/Save/Bookmark

19
Jul

Blocking email messages in sendmail without a message body

You can block email messages in sendmail without a message body using the PTSMail Utilities do_body_check. This checks to see if their is a message body and if there is not a message body reject the message.

do_body_check

Checks to see if message has a body. If not reject the message.
ex: do_body_check~

For more information or support on sendmail or the PTSMail Utilities call 410-838-5100 or email us at experts@expertsinunix.com.
Skype: solution1000

Share/Save/Bookmark

18
Jul

Checking a from address has a valid mx record

The domain in the from address in email should always have a valid Mail exchanger record. You can check for this in the PTSMail Utilities and sendmail using the do_mx_check option the ptsfilter.conf file.

do_mx_check

The option that checks a selected domain in the from address
for a valid mx record.
ex: do_mx_check~

This will check the mx record of the domain portion of the from address and reject the message if a mx record doesn’t exist.

For more information or support on sendmail or the PTSMail Utilites call 410-838-5100 or email us at experts@expertsinunix.com
Skype: soltuion1000

Share/Save/Bookmark

17
Jul

Updating clamav,dcc and Vipul’s Razor

Updating clamav,dcc,Vipul’s razor, Surbl country codes can be done automatically using the

update_software - PTSMail Utilities Third Party Software Update utility:

update_software is located in /usr/local/etc/ptsfilter.
update_software will update the following third part software:
sendmail
dcc Distributed Check Sum Clearinghouse
clamav
razor-agents
razor-agents-sdk
surbl.cc (surbl country codes)
mysql
example:
/usr/local/etc/ptsfilter/update_software -i -s clamav -c “./configure –disable-threads”

-s takes one argument (software package)
-d copy site.config.m4 file to devtolls/Site for sendmail update
-i make install
-b make only
-c configure string (If no string is entered it is default configured. configure string must be enclosed in double quotes )

for more information or tech support by phone on mysql,sendmail,vipul’s razor call 410-838-5100 or email us at experts@expertsinunix.com
Skype: solution1000

Share/Save/Bookmark

16
Jul

How To SSH or SCP without a password

Step 1. Verify that you can connect normally (using a password) to the server you intend to setup keys for:

Examples

user@system1 ~ $ ssh username@’system2′

Or:

user@system1 ~ $ ssh username@’ipaddress’

If your username is the same on both the client (’system1′) and the server (’system2′):

user@system1 ~ $ ssh ’system2′

Or:

user@system1 ~ $ ssh ‘ipaddress’

If this is your first time connecting to ’system1′ (or ‘ipaddress’), upon establishing a connection with the server you’ll be asked if you want to add the servers to the known_hosts file on your computer.
# Press ‘enter’ to add the fingerprint.

Step 2. Now that you’re connected to the server and verified that you have everything you need for access (hopefully), disconnect by typing ‘exit’ .

Examples

user@system2 ~ $ exit

You should be back at:

user@system1 ~ $

Step 3. The next step is to copy a unique key generated on your ’system1′ to the server you are connecting too. First, before you generate a new key, check to see if you already have a key:

Example

user@system1 ~ $ ls -l ~/.ssh
total 20
-rwx–xr-x 1 user user 601 Feb 2 01:58 authorized_keys
-rwx–xr-x 1 user user 668 Jan 1 19:26 id_dsa
-rwx–xr-x 1 user user 599 Jan 1 19:26 id_dsa.pub
-rwx–xr-x 1 user user 6257 Feb 2 21:04 known_hosts

The file you need to copy to the server is named id_dsa.pub. As you can see above, the file needed exists. You may or may not have other files in ~/.ssh . If the key doesn’t exist, however, you can make one as follows:

Example

user@system1 ~ $ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_dsa): # Press ‘enter’ here
Enter passphrase (empty for no passphrase): # Press ‘enter’ here
Enter same passphrase again: # Press ‘enter’ here
Your identification has been saved in /home/user/.ssh/id_dsa.
Your public key has been saved in /home/user/.ssh/id_dsa.pub.
The key fingerprint is:
6f:c3:cb:50:e6:e9:90:f0:0f:68:d2:10:56:eb:1d:91 user@host

Entering a password when asked during the key generation processes when prompted would require you to enter a password each time you SSH/SCP to the server which defeats the purpose of this document.

Step 4. Regardless whether you had a key ready to go or if you had to generate a new key, the next step is the same in either case. Now you’re ready to copy the key to the server. Do so like this:

Example

user@system1 ~ $ ssh-copy-id -i ~/.ssh/id_dsa.pub user@’system2′ (or ‘ipaddress’)

If you are asked weather or not you wish to continue, say yes.

Step 5. Now it’s time to test the setup. To do that, try to ssh to the server:

Example

user@system1 ~ $ ssh ’system2′ (or ‘ipaddress’)

You should log in to the remote host without being asked for a password.

Step 6. You can now SSH or SCP to the remote host without having to enter a password at each connection. To make sure your public key stays secure from prying eyes, do the following to change permissions and restrict access on ’system1′ and also on ’system2′ to ~/.ssh:

Example

user@system1 ~ $ chmod 600 ~/.ssh/id_dsa ~/.ssh/id_dsa.pub

Verify the permissions on the files:

Example

user@system1 ~ $ ls -l ~/.ssh
-rw——- 1 user user 668 Feb 4 19:26 id_dsa
-rw——- 1 user user 599 Feb 4 19:26 id_dsa.pub

For more information or support on ssh or scp call us 410-838-5100 or email us experts@expertsinunix.com.
Skype: solution1000

Share/Save/Bookmark

15
Jul

Contact us through Skype

Do you have question on a recent post? Do you want more information? Contact us through Skype. On the sidebar is a call us button to contact us through Skype. Get immediate answers to any questions you may have. You can see one of our techs face to face through video or just do a voice call. Try it out.

For more information or support call us at 410-838-5100 or Skype us at solution1000.

Share/Save/Bookmark

© 2008 Phoenix Technologies & Solutions Blog | Entries (RSS) and Comments (RSS)

Design by Web4 Sudoku - Powered By Wordpress