Snippets

Drupal edit permissions and filters

Ever had the situation where, even though you have given permissions to edit nodes to a role, and assigned that role to a user, they still can't edit the node?

Drupal will stop people from editing nodes that use a filter format that they don't have permission to use. So check that the filter in use by the node is available to the user in question.


Copying a Drupal site to a new Drupal virtual site

Copying a complete Drupal site to a new virtual site within the same Drupal installation is relatively easy. These are the steps to take:

  1. Take original site off-line to prevent changes while the copy is in progress.
  2. Copy site-specific files, themes and modules.
  3. Copy the site database (with phpMyAdmin select "Add AUTO_INCREMENT value" for this to work properly).
  4. Return original site to on-line state.
  5. Log into new copy and visit these admin pages:
    • Modules (updates the database with the new sites module paths)

Installing MailScanner on Fedora Core 8

I've happily installed MailScanner 4.66.5-3 (http://mailscanner.info) on FC8!

From a minimal FC8 server installation, I needed to install a few rpms using yum:


# yum install rpm-build
# yum install perl-devel
# yum install perl-Test-Simple

Since perl-Test-Simple is included with MailScanner, it might be possible to remove the requirement for that (and save having yum trying to update it) if it's listed earlier in the MailScanner install.sh?


hosts file not working for WinXP

Had an odd problem recently, in that my local hosts file wasn't being used to resolve domain names.

Much Googling later I found this thread, which prompted me to try editing the hosts file using edit from the windows command prompt. It worked, and now my hosts file is being used again!


Sending web form mail to Hotmail

The Situation

A simple "Contact" form on a website. The form allows people to enter their name and e-mail address, so that the message appears to come from them, and the site owner can use their Reply button to reply to the sender (and not the web server!).

The Problem

The problem is defining what the "sender" e-mail address is, which is then compared with the address's domain's SPF record to see if it is coming from an authorised mail server.

Sending mail from ISPs that hijack port 25

Some ISP's "hijack" port 25, so that all mail sent goes through their mail servers. This allows them to be sure that their internet connections are not being used to send spam.

Use port 587 for sending e-mail using the Fonant mail server to avoid this.


Syndicate content