Blue Flower

The original author only included the line to change.

# cd /usr/ports/sysutils/ucspi-tcp/work/ucspi-tcp-0.88
# vi rblsmtpd.c

Find the line (should be line 128):

if (text.len > 200) text.len = 200;

and change it to:

if (text.len > 500) text.len = 500;

Special thanks to Nick Holder and Michael Bowe at

http://www.bowe.id.au/michael/isp/webmail-server.htm

Monday, 06 July 2015 00:55

smtp.cdb, smtp or smtpssl access definitions

Written by
:allow
This will allow the specified IP range to make a connection

:deny
This will deny the specified IP range to make a connection

RELAYCLIENT=""
When set with :allow, this will accept relay messages from the specified IP
range

RBLSMTPD=""
When set with :allow or :deny, this will instruct smtpd to skip RBL checks for
the specified IP range

RBLSMTPD="my temp error message"
When set, this will skip RBL lookups but return "my temp error messsage" as a
4xx temp error for the specified IP range

RBLSMTPD="-my perm error message"
When set, this will skip RBL lookups and return "my perm error message" as a
5xx perm error for the specified IP range
 
Special thanks to Nick Holder
Monday, 06 July 2015 00:54

Limiting messages sizes qmail will accept

Written by

Create /var/qmail/control/databytes and then within the file specify the maximum size of the message you want to allow in bytes. If you want to limit messages to roughly 10 megabytes then you would put 10000000 in the file, or you can use google so you can get the size right on the money.

# chmod 644 /var/qmail/control/databytes
# chown root:qmail  /var/qmail/control/databytes
# qmailctl restart

Monday, 06 July 2015 00:54

How to correctly view qmail logs with timestamps

Written by

In order to view logs with timestamps, run this command:

tai64nlocal < /var/log/qmail/qmail-send/current

for more about multilog please take a look at

http://qmail.jms1.net/logfiles.shtml

Monday, 06 July 2015 00:53

Signal 11 errors in qmail-smtpd

Written by

If you start seeing Status 11 errors to pop up in qmail-smtpd whenever a message came in from a domain, The SPF records uses colons for delimiters instead of spaces, so the lack of spaces, and possibly other syntax problems, in an SPF record will cause smtpd to exit abnormally and put the status 11 message in your qmail-smtpd log and a signal 11 error in /var/log/messages. I worked around this problem by adding:

206.246.124.31:allow,SPFBEHAVIOR="0"

in /etc/tcp.smtp

Special thanks to Lonnie Burgess

Monday, 06 July 2015 00:52

Qmail-Remove

Written by

Stolen from http://www.linuxmagic.com/opensource/qmail/qmail-remove/

Qmail-Remove will remove messages containing a particular string from your Qmail queue.

Why?:

This is a useful thing to do in a number of situations. For instance, if you are hit with a spamming attack, you can temporarily instate a second Qmail installation (once the spam run is finished), allow it to take over mail receipt, and then use this tool to clean the offending mails out of the queue before switching over to the main Qmail installation once again.

Occasionally, viruses will get past scanners before the signatures get updated; if they exist in large numbers, it is often practical to stop the Qmail install briefly in order to clean out all messages containing a signature related to the virus.

Whatever the reason to pull items from your mail queue, this program will delete them in such a manner that will let you restore them easily.

"Removed" Emails:

Mails are *not* deleted from the queue! They are only stored, temporarily, in $qmail-queue/yanked/, where you can view them individually and restore them back to the queue manually. There is currently no support for restoring them automatically.

By default, Qmail-Remove assumes that your Qmail queue is stored in /var/qmail/queue, but this can be changed with a command line option. Similarly, Qmail-Remove assumes that your queue "split" is 23 by default, among other things.

See Qmail-Remove -h for more commandline options.

WARNING: YOU MUST STOP QMAIL BEFORE USING THIS PROGRAM.

http://www.goodcleanemail.com/files/tarballs/qmail-remove-0.95.tar.gz

Page 14 of 23