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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
10-06-2004, 10:53 AM
|
#1
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Rep:
|
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
|
|
|
10-11-2004, 09:07 AM
|
#2
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
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.
|
|
|
10-12-2004, 10:23 PM
|
#3
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
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
|
|
|
10-13-2004, 01:09 AM
|
#4
|
Member
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736
Rep:
|
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.
|
|
|
10-13-2004, 11:16 AM
|
#5
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
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
|
|
|
10-13-2004, 11:35 AM
|
#6
|
Member
Registered: Oct 2004
Location: Chicago, IL
Distribution: Fedora Core 2
Posts: 101
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 08:59 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|