This is a discussion on Stuck in queue using MailScanner within the alt.comp.mail.qmail forums, part of the Mail Servers and Related category; I struggle now for some time to get my qmail installation working correctly. I know it's quite a long ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I struggle now for some time to get my qmail installation working
correctly. I know it's quite a long post and therefore even more i appreciate any hint or suggestion somebody can give me. Thank you! Having a new server with plesk 7.0 management software installed i've wanted to improve my basic qmail server by using MailScanner. The basic qmail server installed by plesk was working perfectly, i was able to send and receive email. At openprotect side i've found a promising package of opensource tools ( MailScanner, SpamAssassin and Clam AV) with support for qmail ( still beta they say). In order to support qmail they provide a new qmail-queue binary which basically reroutes all traffic to a newly created 'queue.in' directory. From there the MailScanner periodically checks newly arrived messages and moves them into the "real" queue directory. So far everything works okay. I get all the messages scanned and put into the "real" queue directory, but from there no messages are delivered, locally or remotely. When sending a message from another host or locally i get something similar to the following in my maillog: Mar 1 21:02:39 u15151422 MailScanner[10150]: New Batch: Scanning 1 messages, 58 5 bytes Mar 1 21:02:39 u15151422 MailScanner[10150]: MCP Checks: Starting Mar 1 21:02:49 u15151422 MailScanner[10150]: Virus and Content Scanning: Starti ng Mar 1 21:02:50 u15151422 MailScanner[10150]: Uninfected: Delivered 1 messages There is no mentioning of qmail. I find this very strange... Before i would get a complete history. Checking the queue status i get: [me@bubu bin]# ./qmail-qstat messages in queue: 31 messages in queue but not yet preprocessed: 0 And qmail-qread returns nothing... [me@bubu bin]# ./qmail-qread [me@bubu bin]# Looking into the real queue directory all messages seem to be at S4, waiting for the qmail-send to kick in. http://www.cyberis.net/support/qmail...NTERNALS.phtml There are no message hung in the "queue.in" directory. I've compared all permissions in my queue directory with a post that i found http://www.google.com/groups?safe=im....gov&lr=&hl=en No discrepancies found. Processes all look fine. qmails 9355 0.0 0.0 1420 348 pts/1 S 18:48 0:00 qmail-send qmaill 9357 0.0 0.0 1380 408 pts/1 S 18:48 0:00 splogger qmail root 9358 0.0 0.0 1412 332 pts/1 S 18:48 0:00 qmail-lspawn ../Maildir/ qmailr 9359 0.0 0.0 1404 312 pts/1 S 18:48 0:00 qmail-rspawn qmailq 9360 0.0 0.0 1376 300 pts/1 S 18:48 0:00 qmail-clean qmailq 10146 0.0 2.3 13580 11828 ? S 20:01 0:00 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner.conf qmailq 10150 0.0 5.1 28032 26212 ? S 20:01 0:02 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner.conf qmailq 10245 0.0 5.1 27896 26072 ? S 20:01 0:02 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner.conf qmailq 10253 0.0 5.1 27832 25984 ? S 20:01 0:01 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner.conf qmailq 10254 0.0 5.1 27832 25984 ? S 20:01 0:01 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner.conf qmailq 10255 0.0 5.1 27836 25988 ? S 20:01 0:02 /usr/bin/perl -I/usr/lib/MailScanner /usr/sbin/MailScanner /etc/MailScanner/MailScanner.conf i do not have the qmailctrl script installed on my box, but using splogger i supose everything is logged into maillog. Trying to force the immediate delivery or error message by sending an alarm signal to qmail-send does not produce any output in my maillog file. [me@bubu bin]# kill -s SIGALRM 9355 I wonder if using a supervised qmail is the only way to get more log information or if i'm missing something here. I guess it must be some permission problem, or a simple configuration issue. To give you the complete overview here as well my configuration: [me@bubu bin]# ./qmail-showctl qmail home directory: /var/qmail. user-ext delimiter: -. paternalism (in decimal): 2. silent concurrency limit: 1000. subdirectory split: 23. user ids: 2021, 2020, 2022, 0, 2023, 2520, 2521, 2522. group ids: 2020, 2520. badmailfrom: (Default.) Any MAIL FROM is allowed. bouncefrom: (Default.) Bounce user name is MAILER-DAEMON. bouncehost: (Default.) Bounce host name is bubu.com. concurrencylocal: (Default.) Local concurrency is 10. concurrencyremote: (Default.) Remote concurrency is 20. databytes: SMTP DATA limit is 0 bytes. defaultdomain: (Default.) Default domain name is bubu.com. defaulthost: (Default.) Default host name is bubu.com. doublebouncehost: (Default.) 2B recipient host: bubu.com. doublebounceto: (Default.) 2B recipient user: postmaster. envnoathost: (Default.) Presumed domain name is bubu.com. helohost: (Default.) SMTP client HELO host name is bubu.com. idhost: (Default.) Message-ID host name is bubu.com. localiphost: (Default.) Local IP address becomes bubu.com. locals: Messages for localhost are delivered locally. me: My name is bubu.com. percenthack: (Default.) The percent hack is not allowed. plusdomain: (Default.) Plus domain name is bubu.com. qmqpservers: (Default.) No QMQP servers. queuelifetime: (Default.) Message lifetime in the queue is 604800 seconds. rcpthosts: SMTP clients may send messages to recipients at resotech.org. SMTP clients may send messages to recipients at bubu.com. morercpthosts: (Default.) No effect. morercpthosts.cdb: (Default.) No effect. smtpgreeting: (Default.) SMTP greeting: 220 bubu.com. smtproutes: (Default.) No artificial SMTP routes. timeoutconnect: (Default.) SMTP client connection timeout is 60 seconds. timeoutremote: (Default.) SMTP client data timeout is 1200 seconds. timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds. virtualdomains: Virtual domain: resotech.org:3 Virtual domain: bubu.com:2 servercert.pem: I have no idea what this file does. clientcert.pem: I have no idea what this file does. Thank you Stephan |
|
|||
|
On 1 Mar 2004 18:53:52 -0800, Stephan Christen <schristen@resotech.com> may have written:
> > Having a new server with plesk 7.0 management software installed i've There is your first mistake. Plesk is NOT qmail. Plesk has violated the licensing terms set forth by djb. Don't use it. > In order to support qmail they provide a new qmail-queue binary which > basically reroutes all traffic to a newly created 'queue.in' directory. > From there the MailScanner periodically checks newly arrived messages > and moves them into the "real" queue directory. So far everything works > okay. I get all the messages scanned and put into the "real" queue > directory, but from there no messages are delivered, locally or remotely. Well, because you aren't using qmail (you are using plesk), and you have heavily modified the way qmail operates with this MailScanner program, what precisely do you think we can do about it? > When sending a message from another host or locally i get something > similar to > the following in my maillog: > Mar 1 21:02:39 u15151422 MailScanner[10150]: New Batch: Scanning 1 > messages, 58 > 5 bytes > Mar 1 21:02:39 u15151422 MailScanner[10150]: MCP Checks: Starting > Mar 1 21:02:49 u15151422 MailScanner[10150]: Virus and Content > Scanning: Starti > ng > Mar 1 21:02:50 u15151422 MailScanner[10150]: Uninfected: Delivered 1 > messages > > There is no mentioning of qmail. I find this very strange... Before i > would get a complete history. That should tell you something. > Checking the queue status i get: > [me@bubu bin]# ./qmail-qstat > messages in queue: 31 > messages in queue but not yet preprocessed: 0 > > And qmail-qread returns nothing... > > [me@bubu bin]# ./qmail-qread > [me@bubu bin]# At best, your queue is corrupt. > Looking into the real queue directory all messages seem to be at S4, > waiting for the qmail-send to kick in. > http://www.cyberis.net/support/qmail...NTERNALS.phtml > > There are no message hung in the "queue.in" directory. > > I've compared all permissions in my queue directory with a post that i > found > http://www.google.com/groups?safe=im....gov&lr=&hl=en > No discrepancies found. > [snip ps output] > > Trying to force the immediate delivery or error message by sending an > alarm > signal to qmail-send does not produce any output in my maillog file. > [me@bubu bin]# kill -s SIGALRM 9355 > > I wonder if using a supervised qmail is the only way to get more log > information or if i'm missing something here. I guess it must be some > permission problem, or a simple configuration issue. > > To give you the complete overview here as well my configuration: > [me@bubu bin]# ./qmail-showctl > qmail home directory: /var/qmail. > user-ext delimiter: -. > paternalism (in decimal): 2. > silent concurrency limit: 1000. > subdirectory split: 23. > user ids: 2021, 2020, 2022, 0, 2023, 2520, 2521, 2522. > group ids: 2020, 2520. > > badmailfrom: (Default.) Any MAIL FROM is allowed. > > bouncefrom: (Default.) Bounce user name is MAILER-DAEMON. > > bouncehost: (Default.) Bounce host name is bubu.com. > > concurrencylocal: (Default.) Local concurrency is 10. > > concurrencyremote: (Default.) Remote concurrency is 20. > > databytes: SMTP DATA limit is 0 bytes. > > defaultdomain: (Default.) Default domain name is bubu.com. > > defaulthost: (Default.) Default host name is bubu.com. > > doublebouncehost: (Default.) 2B recipient host: bubu.com. > > > doublebounceto: (Default.) 2B recipient user: postmaster. > > envnoathost: (Default.) Presumed domain name is bubu.com. > > > helohost: (Default.) SMTP client HELO host name is bubu.com. > > idhost: (Default.) Message-ID host name is bubu.com. > > localiphost: (Default.) Local IP address becomes bubu.com. > > locals: > Messages for localhost are delivered locally. > > me: My name is bubu.com. > > percenthack: (Default.) The percent hack is not allowed. > > plusdomain: (Default.) Plus domain name is bubu.com. > > qmqpservers: (Default.) No QMQP servers. > > queuelifetime: (Default.) Message lifetime in the queue is 604800 > seconds. > > rcpthosts: > SMTP clients may send messages to recipients at resotech.org. > SMTP clients may send messages to recipients at bubu.com. > > > morercpthosts: (Default.) No effect. > > morercpthosts.cdb: (Default.) No effect. > > smtpgreeting: (Default.) SMTP greeting: 220 bubu.com. > > smtproutes: (Default.) No artificial SMTP routes. > > timeoutconnect: (Default.) SMTP client connection timeout is 60 > seconds. > > timeoutremote: (Default.) SMTP client data timeout is 1200 seconds. > > timeoutsmtpd: (Default.) SMTP server data timeout is 1200 seconds. > > virtualdomains: > Virtual domain: resotech.org:3 > Virtual domain: bubu.com:2 > > servercert.pem: I have no idea what this file does. > > clientcert.pem: I have no idea what this file does. This looks fine, but it has nothing to do with your problems. You aren't getting logs, so how are you running qmail-send? You aren't using supervise, so you have no run script, do you have /var/qmail/rc ? -- Brian T Glenn delink.net Internet Services |
![]() |
| Thread Tools | |
| Display Modes | |
|
|