LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 10:53 AM   #1
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Rep: Reputation: 15
qmail smtp-send error log


Hey,

I am running a machine with Fedora 2 with qmail+clam anti+spamassasin

ive been noticing errrors that im not too sure of:

@4000000041611af31caa208c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611af41e94cdd4 softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611af5207aa8bc softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611af623a3294c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611af7251b5de4 softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611af826873e3c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611af927cfac5c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611afa2915a97c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611afb2a24bc04 softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611afc2c0a9304 softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611afd2deb4984 softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611afe2fd47fcc softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611aff31b4a9ac softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611b0033a1182c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied
@4000000041611b013585f52c softlimit: fatal: unable to run /usr/local/bin/tcpserver: access denied


what should the perms on the tcpserver be?

right now they are

-rwxr-xr-x 1 root root 39616 Oct 4 05:49 tcpserver

Also what so the files with the @ mean:
@4000000041611b013585f52c

Thanks,

Lenny
 
Old 10-11-2004, 09:07 AM   #2
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
I think you need to increase the softlimit for your qmail session. You do that in the supervise/run files. Try posting the contents of your /var/qmail/supervise/qmail-smtpd/run file. In there, you should have a line that talks about "softlimit" and sets a value. This is the amount of memory you're allocating to each instance of qmail-smtpd.

The @ with all the numbers is a datestamp. You can turn these datestamps into actual date/times by piping it through another program. Try this...

cat /var/log/qmail/current | tai64nlocal

The tai64nlocal program will convert the datestamps into actual dates you can read.

I dont think the problem you're having is permissions related.
 
Old 10-12-2004, 10:23 PM   #3
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
below are the contents of the qmail-smtpd file:

#!/bin/sh
QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE30000000
QMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
LOCAL=`head -1 /var/qmail/control/me`
if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ]; then
echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
echo /var/qmail/supervise/qmail-smtpd/run
exit 1
fi
if [ ! -f /var/qmail/control/rcpthosts ]; then
echo "No /var/qmail/control/rcpthosts!"
echo "Refusing to start SMTP listener because it'll create an open relay"
exit 1
fi
exec /usr/local/bin/softlimit -m 40000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd baguh.lenernet.net \
/home/vpopmail/bin/vchkpw /usr/bin/true 2>&1

soft limit is set to 40000000 so not sure what to increase it to?

thanks

lenny
 
Old 10-13-2004, 01:09 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Hmmm, well that number seems a bit large. That means you're willing to allocate 40 meg to each smtp process that is spawned by qmail. If you had a burst, you'd need enough ram + virtual mem to support that... otherwise, qmail will begin to reject new connections because that would exceed its memory limit.

Mine's set for 15000000 which is 15 meg. That should be plenty. I'm running spamassassin + qmailscanner + clamav when my qmail smtpd process runs.

I'm a little curious about your run file. It looks like you have /home/vpopmail/bin/vchkpw in there, which I don't think belongs. Are you running smtp auth? What I mean is, do you have it setup so your users are having to enter their username/pass when they setup their email accounts to send mail?

better question... what howto was used for this? I think you may have answered in another thread, but I'm not sure.

YOu may also want to double check the location of your /etc/tcp.smtp.cdb. Since you have vpopmail installed, there may be another copy of this file under /home/vpopmail/etc or somewhere around there. If you do, then you should check your start script and look for the "cdb" section and correct any mistakes.

I'm also unsure why you needed to put /usr/bin/true. This looks like a mistake to me, but if there is a reason, I'm alwyas interested to learn!

I think the bottom of your file should look like this...

exec /usr/local/bin/softlimit -m 15000000 \
/usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c "$MAXSMTPD" \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
/var/qmail/bin/qmail-smtpd 2>&1

if that doesn't work, I'd question the use of vppomail for your user and group. I'm using "qmaild" for my user and "nofiles" as my group.
 
Old 10-13-2004, 11:16 AM   #5
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
thanks so much for your advice..

i installed qmail from qmailrocks.org..it was a very easy installation..i went ahead and adjusted the softlimit like u said.

if there are any other issues u see with the installation please let me know

thanks
 
Old 10-13-2004, 11:35 AM   #6
lsimon4180
Member
 
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101

Original Poster
Rep: Reputation: 15
another thing im trying to do is a apply a patch..below is the patch file and the steps/issues im running into:

file name smtpd.patch:

--- orig/qmail-smtpd.c Mon Jun 15 06:53:16 1998
+++ qmail-smtpd.c Sat Feb 9 12:07:19 2002
@@ -53,6 +53,7 @@
void err_nogateway() { out("553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)\r\n"); }
void err_unimpl() { out("502 unimplemented (#5.5.1)\r\n"); }
void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); }
+void err_relay() { out("553 we don't relay (#5.7.1)\r\n"); }
void err_wantmail() { out("503 MAIL first (#5.5.1)\r\n"); }
void err_wantrcpt() { out("503 RCPT first (#5.5.1)\r\n"); }
void err_noop() { out("250 ok\r\n"); }
@@ -216,6 +217,21 @@
return r;
}

+int addrrelay()
+{
+ int j;
+ j = addr.len;
+ while(--j >= 0)
+ if (addr.s[j] == '@') break;
+ if (j < 0) j = addr.len;
+ while(--j >= 0) {
+ if (addr.s[j] == '@') return 1;
+ if (addr.s[j] == '%') return 1;
+ if (addr.s[j] == '!') return 1;
+ }
+ return 0;
+}
+

int seenmail = 0;
int flagbarf; /* defined if seenmail */
@@ -250,6 +266,7 @@
void smtp_rcpt(arg) char *arg; {
if (!seenmail) { err_wantmail(); return; }
if (!addrparse(arg)) { err_syntax(); return; }
+ if (addrrelay()) { err_relay(); return; }
if (flagbarf) { err_bmf(); return; }
if (relayclient) {
--addr.len;


when i run patch < /usr/src/qmail/qmail-1.03/smtpd.patch
i get this:

[root@baguh qmail-1.03]# patch < /usr/src/qmail/qmail-1.03/smtpd.patch
patching file qmail-smtpd.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
Hunk #1 succeeded at 123 with fuzz 1 (offset 70 lines).
Hunk #2 succeeded at 519 with fuzz 2 (offset 303 lines).
Hunk #3 FAILED at 553.
1 out of 3 hunks FAILED -- saving rejects to file qmail-smtpd.c.rej

this is what in the qmail-smtpd.c.rej file:

***************
*** 569,575 ****
void smtp_rcpt(arg) char *arg; {
if (!seenmail) { err_wantmail(); return; }
if (!addrparse(arg)) { err_syntax(); return; }
- if (addrrelay()) { err_relay(); return; }
if (flagbarf) { err_bmf(); return; }
if (relayclient) {
--addr.len;
--- 553,558 ----
void smtp_rcpt(arg) char *arg; {
if (!seenmail) { err_wantmail(); return; }
if (!addrparse(arg)) { err_syntax(); return; }
if (flagbarf) { err_bmf(); return; }
if (relayclient) {
--addr.len;

any ideas what this patch wont work?

thanks

lenny
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
qmail /service/qmail-send: unable to open supervise mangueJOE Linux - Networking 20 04-19-2016 11:27 PM
Smtp/run file does not exist error when starting Qmail newlinuxgeek Linux - General 3 03-30-2004 04:53 AM
/service/qmail-send/log: up (pid 1924) 20682 seconds, want down fuzzyash Linux - Software 0 02-18-2004 08:42 PM
about qmail, how could i get the auth error log? Freewind Linux - Newbie 0 01-24-2004 03:26 AM
SMTP Error Qmail madhusurabi Linux - General 1 01-04-2002 02:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration