Seferovic Edvin | 1 Jul 2004 01:28
Picon

RE: FS consideration

Hi Sandro...

Thank you for your answer. But are there any official PROs and CONs for
qmail running on different file systems?

Which RBL do you use? 

TIA

Edvin Seferovic

PS: thanks for the linx !

-----Original Message-----
From: Sandro [mailto:enomoto <at> gmail.com] 
Sent: Donnerstag, 01. Juli 2004 00:37
To: qmail-ldap <at> qmail-ldap.org
Subject: Re: FS consideration

Hello Seferovic,

I'm using ext3 (noatime) in my mailstorage, but i thinking to move to
reiserfs.
See the lastest emails in this list about virus/scanner with this
subject: "what is the most recommended AV for qmail-ldap?". I'm using
qmailscanner with clamav and spamassassin.
Qmail and qmail-ldap provide supports to use any RBL.

http://www.nrg4u.com/qmail/QLDAPINSTALL
http://www.flounder.net/qmail/qmail-howto.html
(Continue reading)

Online E-mail | 1 Jul 2004 01:57

RE: Forcing user to authenticate with SMTP AUTH

that is not SMTP-AUTH


On Wed, 2004-06-30 at 00:54, Sandeep Goel wrote:
Use POP-before-SMTP patch. Regards, Sandeep -----Original Message----- From: Bouabid Amine [mailto:bouabid <at> wissal.dz] Sent: Wed 6/30/2004 12:48 To: qmail-ldap <at> qmail-ldap.org Cc: Subject: Forcing user to authenticate with SMTP AUTH Hello I'm installing a QMAIL-LDAP-SMTP-AUTH base server for a big ISP and i need imperatively to authenticate all users befor they send theire e-mail I'm using the patch http://downloads.mrball.net/qmail-ldap/qmail-ldap-1.03-20021001-control-20021014b-authsmtp-by-Jason.patch.gz And courier IMAP for POP3 and IMAP services All work fine, but users could send theire e-mail without SMTP Authentication: Here's a trace of smtp connection telnet 127.0.0.1 25 Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. 220 mail3.wissal.dz ESMTP ehlo cerist.dz 250-mail3.wissal.dz 250-PIPELINING 250-AUTH=LOGIN PLAIN 250-AUTH LOGIN PLAIN 250-SIZE 0 250 8BITMIME mail from: utilisateur <at> mail3.wissal.dz <mailto:utilisateur <at> mail3.wissal.dz> 250 ok Here is my /var/qmail/supervise/qmail-smtpd/run file look like #!/bin/sh QMAILDUID=`id -u qmaild` NOFILESGID=`id -g qmaild` 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 softlimit -m 200000000 \ /usr/local/bin/tcpserver -vR -l $LOCAL -c $MAXSMTPD \ -u $QMAILDUID -g $NOFILESGID 0 smtp \ /var/qmail/bin/qmail-smtpd /var/qmail/bin/auth_smtp /usr/bin/true 2>&1 Many thanks to help me Amine Bouabid
Austin.Just | 1 Jul 2004 03:29

Re: quota bug with 20040401 patch!!! (solved)

Just go and see Claudio's reply on this thread.

On Wed, 30 Jun 2004 10:43:49 -0500 (CDT)
Nicolás de Bari Embríz G. R.  <nbari <at> unixmexico.com> wrote:

> Hello, where can i download the patch i have this same problem.
> 

--
Austin.Just <austinfay <at> hotmail.com>
http://yodoo.com

Hiu Yen Onn | 1 Jul 2004 06:04
Picon

qmailmrtg??

hi,

i am installing qmailmrtg to view the activities of my qmail server.
but, it doesnt work.

this is one of a small chunks of the
qmail.mrtg.cfg file

WorkDir: /path/to/your/qmailstats/directory (Example: /var/www/html/qmailstats)
#############################################################

Title[msg]: mydomain.com - Messages
MaxBytes[msg]: 10000
AbsMax[msg]: 20000
Options[msg]: gauge
Target[msg]: `/usr/local/bin/qmailmrtg7 m /service/qmail/log` 
PageTop[msg]: <B>mydomain.com Messages</B><br>
ShortLegend[msg]: msg
YLegend[msg]: msg
Legend1[msg]: Total Msg
LegendI[msg]: &nbsp;Deliveries:
LegendO[msg]: &nbsp;Attempts:
WithPeak[msg]: ymwd

am i correct if i put "/service/qmail/log????
what is the path to the qmail-send logs, (according to the qmailrocks.org, http://www.qmailrocks.org/extra/qmailmrtg.htm)

furthermore, i didnt see much of the log file in my server?? weird?? where are they???
pls advise... thanks....

Amri (Class | 1 Jul 2004 06:14
Picon

RE: qmailmrtg??

qmailmrtg reads log if using supervise log
like /service/qmail-pop3d/log/run
and automagically create the log file

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s5000000 n30
/var/log/qmail/pop3d

log file is /var/log/qmail/pop3d/current

#understand first what supervise can do !

regards,

amri
classita

-----Original Message-----
From: Hiu Yen Onn [mailto:yohiu <at> shinyang.com.my]
Sent: Thursday, July 01, 2004 12:05 PM
To: qmail-ldap <at> qmail-ldap.org
Subject: qmailmrtg??

hi,

i am installing qmailmrtg to view the activities of my qmail server.
but, it doesnt work.

this is one of a small chunks of the
qmail.mrtg.cfg file

WorkDir: /path/to/your/qmailstats/directory (Example:
/var/www/html/qmailstats)
#############################################################

Title[msg]: mydomain.com - Messages
MaxBytes[msg]: 10000
AbsMax[msg]: 20000
Options[msg]: gauge
Target[msg]: `/usr/local/bin/qmailmrtg7 m /service/qmail/log`
PageTop[msg]: <B>mydomain.com Messages</B><br>
ShortLegend[msg]: msg
YLegend[msg]: msg
Legend1[msg]: Total Msg
LegendI[msg]: &nbsp;Deliveries:
LegendO[msg]: &nbsp;Attempts:
WithPeak[msg]: ymwd

am i correct if i put "/service/qmail/log????
what is the path to the qmail-send logs, (according to the qmailrocks.org,
http://www.qmailrocks.org/extra/qmailmrtg.htm)

furthermore, i didnt see much of the log file in my server?? weird?? where
are they???
pls advise... thanks....

Cassiano Aquino | 1 Jul 2004 06:36
Picon
Gravatar

Re: what is the most recommended AV for qmail-ldap?

I like qscanq because it´s written in C .. the only thing I totally hate in
qmail-scanner is the overhead to load one perl interpreter for each
message.. and use spamassassin in conjunction with some maildrop scripts
using it to teach bogofilter .. when the bogofilter becomes "smart" the
message don´t is passed to spamassassin because it´s some kind of cpu eater

----- Original Message ----- 
From: "Kamau, Allan" <akamau <at> icipe.org>
To: <qmail-ldap <at> qmail-ldap.org>
Sent: Wednesday, June 30, 2004 5:31 AM
Subject: RE: what is the most recommended AV for qmail-ldap?

> You may look at Qmail-scanner using SpamAssassin and ClamAV anti-virus.
>
> Allan
>
> -----Original Message-----
> From: Hiu Yen Onn [mailto:yohiu <at> shinyang.com.my]
> Sent: Wednesday, June 30, 2004 11:14
> To: qmail-ldap <at> qmail-ldap.org
> Subject: what is the most recommended AV for qmail-ldap?
>
> what is the most protection tools for qmail-ldap? it may include
> email-spammer, email-viruscanner, antivirus... and bla..bla...bla...
> what is the product on the market right now is the most reliable, and yet,
> it is economical. or perhaps, what is the newest or reliable tool on the
> market to protect my mail server? pls advise. thanks.
>
> cheers,
> yenonn
>

Claudio Jeker | 1 Jul 2004 08:05

Re: FS consideration

On Thu, Jul 01, 2004 at 12:14:14AM +0200, Seferovic Edvin wrote:
> Hello,
> 
>  
> 
> I need to setup a new mail server for a boarding house with about 200 mail
> accounts. I am going to use a 600MHz machine with 512 MB RAM ( SuSE
> 9.1/kernel2.6.7 ). Of course Ive decided to use qmail-ldap ;) because Ive
> done it already. But this time I want to tweak it because I don't have a
> high tech machine, and because I want to run antispam and antivirus
> protection ( and LDAP server ) on the one machine. Therefore I am glad to
> hear your opinion and suggestions on following topics:
> 
>  
> 
> -          which file system should I use for qmail ( and LDAP ) and
> maildirs partition?
> 
> -          Any other cosiderations about the file system?

ReiserFS is known to have issues with qmail -- especially the queue
directroy. I'm a happy user of UFS/softupdates and with this we are
serving a few thousend accounts on a PII <at> 500. The machine is almost all
the time idle but we do not run qmail-scanner on those.

Normaly it is the best to put the queue and the mailstore on different
disks.

> 
> -          Would it be okay to run SpamAssassin & ClamAV ( with
> qmail-scanner ) all on one box?
> 

ClamAV is not the best AV but it works, is free and you can still add
another one later.

> -          Are there any other useful patches out there ( for spam
> protection for example RBL & checkuser )?
> 

RBL, RCPTVERIFY, SENDERCHECK, SMTPAUTH etc. is all included in qmail-ldap.
No need for additionl patches.

> -          Any step by step tutorials for this implementation?
> 

Read QLDAPINSTALL it is curretly the most up to date document about
qmail-ldap.

--

-- 
:wq Claudio

Cesar Garcia | 1 Jul 2004 10:04

Re: POSIBLE_SPAM: FS consideration

We are using qmail-ldap with Reiserfs in spool directory and queue 
directory and finally i am very happy with results in real enviroment 
with thousands mail accounts and high injection rate of mails per 
second. ( i hate spammers :p)

qmail-scanner, spamassasin, f-prot.

Best Regards.

César García.
    Dept. Sistemas, IdecNet S.A.
    Centro de Gestión de Red.

Seferovic Edvin wrote:
> Hello,
> 
>  
> 
> I need to setup a new mail server for a boarding house with about 200 
> mail accounts. I am going to use a 600MHz machine with 512 MB RAM ( SuSE 
> 9.1/kernel2.6.7 ). Of course Ive decided to use qmail-ldap ;) because 
> Ive done it already. But this time I want to tweak it because I don’t 
> have a high tech machine, and because I want to run antispam and 
> antivirus protection ( and LDAP server ) on the one machine. Therefore I 
> am glad to hear your opinion and suggestions on following topics:
> 
>  
> 
> -          which file system should I use for qmail ( and LDAP ) and 
> maildirs partition?
> 
> -          Any other cosiderations about the file system?
> 
> -          Would it be okay to run SpamAssassin & ClamAV ( with 
> qmail-scanner ) all on one box?
> 
> -          Are there any other useful patches out there ( for spam 
> protection for example RBL & checkuser )?
> 
> -          Any step by step tutorials for this implementation?
> 
>  
> 
> YES – I have googled the web for this topics, but I still think that it 
> is better to get the information from people that have experience with 
> it ;) I am thankful for any suggestions.
> 
>  
> 
> TIA
> 
>  
> 
> Edvin Seferovic
> 
>  
> 
>  
> 
>  
> 

Cesar Garcia | 1 Jul 2004 10:36

pop3 loggin.

Hi All.

I have finnaly running a qmail-ldap box with thousands pop3 accounts 
running in a 2xAMD2000 2GB RAM, Mylex 170 RAID1 4 disks U160 and 10000 rpm.

Reiserfs, slackware, etc...

load average is more or less 0,xxx or 2,xxx. the system result is great 
and performance too.

i believe that loggin system of pop3 accounts is not so good as i hoped.

I think that pop3 loggin may show a more powerfull statistic report for 
every pop3 session than a simply:
------------------
 <at> 4000000040e3b7271349c45c acct: pid 2973: unknown:xxx.xxx.xxx.xxx: 
<user> login
 <at> 4000000040e3b7271349c45c acct: pid 2973: unknown:xxx.xxx.xxx.xxx: 
<user> logout 0 bytes transferred
------------------
using others debug levels increase debug, but not report statistic.

i am afraid my 'c' knowledge is very poor :( (and my english) and 
although i am reading pop3 *.c files i dont know how to increase this 
report.

Any suggests.
warnings (error authentications) dont report associated pid.(may)?
ip reports in pop3 accounting will separate tcpserver pop3 loggin from 
pop3 accounting loggin and you can then associate ip connections with a 
pop3 accounting pid.
finally statistics reports like qpopper statistic reports may be greats.
example
-------------------------
acct: pid 2973 from 100.100.100.100 to 100.100.100.100 <user> login
acct: pid 2973 report D:8 L:9 BT:2789 BL:45678
-------------------------

final report mean like D:  messages downloads in this session, L: number 
of message left in server BT: bytes transfers BT: bytes left in server.

Is only a suggest and if i can help in any way, i will like to do it.

Best Regards and THANKS for these great work.
--

-- 

César García.
    Dept. Sistemas, IdecNet S.A.
    Centro de Gestión de Red.
    Edificio IdecNet. C/Juan XXIII 44.
    E-35004, Las Palmas de Gran Canaria,
    Islas Canarias - España.
    Tfn:  +34 828 111 000 Ext: 340

Stefan Paletta | 1 Jul 2004 14:24

Re: pop3 loggin.

Cesar,

find attached a modification to qmail-pop3d I am using. This will
make qmail-pop3d report the initial number of messages in mailbox,
number of messages remaining, size of all messages, size of messages
remaining, and bytes transferred to client.

> warnings (error authentications) dont report associated pid.(may)?
> ip reports in pop3 accounting will separate tcpserver pop3 loggin from 
> pop3 accounting loggin and you can then associate ip connections with a 
> pop3 accounting pid.

I did not quite understand the other features you mentioned, so if
you could explain once more ...

Btw. there seems to be a quirk with the 'login' accouning -- I some-
times see these lines run together with the next line from another
process.

-Stefan
-- 
 junior guru   SP666-RIPE     JID:stefanp <at> jabber.de.cw.net    SMP <at> IRC
Index: qmail-pop3d.c
===================================================================
--- qmail-pop3d.c	(revision 10)
+++ qmail-pop3d.c	(revision 14)
 <at>  <at>  -25,6 +25,13  <at>  <at> 
 #include "qmail-ldap.h"

 int qfd;
+
+struct message {
+  int flagdeleted;
+  unsigned long size;
+  char *fn;
+} *m;
+unsigned int numm;

 /* level 0 = no logging
          1 = fatal errors
 <at>  <at>  -50,13 +57,38  <at>  <at> 

 void log_quit(void)
 {
+  unsigned int i;
+  unsigned long before;
+  unsigned long after;
+  unsigned int remain;
   char strnum[FMT_ULONG];

   logit(2, "acct:");
   logit(2, logs_pidhostinfo.s);
   logit(2, "logout ");
+
+  before = after = 0;
+  remain = 0;
+  for (i = 0;i < numm;++i) {
+    before  += m[i].size;
+    if (!m[i].flagdeleted) {
+      after += m[i].size;
+      remain++;
+    }
+  }
+
+  strnum[fmt_uint(strnum,numm)] = 0;
+  logit(2, strnum);  logit(2, ":");
+  strnum[fmt_uint(strnum,remain)] = 0;
+  logit(2, strnum);  logit(2, " ");
+  
+  strnum[fmt_ulong(strnum,before)] = 0;
+  logit(2, strnum);  logit(2, ":");
+  strnum[fmt_ulong(strnum,after)] = 0;
+  logit(2, strnum);  logit(2, " ");
+
   strnum[fmt_ulong(strnum,log_bytes)] = 0;
-  logit(2, strnum); logitf(2, " bytes transferred");
+  logitf(2, strnum);
 }

 void die(void) { log_quit(); _exit(0); }
 <at>  <at>  -112,11 +144,11  <at>  <at> 

 void err_syntax(void) { err("syntax error"); logitf(3, "error: syntax error"); }
 void err_unimpl(void) { err("unimplemented"); logitf(3, "error: unimplemented"); }
-void err_deleted(void) { err("already deleted"); logitf(3, "already deleted"); }
-void err_nozero(void) { err("messages are counted from 1"); logitf(3, "messages are counted from 1"); }
-void err_toobig(void) { err("not that many messages"); logitf(3, "not that many messages"); }
-void err_nosuch(void) { err("unable to open that message"); logitf(3, "unable to open that message"); }
-void err_nounlink(void) { err("unable to unlink all deleted messages"); logitf(3, "unable to unlink
all deleted messages"); }
+void err_deleted(void) { err("already deleted"); logitf(3, "error: already deleted"); }
+void err_nozero(void) { err("messages are counted from 1"); logitf(3, "error: messages are counted
from 1"); }
+void err_toobig(void) { err("not that many messages"); logitf(3, "error: not that many messages"); }
+void err_nosuch(void) { err("unable to open that message"); logitf(3, "error: unable to open that
message"); }
+void err_nounlink(void) { err("unable to unlink all deleted messages"); logitf(3, "error: unable to
unlink all deleted messages"); }

 void okay(void) { putstr("+OK \r\n"); flush(); }

 <at>  <at>  -142,7 +174,7  <at>  <at> 
   remoteip = env_get("TCPREMOTEIP");
   if (!remoteip) remoteip = "unknown";
   remotehost = env_get("TCPREMOTEHOST");
-  if (!remotehost) remotehost = "unknown";
+  if (!remotehost) remotehost = "";
   remoteinfo = env_get("TCPREMOTEINFO");
   if (!remoteinfo) remoteinfo = "";
   user = env_get("USER");
 <at>  <at>  -151,7 +183,7  <at>  <at> 
   if (!stralloc_copys(&logs_pidhostinfo, " pid ")) die_nomem();
   strnum[fmt_ulong(strnum,getpid())] = 0;
   if (!stralloc_cats(&logs_pidhostinfo, strnum)) die_nomem();
-  if (!stralloc_cats(&logs_pidhostinfo, ": ")) die_nomem();
+  if (!stralloc_cats(&logs_pidhostinfo, " ")) die_nomem();

   if (!stralloc_cats(&logs_pidhostinfo, remotehost)) die_nomem();
   if (!stralloc_cats(&logs_pidhostinfo, ":")) die_nomem();
 <at>  <at>  -197,13 +229,6  <at>  <at> 
 stralloc filenames = {0};
 prioq pq = {0};

-struct message {
-  int flagdeleted;
-  unsigned long size;
-  char *fn;
-} *m;
-unsigned int numm;
-
 unsigned int last = 0;

 void getlist(void)

Gmane