If you simply want to make a mailbox receive mail for another address, just add the full address to /etc/postfix/virtual: [root@srv-2 postfix]# cat virtual usr-1@networking.com usr usr-1@networking2.com usr usr-2@maildomain.com anotherusr If we simply add this line to the bottom: usr-3@maildomain.com anotherusr Mail that was was delivered previously via usr-2@maildomain.com will be delivered in the same […]
Adding an Alias to Postfix
Wadding up Spambots With Spiderkiller
Spiderkiller is a C program that will generate unique pages with random email addresses that will confuse harvesting bots. Compile the app: srv-5:~ usr4$ gcc spiderkiller.c -o spiderkiller spiderkiller.c: In function ‘main’: spiderkiller.c:299: warning: incompatible implicit declaration of built-in function ‘strlen’ The options are simple: srv-5:~ usr4$ ./spiderkiller -help Usage: spiderkiller [-help] [-n ] [-k […]
Postfix RPM Upgrade for Red Hat Enterprise Linux 3
One of the servers we work on is running Red Hat Enterprise Linux 3 (RHEL 3). We needed some features in the later versions of Postfix, rather than the backported version for RHEL 3. There are some RPMs available here: http://postfix.wl0.org/ftp/official/2.2/RPMS-rhel3-i386 The latest version as of the date of this article is 2.2.5-3. If you […]
Postfix Source RPM Upgrade for Red Hat Enterprise Linux 3
In this article, we upgraded Postfix to 2.2.5 via RPMs; however, if a later version is needed, and you are running Red Hat Enterprise Linux Version 3 (RHEL 3), an RPM needs to be created from source. There is a source RPM for 2.2.6 available here: http://postfix.wl0.org/ftp/official/2.2/SRPMS/ To use the RPM, install it: [root@s root]# […]
Using UW IMAP and Xinetd For Dual SSL and Plaintext Support
First off, Pine rocks when it comes to reading mail quickly, particularly on a server where a GUI is not available. Second of all, it often doesn’t come with GNU/Linux distributions anymore. I suppose that part of the problem is that pine includes a version of IMAP that can cause problems if it coexists with […]
Avoid Unwanted Email
The opportunists who send unsolicited bulk email (UBE) use tools that do not follow standards. This can work to an advantage in that improper configuration can allow quite a bit of filtering to be done on inbound email. For instance, the following entries in main.cf for postfix will dramatically cut down on email from misconfigured […]
Blue Security DDOS
There is an excellent discussion of the Blue Security DDOS attack here, including a copy of discussion from those behind the DDOS here. There is more information on Blue Frog and related issues on Wikipedia here. If you somehow missed this, it is probably in your best interest to be aware of what is going […]
Clearing Bad Messages Out of the Postfix Mail Queue
If you have bad messages in your Postfix mail queue, you can list them with the postqueue command: [root@svr-1 mail]# postqueue -p -Queue ID- –Size– —-Arrival Time—- -Sender/Recipient——- 4C63F2300BA 876 Mon Jun 5 09:31:54 user@somedomainsomewhere.com (connect to example.com[192.0.34.166]: Connection timed out) differentuser@example.com — 1 Kbytes in 1 Request. You will need the Queue Id to […]
Rejecting Email Based on Headers With Postfix
Postfix has the ability to reject mail based on regular expression matching in the header of the incoming mail message. To enable this, add these lines to main.cf: header_checks = regexp:/etc/postfix/header_checks header_checks = pcre:/etc/postfix/header_checks We stuck these after the alias line. Add the header content matches and actions to header_checks (usually in /etc/postfix) and restart […]
Tips on Running a Google Apps Pilot
When migrating from an internal email system to Google Apps, it’s nice to have the option of running a pilot program including a few of your users to try it out, and then to move the rest of the users over when problems with the transition have been identified and addressed. This is pretty easy […]
Samba Installation and Initial Configuration
We will install from source and get Samba up and running with one user and one share. We will not delve deep into the security, so as always, be careful, check the documentation, and do this in a lab first. We are assuming that Webmin is installed and running. First, download the latest version of […]
Samba Administration
Most of what can be administered in Samba can be done through the webmin module. You will need some other utilities as well. First, you are going to need a secure way to connect to the Samba box, and a way for your clients to change their password without using webmin. For your Windows boxen, […]
LPRM command
One thing that works very well in *NIX systems is the BSD style print queue. This is the style that comes with most Linux distributions. To list the print jobs in the print queue, type lpq. To remove a single job from your queue, type lprm -P{printername} {jobid}. For instance, if your printer name was […]
GNU Enscript
We ran across a cool utility called Enscript. It runs on most all platforms, but is most useful on *nix systems. If you ever just want to print a text document, but don’t want to load up an editor, you can use Enscript. Here is the GNU Enscript homepage. For example, to print a document […]
IPStor SAN/NAS
If you are considering any kind of SAN or NAS check out IPStor software by FalconStor. IPStor can be loaded on two Linux servers. These servers communicate with eachother and will failover automatically. They communicate via fibre channel or SCSI with storage devices (RAID cabinets, tape libraries, etc). They communicate with other servers (NT, Linux, […]
Managing Files With FileRunner
There are many filemanagers available for GNU/Linux; however, the one filemanager that has the most power for managing tons of files is the humble FileRunner. The fancy ones on KDE and Gnome aren’t entirely reliable, mainly, because they aren’t simple. They try and compete with XP by providing icons, previews, etc. That may be cool […]
Adding NFS Users
Add the hostname of the client you want to be able to access your NFS server to /etc/exports. To list the current allowed users: [root@mondo log]# exportfs /share u-1.signalq.com /share srv-3.signalq.com /share srv-44.signalq.com After adding the name to /etc/exports: [root@mondo log]# exportfs -a We added housey, now: [root@mondo log]# exportfs /share u-1.signalq.com /share srv-3.signalq.com /share […]
Point and Print in Samba
If you’re using a samba server to provide print services to Windows clients, why not take it one step further by offering point and print functionality. If you set this up, users *might* even be able to install printers themselves! At the very least it will save you time when you slave over their workstations […]
Default Admin Page for CUPS
Agatha broke her CUPS configuration when upgrading her Gentoo workstation. Simply deleting the old printer and creating a new one works. The thing about CUPS is that it just rocks, and only breaks, to our memory, during an upgrade. The configuration for the daemon is in /etc/cups/cupsd.conf. The cool web-based admin tool makes it really […]
Creating a SAN with iSCSI – Part 1 – Setting up the Target on GNU/Linux
[See This article for a newer procedure.] An iSCSI target is the server piece of an iSCSI SAN. The client piece/driver is called the initiator. We will be running the target on a GNU/Linux box with a 2.4.27 kernel, and will run the initiator on a Windows 2000 server. For our iSCSI target, we will […]