Hi all,
Putting almost full load on a QMAIL machine I've configured with FreeBSD
(All incoming email, and a large portion of outgoing goes through it...), I'm
now starting to see the following errors:
Feb 18 08:31:10 proxy2-new qmail: 856272670.389909 delivery 2133: success: /usr/
local/bin/smtp-rewrite.sh:_Cannot_fork/cdbget:_usage:_cdbget_key/did_0+0+1/
Feb 18 08:31:05 proxy2-new qmail: 856272665.715195 delivery 2128: deferral: qmai
l-inject:_fatal:_unable_to_run_qmail-queue/
Feb 18 08:31:05 proxy2-new qmail: 856272665.723979 starting delivery 2138: msg 1
61292 to local fixup-desmith@switch.com@fixup
I presume I'll need to recompile the kernel to set certain limits higher, but I
thought I'd see if anyone on this list knows of another alternative, since most
of you appear to be Unix gurus :)
Also, the first error message appears to indicate that the message did go through,
despite the error. Could someone enlighten me how to change the following script
(called from alias/.qmail-fixup-default) so that the message will be deferred if
an error occurs? A deferral isn't a big deal, but having the header rewriting
work in a spotty fashion just doesn't cut it :(
#!/bin/sh
#
#JCR - This section performs From: address rewriting.
#
DBRESULT="`/usr/local/bin/cdbget \$SENDER < /etc/aliases.rev.cdb`"
if [ -n "$DBRESULT" ]; then
QMAILINJECT=f
QMAILUSER=$DBRESULT
export QMAILUSER QMAILINJECT
else
USER=$SENDER
export USER
fi
#
#JCR - This section intercepts messages to rnd2.switch.com, and rewrites them
# if needed.
#
DMY=`echo $EXT2 | /usr/bin/sed "/.*/y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmno
pqrstuvwxyz/"`
DBRESULT="`/usr/local/bin/cdbget \$DMY < /etc/rnd2.switch.com.remap.cdb`"
if [ -n "$DBRESULT" ]; then
EXT2=$DBRESULT
export EXT2
fi
#
#JCR - Ok, now reinject the message back into the mail system.
#
exec /var/qmail/bin/qmail-inject -f "$SENDER" -- "$EXT2"
exit 111
-------------------------
John C. Ring, Jr.
jcring@switch.com
Network Specialist
Union Switch & Signal Inc.
Putting almost full load on a QMAIL machine I've configured with FreeBSD
(All incoming email, and a large portion of outgoing goes through it...), I'm
now starting to see the following errors:
Feb 18 08:31:10 proxy2-new qmail: 856272670.389909 delivery 2133: success: /usr/
local/bin/smtp-rewrite.sh:_Cannot_fork/cdbget:_usage:_cdbget_key/did_0+0+1/
Feb 18 08:31:05 proxy2-new qmail: 856272665.715195 delivery 2128: deferral: qmai
l-inject:_fatal:_unable_to_run_qmail-queue/
Feb 18 08:31:05 proxy2-new qmail: 856272665.723979 starting delivery 2138: msg 1
61292 to local fixup-desmith@switch.com@fixup
I presume I'll need to recompile the kernel to set certain limits higher, but I
thought I'd see if anyone on this list knows of another alternative, since most
of you appear to be Unix gurus :)
Also, the first error message appears to indicate that the message did go through,
despite the error. Could someone enlighten me how to change the following script
(called from alias/.qmail-fixup-default) so that the message will be deferred if
an error occurs? A deferral isn't a big deal, but having the header rewriting
work in a spotty fashion just doesn't cut it :(
#!/bin/sh
#
#JCR - This section performs From: address rewriting.
#
DBRESULT="`/usr/local/bin/cdbget \$SENDER < /etc/aliases.rev.cdb`"
if [ -n "$DBRESULT" ]; then
QMAILINJECT=f
QMAILUSER=$DBRESULT
export QMAILUSER QMAILINJECT
else
USER=$SENDER
export USER
fi
#
#JCR - This section intercepts messages to rnd2.switch.com, and rewrites them
# if needed.
#
DMY=`echo $EXT2 | /usr/bin/sed "/.*/y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmno
pqrstuvwxyz/"`
DBRESULT="`/usr/local/bin/cdbget \$DMY < /etc/rnd2.switch.com.remap.cdb`"
if [ -n "$DBRESULT" ]; then
EXT2=$DBRESULT
export EXT2
fi
#
#JCR - Ok, now reinject the message back into the mail system.
#
exec /var/qmail/bin/qmail-inject -f "$SENDER" -- "$EXT2"
exit 111
-------------------------
John C. Ring, Jr.
jcring@switch.com
Network Specialist
Union Switch & Signal Inc.