Don't send

2001-11-28 Thread root

Hi all,

 my system is Caldera eServer 2.3, 2.4.12+grsecurity,
I use these packages:

qmail-1.03
ucspi-tcp-0.88
daemontools-0.70
autoresponder-1.14.0
procmail-3.21
qmailadmin-1.0
sqwebmail-3.2.0
vopomail5.0
amavis0.21
fast forward0.51
dot forward-0.71
maildrop1.3.5
tnef-1.1.1
sophos antivurus

I have installed the qmail mta server many many time, but now with these

pachages the server don't send nothing message.
I have only virtualdomains create with vpopmail.

I have only one general procedure for set the mta server.

I would liketto know if there is a bug in the vpopmail5, because I don't

understand where is the problem.

 vpopmail procedure install:

 ./configure --enable-roaming-users=y
 make
 make install-strip

Thanking in advance and sorry for my english.

Giuliano.







creating new domains problem

2001-11-28 Thread o k

i've installed 

1.qmail-1.03

2.vpopmail-5.0

3.mysql-3.23.40

the problem is when i create a domain using vpopmail:

vadddomain domain-name(x) [postmaster password]

it returns :
the domain does not exist

when i check in the mysql database i find a table with the same name of the
domain that i have created (x) 

when i try to open this table

mysql says that it's empty

what do you think is the problem

thank you


Cannot read this message in arabic?
Join the EGYPTIAN mail community @ http://www.masrawy.com



virus scan features & prices ?

2001-11-28 Thread Toph Kemmann

Could anyone please share his experience which is the best and
cheapest commercial virus scanner "addon" for qmail-scanner for about
100 domains (one IP) ?

Trend's Virus scanner
Sophos's "sweep" virus scanner 
H+BEDV's antivir scanner 
Kaspersky's AVPLinux scanner 
MacAfee's (NAI's) virus scanner 
F-Secure Anti-Virus scanner 
InocuLAN Anti-Virus scanner 
...
???

-- 
Best regards,
 Toph  mailto:[EMAIL PROTECTED]





利用網路賺錢,不用成本,不景氣自救之道

2001-11-28 Thread miwabear




§Q¥Îºô¸ô¡A¤­¤ÀÄÁÁÈ¿ú¡A¤£¥Î¦¨¥»¡A¤£´º®ð¦Û±Ï¤§¹D  
==±z¥i¥H¦hÁȤ@¨Ç¬ü°ê¤Hªº¿ú!!¸Õ¤@¤U¤Ï¥¿¨S·l¥¢=[[¥ý¬Ý³o¸Ì===]]    
¦Ñ¥~³oºØIdea¯u±Ð¤H§éªA,¤£¹L¦b¥xÆW¥i¯à¨S³o­Ó¥«³õ,¥L­n§Aªº    
¯u¹ê¦a§}©m¦W¤~¦³¥Î,§A¤]­n¨Ï¥Î¯u¹ê¦a§}©m¦W¤~¥i¦¬¨ì¦^õXª÷,    
(¦¹Á|½T«O¸ê®Æªº¥¿½T©Ê)¥L¦A±N¦¹¯u¹ê¦a§}¤ñ¦¬Áʧ󰪪º»ù®æÂà½æ    
(°ê¥~³q«H¶lÁʫܲ±¦æ©Ò¥H»Ý­n¦W³æ),¨ä¹ê¥LÁÙ¬O¦³ÁÈ¿úªº,¦ý¹ï§A    
¦Ó¨¥­Ë¬OµL¥é(³»¦h¦h¦¬¤@¨Ç¼s§i«H,²¦³º§Ú­Ì¤£¦b¬ü°ê¥»¤g,©Ò¥H¤£    
ÁÈ¥Õ¤£ÁÈ!§Ú¤w¸g¦¬¨ì¿ú¤F(ÁÙ¨S¦¬¨ì¼s§i«H)    
,´«§A¸Õ¬Ý¬Ý!¤£¹L­n¶X¦­¦]¤£¾å±o¥L­þ®É·|­Ë³¬[[=ÅéÅç¤À¨É]]> ¥»¤H©ñ°²´Á©ñ±o¹ê¦bµL²á¡A°£¤F¤WºôÁÙ¬O¤Wºô¡I¦bºô¤Wº©´å¹Lµ{¤¤¡A> 
§Úµo²{¤F¤@­Ó°ÝÃD¡A¬°¤°»ò¦U­Óºô¯¸³£¯àÅý§AÁȨì«Ü¦h¿ú©O¡H> ´N¾aµÛ¤@«Ê E-mailÂI´X¦^¼s§i¤]³£¯àÁȨì¿ú?Ãø¥H¸m«H¡A> 
¤Ñ¤U­þ¦³¥Õ¦Yªº¤ÈÀ\¡H¦ý¬O¹ê¦b¬OµL²á°Ú¡A¤Ï¥¿¶¢µÛ¤]¬O¶¢?¡A> §ä¤F¤@­Ó¤£­n¨­¥÷¡A¤£­n·|­û¡A¥u­n¦³­Ó¦a§}¡A¸¹½X´N¯à¥Ó½Ð¨ìªººô¯¸¡A> 
¥Ó½Ð¦¨¤F·|­û¡K¡K¡]¤£¹L·Q¤@·Q,ÁȤ£¨ì¤]¤£·|¦YÁ«^o^¡^> µ¥¤F¤@­Ó¤ë¡A¨â­Ó¤ë¡K¤°»ò¶×´Ú³æ¡H³s¼v¤l³£¨S¦³¡I ¦A·Q..¡A> 
µL©Ò¿×¤F¡K¡K¤Ï¥¿¤]¨S¦Y¨ìÁ«¡K ^^ ´N·í¬O°­°g¤ß¬¤@¦^§a!> ¥i¤@ª½¨ì¤F²Ä3­Ó¤ë¡K¡K ¬ðµM¡K¡K¶×´Ú¨ì¤F¡H¡I ¤£¬Ý¤£ª¾¹D¡A> 
¤@¬ÝÀ~¤@¸õ¡I 9¦Ê¦h¬üª÷¡H¹³°µ¹Ú¤@¼Ë¡K¡K¶R¤F¤@¨Ç¤@ª½·Q¶RªºªFªF¡K¡K> °ª¿³¤§¾l¡A¤S¶}©l¤F§Úªº«Å¶Ç¡I«Å¶Ç¶V¦h¡AÁȪº¶V¦h? ^o^ 
ªGµM¡A> ¤£¨ì¤@­Ó¤ë¡A¤S­¸¨Ó¤F¤@±i³æ¤l¡I 1¤d3¦Ê¦h¬üª÷¡K¡K ¯u¬OÃø¥H¥H¸m«H¡I> 
¤S¹L¤F¤@­Ó¤ë¤W¤É¨ì¤F2¤d4¦Ê¦h¬üª÷¡K¡K¦p¤µ¡A¤£¥Î¤W¯Z¤]¦³¿úªá¤F¡A> ¤£¹LÁÙ¬O·í¥´¹s¤u§a.¯u¬O©Ç«v©Ç«v¡I §A¤£«H¡H¨º¤]¨S¿ìªk¡I> 
¥u¥i±¤³o¥Õªáªáªº»È¤l¹Æ¡K¡K¤£¹L¡A¥j¤H¤ª¡G¡§¹ç¥i«H¨ä¦³¡A¤£¥i«H¨äµL¡¨°Ú¡K¡K ¤Ï¥¿¤]¤£¦YÁ« ¡A´N·íºÆ¤@¦^¬Ý¬Ý¹À¡K¡K ¬Û«H§Ú¡A¨S¿ùªº¡I> 
¥[¤J¤èªk«Ü²³æªº®@*** http://www.MintMail.com/?m=1293679> 
¶i¤J¤W­±ºô¯¸¡]ÂIÀ»¤£¦¨¡A½Æ»s,¶K¤W¦a§}¡^¥´¶}ºô­¶¡AÂI¿ï¥k¤W¤è> click here ¬¡°Ê¹Ï¼Ð¡A©ÎÂIÄx¦â FREE Sign-up page 
¦r¼Ë¤]¥i¡I> µM«á¡A¸òµÛ´£¥Ü¡A¤@¨B¤@¨B¿é¤J«H®§´Nok¤F¡C> ­È±o°ª¿³ªº¬O¥¦¯à¿ë§O¤¤¤å«H®§¡A¦Ó¯à100%¥[¤J¡I> 
¤U­±¬O§Ú¬°¤F¤è«K¤j®aªº¥[¤J¸Ô²Ó»¡©ú¥[¤J¹Lµ{¤¤ªº¨BÆJ> - First name*: ¦W¦r¡]¨Ò¡G¤pµØ ¡^ - Last Name*: ©m ¡]¨Ò¡GªL 
¡^ -> Company Name: ¥i¤£¶ñ - Street Address*:®a®x¦í§}¡G> ¡]¤@©w­n¶ñ¼g¡A¤£µM¦¬¤£¨ì¶×´Ú³æ?¡I¡^ 
¨Ò¡Gxx¸ôxx¬qxx¸¹ -> City*: «°¥«¦W (¨Ò¡GHsinchu ­^¤å¶ñ¼g ) - State*: ¥i¤£¶ñ> Zip*: ¡] 
¶ñ500¡^ - Country*: °ê®a¡] ¿ï Taiwan¡^ -> Phone*: ¹q¸Ü¸¹½X ¡] °ê®a¥N½X886 + 
¥h±¼°Ï¦ì¸¹«e0ªº¸¹½X?¡^> ¨Ò¡G03-1234567 ¡÷ 886-3-1234567¡^ - Fax: ¥i¤£¶ñ -> E-mail*: 
¹q¤l«H½c¡]©Ò¦³ªº¥æ¬y³£³q¹L«H½c¡A©Ò¥H°È¥²¶ñ¼g¥¿½T¡^> Confirm E-mail*: ¦A¦¸¿é¤J«H½c¦a§} * -> Year 
of birth*: ¥X¥Í¦~¤ë¤é ¨Ò¡G1970¡B1980> Gender*: ©Ê§O Male¡]¨k¡^, Female ¡]¤k¡^ -> 
Password*: ±K½X¡]6¦ì¥H¤W¡^** -> Confirm Password: 
½T©w±K½X¡]¥²¶·©M¤W­±¬Û¦P¡^**> -how do you want to receive commissions that you 
earn?> ¥H¤°»ò§Î¦¡±µ¦¬Â§«~¡Hgift certificates(double$$) ¦UºØÂ§«~> *cash ²{ª÷ 
¦p­n§«~¯à¦¬¨ìÂù­¿»ù®æªºªF¦è¡A> ¦ý³£¬O¤@¨Ç­^¤åª©ªº®ÑÄy¡BºÏ¤ù¡B¥úºÐµ¥µ¥¹ï©ó¥xÆW¤H¨ÓÁ¿¡AÁÙ¬O²{ª÷¤ñ¸û¦Xºâ¨Ç> ¿ï cash - do 
you want to be notified when your referrals> sing up? ¥[¤J·|­û¦¨¥\®É³qª¾§A?¡H¿ï yes - 
MintMail.com ?> ¿ï¦Û¤vªº·R¦n©Î¿³½ì ¡]³Ì¦h¥i¿ï10ºØ¡^> Submit 
ÂI¿ï¥¦¿Ã¹õ¤W´N·|¥X²{ thank you ªº¦r¼Ë¦P®É§AªºID> ¡]¥Î¤¤¤å¦W¦r¡^©M±K½X¤]·|¥X²{¦b«Ì¹õ¤W,°O¦í¦í¥¦¡A¥[¤J§¹¦¨¡A> ¤@¤Áok¤F¡I®¥³ß ^o^ 
µM«á¡A5¤ÀÄÁ¤§«á§A·|¦¬¨ì¤@«ÊÅwªï«H> ³o¼Ë´N¶}©l·Ç³Æ¦¬¬üª÷¤F^^ok>> °O±o¥[¤J·|­û«á¡A«ö¥ªÃ䪺members log in¡AµM«á¿é¤J§AªºID©M±K½X> ´N¥i¬Ý¨ì 
Your Referral Link to recruit new MintMail members is:> http://www.MintMail.com/?m=1293679 
¥u­n·ÓµÛ³o­Óºô§}±Hµ¹ªB¤Í­Ì> ¡AÅý¥L­Ì¨ì³oºô¯¸¡A§A´N·|¦³¿ú®³¡A´N³o»ò²³æ(ª`·N:½Ð±N1293679§ï¬°§AªºID¸¹½X)¡C> ±b¸¹µn¤J«áªºµe­±:> Members 
you have personally referred to date:359 Åã¥Ü¤U½uªº¼Æ¥Ø> Members referred by 
your Referrals:1423 Åã¥Ü¤U¤U½uªº¼Æ¥Ø> Emails you have personally read*:231 x 
05 = $11.5 ¦Û¤w¦¬¨ìªºmail  
¤@«Ê0.05¬ü¤¸ --->Emails 
read* by your Referrals:1568 x .03 = $47.04 ¤U½u¦¬¨ìªºmail  
¤@«Ê0.03¬ü¤¸ > 
Emails read* by your Referrals Referrals:33951 x .02 = $679.02¤U¤U½u¦¬¨ìªºmail  
¤@«Ê0.02¬ü¤¸ -> 
TOTAL (CASH - Month)    $737.56  Á`­p¦h¤Ö> 
³o¼Ë´N¨â¸U¦h¤¸ªº¦¬¤J¡A¦Ó¥B¤£·|°±¤î¡A¦hÁÈÂI¬ü°ê¤Hªº¿ú§a!!

vchkpw logging total eMails?!

2001-11-28 Thread Martin Hasenbein

Hi,

is there a patch available for vpopmail 5.0 / vchkpw
to log, how many eMails the user is downloading, e.g.
how many are there for downloading? I've found
something on the net, which produces an output like this:

Nov 28 13:05:13  daemon qmail-pop3d: user: (null), mails: 3,
size: 105598


/mh

--

Martin Hasenbein -- [EMAIL PROTECTED]

 UNIX, a way of life.
FreeBSD, my choice of living.



Re: vchkpw logging total eMails // separate pop log

2001-11-28 Thread Barry Hill

Hi,


Wednesday, November 28, 2001, 12:34:04 PM, you wrote:
MH> is there a patch available for vpopmail 5.0 / vchkpw
MH> to log, how many eMails the user is downloading, e.g.


I use the following script (called poplog), which I found elsewhere
and adapted. It does just that. Important: see "NOTES" below!!

=== poplog begin ===
#!/bin/sh
newmail=`ls $PWD/Maildir/new/ | wc -l`
newmailbytes=`du -sb $PWD/Maildir/new/ | cut -f 1`

oldmail=`ls $PWD/Maildir/cur/ | wc -l`
oldmailbytes=`du -sb $PWD/Maildir/cur/ | cut -f 1`

USER="Username: `basename $PWD`"
pushd .. 1>/dev/null
DIR="`basename $PWD`"
popd 1>/dev/null

echo "$USER@$DIR" "New mails: " "$newmail" "(" "$newmailbytes" " \
Bytes); Old mails: " "$oldmail" " (" "$oldmailbytes" " Bytes)" | \
/var/qmail/bin/splogger pop3d 18  

pop="$1"; shift; exec "$pop" "$@"
=== poplog end ===


"poplog" is called in my qmail startup script like so:

==
/usr/local/bin/tcpserver -RHO -v 0 pop3 /var/qmail/bin/qmail-popup \
FQDN /data/vpopmail/bin/vchkpw.log_to_local2 /batches/poplog \
/var/qmail/bin/qmail-pop3d Maildir 2>&1 | /var/qmail/bin/splogger \
pop3d 18 &
==


NOTE!
=
My pop users were clogging up /var/log/mail, so I hard coded syslog
facility "local2" into qmail-vchkpw (saved as "vchkpw.log_to_local2")
in the above example, so all pop activity goes to /var/log/pop3. I
assume you're using standard logging, so please replace all instances
of "18" with "2" for standard "/var/log/mail" logging.

ALSO replace FQDN with your own FQDN, of course!!


Best regards,

 Barry




RE: virus scan features & prices ?

2001-11-28 Thread Tren Blackburn

I personally use F-Secure.  It was about 400$USD for a server license.

Regards,

Tren.

> -Original Message-
> From: Toph Kemmann [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 2:58 AM
> To: [EMAIL PROTECTED]
> Subject: virus scan features & prices ?
> 
> 
> Could anyone please share his experience which is the best and
> cheapest commercial virus scanner "addon" for qmail-scanner for about
> 100 domains (one IP) ?
> 
> Trend's Virus scanner
> Sophos's "sweep" virus scanner 
> H+BEDV's antivir scanner 
> Kaspersky's AVPLinux scanner 
> MacAfee's (NAI's) virus scanner 
> F-Secure Anti-Virus scanner 
> InocuLAN Anti-Virus scanner 
> ...
> ???
> 
> -- 
> Best regards,
>  Toph  mailto:[EMAIL PROTECTED]
> 
> 
> 



Re: courir-imap and vpopmail

2001-11-28 Thread Ken Jones

On Tue, 2001-11-27 at 23:36, yanayun wrote:
> hi all,
> i need help 
> 
> i want to setup my webmail using courir-imap
> can courir-imap read vpopmail user?? 
> 
> it's always read my /etc/passwd 
> 
> i need step-by-step configure courir-imap read vpopmail user
> hehehehe.. 

All the information you need is in courier-imap
INSTALL file. 

Ken Jones




Re: Don't send

2001-11-28 Thread Ken Jones

On Wed, 2001-11-28 at 03:17, root wrote:
> Hi all,
> 
>  my system is Caldera eServer 2.3, 2.4.12+grsecurity,
> I use these packages:
> 
> qmail-1.03
> ucspi-tcp-0.88
> daemontools-0.70
> autoresponder-1.14.0
> procmail-3.21
> qmailadmin-1.0
> sqwebmail-3.2.0
> vopomail5.0
> amavis0.21
> fast forward0.51
> dot forward-0.71
> maildrop1.3.5
> tnef-1.1.1
> sophos antivurus
> 
> I have installed the qmail mta server many many time, but now with these
> 
> pachages the server don't send nothing message.
> I have only virtualdomains create with vpopmail.
> 
> I have only one general procedure for set the mta server.
> 
> I would liketto know if there is a bug in the vpopmail5, because I don't
> 
> understand where is the problem.
> 
>  vpopmail procedure install:
> 
>  ./configure --enable-roaming-users=y
>  make
>  make install-strip
> 
> Thanking in advance and sorry for my english.

There are no known bugs in vpopmail (besides what Bill found
with the vmoduser program). 

Please do not assume that out of all of the packages you
installed that the problem lies with vpopmail.

More detailed information, including log file entries
would be needed to accurately pin point where your problem lies.

Ken Jones





Re: virus scan features & prices ?

2001-11-28 Thread Rick Macdougall

Hi,

I use trophie, which uses Trends .so and ptn file.
http://www.vanja.com/tools/trophie/

Regards,

Rick

- Original Message -
From: "Toph Kemmann" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 4:58 AM
Subject: virus scan features & prices ?


Could anyone please share his experience which is the best and
cheapest commercial virus scanner "addon" for qmail-scanner for about
100 domains (one IP) ?

Trend's Virus scanner
Sophos's "sweep" virus scanner
H+BEDV's antivir scanner
Kaspersky's AVPLinux scanner
MacAfee's (NAI's) virus scanner
F-Secure Anti-Virus scanner
InocuLAN Anti-Virus scanner
...
???

--
Best regards,
 Toph  mailto:[EMAIL PROTECTED]







Re: creating new domains problem

2001-11-28 Thread Ken Jones

I see your problem. the syntax you are using to add a
domain is incorrect.

domain-name(x) is not a valid domain name.

Ken Jones

On Wed, 2001-11-28 at 01:34, o k wrote:
> i've installed 
> 
> 1.qmail-1.03
> 
> 2.vpopmail-5.0
> 
> 3.mysql-3.23.40
> 
> the problem is when i create a domain using vpopmail:
> 
> vadddomain domain-name(x) [postmaster password]
> 
> it returns :
> the domain does not exist
> 
> when i check in the mysql database i find a table with the same name of the
> domain that i have created (x) 
> 
> when i try to open this table
> 
> mysql says that it's empty
> 
> what do you think is the problem
> 
> thank you
> 
> 
> Cannot read this message in arabic?
> Join the EGYPTIAN mail community @ http://www.masrawy.com
> 





RE: virus scan features & prices ?

2001-11-28 Thread Dallas Engelken


> -Original Message-
> From: Rick Macdougall [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 8:24 AM
> To: Toph Kemmann; [EMAIL PROTECTED]
> Subject: Re: virus scan features & prices ?
>
>
> Hi,
>
> I use trophie, which uses Trends .so and ptn file.
> http://www.vanja.com/tools/trophie/
>
> Regards,
>
> Rick
>

And I would recommend sophie.
http://www.vanja.com/tools/sophie/
It works with sophos virus scanner.

This can be done at no cost, by going to
http://www.sophos.com/downloads/products/unix.html
and downloading the software after requesting your username and password.
just make sure you put "single user" / "home user" for "evaluation
purposes".

This will let you get your foot in the door without having to dish out $400
for a commercial scanner.  I'm not sure if any other companies do something
similar?

Dallas




Re: virus scan features & prices ?

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 10:26 AM, Dallas Engelken wrote:
> And I would recommend sophie.
> http://www.vanja.com/tools/sophie/
> It works with sophos virus scanner.
>
> This can be done at no cost, by going to
> http://www.sophos.com/downloads/products/unix.html
> and downloading the software after requesting your username and 
> password.
> just make sure you put "single user" / "home user" for "evaluation
> purposes".
>
> This will let you get your foot in the door without having to dish out 
> $400
> for a commercial scanner.  I'm not sure if any other companies do 
> something
> similar?

Macafee's virusscan doesn't appear to expire, either.

-Bill




Re: virus scan features & prices ?

2001-11-28 Thread Rick Macdougall

Hi,

The .so and ptn files from Trend are available on their website
(www.antivirus.com) free of charge.  I don't know what license issue this
may bring up in a commercial environment though when using Trophie but I
can't find anything about it on their website.

Oh and btw I have the modified qmail-scanner.pl and a self made
sub-trophie.pl if anyone needs it for use with trophie.

Regards,

Rick

- Original Message -
From: "Dallas Engelken" <[EMAIL PROTECTED]>
To: "Rick Macdougall" <[EMAIL PROTECTED]>; "Toph Kemmann" <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 11:26 AM
Subject: RE: virus scan features & prices ?



> -Original Message-
> From: Rick Macdougall [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 8:24 AM
> To: Toph Kemmann; [EMAIL PROTECTED]
> Subject: Re: virus scan features & prices ?
>
>
> Hi,
>
> I use trophie, which uses Trends .so and ptn file.
> http://www.vanja.com/tools/trophie/
>
> Regards,
>
> Rick
>

And I would recommend sophie.
http://www.vanja.com/tools/sophie/
It works with sophos virus scanner.

This can be done at no cost, by going to
http://www.sophos.com/downloads/products/unix.html
and downloading the software after requesting your username and password.
just make sure you put "single user" / "home user" for "evaluation
purposes".

This will let you get your foot in the door without having to dish out $400
for a commercial scanner.  I'm not sure if any other companies do something
similar?

Dallas






Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

open-smtp does not update, even with vpopmail-5.0
Roaming users dont seem to work. What should I check? Where should I look?
I tested by using fetchmail from my office network from behind a firewall.
 Please help, 
  Thanks,

-Phil
---
 Background: Running 

OS: Conectiva Linux, Kernel 2.4.5-9cl 
vpopmail 5.0 (configured roaming users), 
qmail-1.03
ucspi-tcp-0.88
daemontools-0.76
vpopmail-5.0


===
== Some settings: =
===
# cat /home/vpopomail/tcp.smtp (modified)
127.0.0.:allow,RELAYCLIENT=""
6.9.25.:allow,RELAYCLIENT=""

# cat /etc/xinetd.d/pop-3
service pop-3
{
disable = no
socket_type = stream
protocol= tcp
wait= no
user= vpopmail   # Required for lock file ownership.
server  = /var/qmail/bin/qmail-popup
server_args = mail.merilex.net /home/vpopmail/bin/vchkpw 
/var/qmail/bin/qmail-pop3d Maildir
}

Using daemontools:

# cat /service/qmail-smtpd/run
===
#!/bin/sh
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
exec /usr/local/bin/softlimit -m 200 \
/usr/local/bin/tcpserver -v -H -R -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb \
-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
===

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread David Gartner

This may be a stupid question, but... did you setup a crontab to run 
clearopensmtp to recompile the tcprules?


[EMAIL PROTECTED] wrote:

>open-smtp does not update, even with vpopmail-5.0
>Roaming users dont seem to work. What should I check? Where should I look?
>I tested by using fetchmail from my office network from behind a firewall.
> Please help, 
>  Thanks,
>
>-Phil
>---
> Background: Running 
>
>OS: Conectiva Linux, Kernel 2.4.5-9cl 
>vpopmail 5.0 (configured roaming users), 
>qmail-1.03
>ucspi-tcp-0.88
>daemontools-0.76
>vpopmail-5.0
>
>
>===
>== Some settings: =
>===
># cat /home/vpopomail/tcp.smtp (modified)
>127.0.0.:allow,RELAYCLIENT=""
>6.9.25.:allow,RELAYCLIENT=""
>
># cat /etc/xinetd.d/pop-3
>service pop-3
>{
>disable = no
>socket_type = stream
>protocol= tcp
>wait= no
>user= vpopmail   # Required for lock file ownership.
>server  = /var/qmail/bin/qmail-popup
>server_args = mail.merilex.net /home/vpopmail/bin/vchkpw 
>/var/qmail/bin/qmail-pop3d Maildir
>}
>
>Using daemontools:
>
># cat /service/qmail-smtpd/run
>===
>#!/bin/sh
>QMAILDUID=`id -u qmaild`
>NOFILESGID=`id -g qmaild`
>exec /usr/local/bin/softlimit -m 200 \
>/usr/local/bin/tcpserver -v -H -R -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb \
>-u "$QMAILDUID" -g "$NOFILESGID" 0 smtp /var/qmail/bin/qmail-smtpd 2>&1
>===
>
>-Phil Carinhas
>--
> ..
> | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
> | Fortuitous Technologies Inc. | http://fortuitous.com   |
> | Linux Consulting & Training  | Tel : 1-512-467-2154|
> `'
>






Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp


On Wednesday, November 28, 2001, at 11:22 AM, [EMAIL PROTECTED] wrote:

> open-smtp does not update, even with vpopmail-5.0
> Roaming users dont seem to work. What should I check? Where should I 
> look?
> I tested by using fetchmail from my office network from behind a 
> firewall.
>  Please help,
>   Thanks,

What are the permissions on open-smtp?  Is it editable by the user that 
your pop server runs as?  Also, did you compile vpopmail with 
roamin-users?  If so, is your tcp.smtp file in an unusual place?

Regards,

Bill Shupp




RE: virus scan features & prices ?

2001-11-28 Thread Charles J. Boening

Been using F-Prot for about a month now. Seems to work pretty good.

http://www.f-prot.com/f-prot/products/fplin.html



I wrote a qmail-scanner module and a patch to qmail scanner.  They can
be had at:
http://www.theboenings.com/qmail-scanner



Charles Boening




-Original Message-
From: Rick Macdougall [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, November 28, 2001 8:57 AM
To: [EMAIL PROTECTED]; Toph Kemmann; [EMAIL PROTECTED]
Subject: Re: virus scan features & prices ?


Hi,

The .so and ptn files from Trend are available on their website
(www.antivirus.com) free of charge.  I don't know what license issue
this may bring up in a commercial environment though when using Trophie
but I can't find anything about it on their website.

Oh and btw I have the modified qmail-scanner.pl and a self made
sub-trophie.pl if anyone needs it for use with trophie.

Regards,

Rick

- Original Message -
From: "Dallas Engelken" <[EMAIL PROTECTED]>
To: "Rick Macdougall" <[EMAIL PROTECTED]>; "Toph Kemmann"
<[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 11:26 AM
Subject: RE: virus scan features & prices ?



> -Original Message-
> From: Rick Macdougall [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 8:24 AM
> To: Toph Kemmann; [EMAIL PROTECTED]
> Subject: Re: virus scan features & prices ?
>
>
> Hi,
>
> I use trophie, which uses Trends .so and ptn file. 
> http://www.vanja.com/tools/trophie/
>
> Regards,
>
> Rick
>

And I would recommend sophie. http://www.vanja.com/tools/sophie/
It works with sophos virus scanner.

This can be done at no cost, by going to
http://www.sophos.com/downloads/products/unix.html
and downloading the software after requesting your username and
password. just make sure you put "single user" / "home user" for
"evaluation purposes".

This will let you get your foot in the door without having to dish out
$400 for a commercial scanner.  I'm not sure if any other companies do
something similar?

Dallas









Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Photocon

I too am having the same problem, and in looking at the permissions I see 
that open-smtp in ~/vpopmail/etc/ is owned by root and is a 0 byte file ( I 
suspect because its owned by root). In addition, lastauth in each pop 
users' directory is also owned by root. Chowning these doesn't make a 
difference, as they revert back to root (along with any open-smtp.tmp 
file). What's going on?

At 11:32 AM 11/28/01 -0600, you wrote:

>On Wednesday, November 28, 2001, at 11:22 AM, [EMAIL PROTECTED] wrote:
>
>>open-smtp does not update, even with vpopmail-5.0
>>Roaming users dont seem to work. What should I check? Where should I look?
>>I tested by using fetchmail from my office network from behind a firewall.
>>  Please help,
>>   Thanks,
>
>What are the permissions on open-smtp?  Is it editable by the user that 
>your pop server runs as?  Also, did you compile vpopmail with 
>roamin-users?  If so, is your tcp.smtp file in an unusual place?
>
>Regards,
>
>Bill Shupp
>

--Photocon
Conrad Hunziker III
www.nightskyent.com




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 11:48 AM, Photocon wrote:

> I too am having the same problem, and in looking at the permissions I 
> see that open-smtp in ~/vpopmail/etc/ is owned by root and is a 0 byte 
> file ( I suspect because its owned by root). In addition, lastauth in 
> each pop users' directory is also owned by root. Chowning these doesn't 
> make a difference, as they revert back to root (along with any 
> open-smtp.tmp file). What's going on?

Are you running courier-imap with roaming users as well?

-Bill




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

On Wed, Nov 28, 2001 at 11:32:49AM -0600, Bill Shupp wrote:
> On Wednesday, November 28, 2001, at 11:22 AM, [EMAIL PROTECTED] wrote:
> 
> > open-smtp does not update, even with vpopmail-5.0
> > Roaming users dont seem to work. What should I check? Where should I 
> > look?

> What are the permissions on open-smtp?  
 -rw-rw-rw-   1 vpopmail vchkpw  0 Nov 28 11:40 open-smtp
> Is it editable by the user that your pop server runs as?  
  Apparently yes.
> Also, did you compile vpopmail with roamin-users?  
  Yes
> If so, is your tcp.smtp file in an unusual place?
  its in /home/vpopmail/tcp.smtp:
  -rw-r--r--   1 vpopmail vchkpw 62 Nov 27 18:19 tcp.smtp
  I did NOT modify the default location in ./configure


BTW, I did put the clearopensmtp in root's crontab:

 crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (crontab.vpopmail installed on Tue Nov 27 16:54:34 2001)
# (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
40 * * * * /home/vpopmail/bin/clearopensmtp 2>&1 > /dev/null

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Photocon

At 11:49 AM 11/28/01 -0600, Bill Shupp wrote:
>On Wednesday, November 28, 2001, at 11:48 AM, Photocon wrote:
>
>>I too am having the same problem, and in looking at the permissions I see 
>>that open-smtp in ~/vpopmail/etc/ is owned by root and is a 0 byte file ( 
>>I suspect because its owned by root). In addition, lastauth in each pop 
>>users' directory is also owned by root. Chowning these doesn't make a 
>>difference, as they revert back to root (along with any open-smtp.tmp 
>>file). What's going on?
>
>Are you running courier-imap with roaming users as well?

Sorry - forgot to include my specs

Im running vpopmail5.0 (upgrade from 4.9.10) with qmail installed as 
described in LWQ. I am not running imap.

I also had the same problem with 4.9.10 I do have the tcp.smtp file in 
/etc/tcp.smtp and that does update every hour (from the crontab), but I 
dont see attempts to update that either (probably because open-smtp is 
unreadable?). Vpopmail was configured with --enable-tcp.smtp and I have 
verified that it is looking at /etc (not ~/vpopmail/etc/ ) in config.h.

--Photocon
Conrad Hunziker III
www.nightskyent.com




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 12:02 PM, [EMAIL PROTECTED] wrote:

> On Wed, Nov 28, 2001 at 11:32:49AM -0600, Bill Shupp wrote:
>> On Wednesday, November 28, 2001, at 11:22 AM, [EMAIL PROTECTED] wrote:
>>
>>> open-smtp does not update, even with vpopmail-5.0
>>> Roaming users dont seem to work. What should I check? Where should I
>>> look?
>
>> What are the permissions on open-smtp?
>  -rw-rw-rw-   1 vpopmail vchkpw  0 Nov 28 11:40 open-smtp
>> Is it editable by the user that your pop server runs as?
>   Apparently yes.
>> Also, did you compile vpopmail with roamin-users?
>   Yes
>> If so, is your tcp.smtp file in an unusual place?
>   its in /home/vpopmail/tcp.smtp:

Should be /home/vpopmail/etc/tcp.smtp

-Bill




qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Steve Fulton

Hi all,

   I need an alternative POP daemon to use that's compatiable with 
Vpopmail.  This is urgent, so I'd appreciate any feedback on your 
experiences with what is available..

   FYI, I'm having 2 clients with severe POP problems -- basically their 
POP sessions drop mid way thru downloading mail.  Unfortunately its not at 
one message or one type of message.  It seems to be very random.  If anyone 
has experienced this problem, I'd also appreciate some feedback.

-- Steve.




Re: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 12:08 PM, Steve Fulton wrote:

> Hi all,
>
>   I need an alternative POP daemon to use that's compatiable with 
> Vpopmail.  This is urgent, so I'd appreciate any feedback on your 
> experiences with what is available..
>
>   FYI, I'm having 2 clients with severe POP problems -- basically their 
> POP sessions drop mid way thru downloading mail.  Unfortunately its not 
> at one message or one type of message.  It seems to be very random.  If 
> anyone has experienced this problem, I'd also appreciate some feedback.

I don't know about the problems you're having.. but you can try Sam's 
pop server.  If you install courier-imap, it gets installed.  Just make 
sure it uses only the authvchkpw module, and couriertcpd as -user 
vpopmail -user vchkpw unless you have domains under multiple /etc/passwd 
uids.

It supports maildirsize, too, so if you happen to use my maildirquota 
patch with vpopmail, your quota usage will get updated when you delete 
mail, unlike qmail-pop3d.  : )  But you lose vchkpw's logging, which is 
a drag.

Also, it's ready to go for secure pop connections.

Regards,

Bill Shupp




Re: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Steve Fulton

At 13:12 28/11/2001, Bill Shupp wrote:

>I don't know about the problems you're having.. but you can try Sam's pop 
>server.

   Thanks Bill, I wasn't aware the Sam's POP server was installed with the 
IMAP package (I didn't want to install a new MTA, lol).  As for your 
maildirquota patch, where can I find it?  www.shupp.org?  Yup, there it is 
.. thanks.

 -- Steve




Re: virus scan features & prices ?

2001-11-28 Thread Steve Valliere


I've been looking at the files you offered.  I must be missing some basiic
knowledge (or I've skipped too much reading), but I haven't figured out
what the .diff files are to be used for.

Also, it seems that update.sh does this:

  1.  GET the new .DEF files from a web site.
  2.  REMOVE the files just downloaded.
  3.  UNZIP the files just downloaded.

I may be missing something, but shouldn't 2 and 3 be in the opposite order?

--
Steve Valliere|  [EMAIL PROTECTED]
Electronic Visions, Inc.  |  http://www.e-visions.com
1650 Barrett Drive|
Rockledge, FL  32955  |

Copyright (C) 2001 by Steven P Valliere
All Rights Reserved



Re: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Ken Jones

I saw this once with an ISP. 
They traced it down to some networking router configurations.
I never found out the details tho.

Ken 

On Wed, 2001-11-28 at 12:08, Steve Fulton wrote:
> Hi all,
> 
>I need an alternative POP daemon to use that's compatiable with 
> Vpopmail.  This is urgent, so I'd appreciate any feedback on your 
> experiences with what is available..
> 
>FYI, I'm having 2 clients with severe POP problems -- basically their 
> POP sessions drop mid way thru downloading mail.  Unfortunately its not at 
> one message or one type of message.  It seems to be very random.  If anyone 
> has experienced this problem, I'd also appreciate some feedback.
> 
>   -- Steve.
> 
> 





QMAILQUEUE

2001-11-28 Thread Dallas Engelken

I am having a problem with qmail-scanner, maybe someone has an idea here.
I have installed everything and did ../contrib/test_installation.sh -doit
and those tests passed just fine.  I can also do this.

# QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
# echo "to:root" | /var/qmail/bin/qmail-inject

And then I receive a message with the appropriate headers.
X-Qmail-Scanner: 1.01 (Clean. Processed in 1.54129 secs)


However..

When I try and add this QMAILQUEUE variable to my smtp supervise script, and
then try and send a message through it, here are the results..

--
[root@localhost qmail-smtpd]# telnet localhost 2525
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
220 localhost ESMTP
mail from: root
250 ok
rcpt to: root
250 ok
data
354 go ahead
.
451 qq temporary problem (#4.3.0)
--

I added just the two lines to my supervise script.

--
#!/bin/sh

QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
export QMAILQUEUE

QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`

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





Re: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 12:22 PM, Steve Fulton wrote:

> At 13:12 28/11/2001, Bill Shupp wrote:
>
>> I don't know about the problems you're having.. but you can try Sam's 
>> pop server.
>
>   Thanks Bill, I wasn't aware the Sam's POP server was installed with 
> the IMAP package (I didn't want to install a new MTA, lol).  As for 
> your maildirquota patch, where can I find it?  www.shupp.org?  Yup, 
> there it is .. thanks.

FYI: I'm not running my maildirquota patch or Sam's pop server in 
production yet, just for the record.  Still testing, making some 
changes, etc.  You might want to do the same before jumping into 
it...  ; )

Also, that maildirquota patch does NOT have the vgetent (cdb) and 
vmoduser fixes that I posted to the list last week for vpopmail 5.0.  
I'm planning to post a 2.5 version of the maildirquota patch that will 
have them in there, maybe later today or tomorrow.

Regards,

Bill




Re: QMAILQUEUE

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 12:34 PM, Dallas Engelken wrote:

> I am having a problem with qmail-scanner, maybe someone has an idea 
> here.
> I have installed everything and did ../contrib/test_installation.sh 
> -doit
> and those tests passed just fine.  I can also do this.
>
> # QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
> # echo "to:root" | /var/qmail/bin/qmail-inject
>
> And then I receive a message with the appropriate headers.
> X-Qmail-Scanner: 1.01 (Clean. Processed in 1.54129 secs)
>
>
> However..
>
> When I try and add this QMAILQUEUE variable to my smtp supervise 
> script, and
> then try and send a message through it, here are the results..
>
> --
> [root@localhost qmail-smtpd]# telnet localhost 2525
> Trying 127.0.0.1...
> Connected to localhost.localdomain.
> Escape character is '^]'.
> 220 localhost ESMTP
> mail from: root
> 250 ok
> rcpt to: root
> 250 ok
> data
> 354 go ahead
> .
> 451 qq temporary problem (#4.3.0)
> --
>
> I added just the two lines to my supervise script.
>
> --
> #!/bin/sh
>
> QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
> export QMAILQUEUE
>
> QMAILDUID=`id -u qmaild`
> NOFILESGID=`id -g qmaild`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
>
> exec /usr/local/bin/softlimit -m 200 \
> /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c 
> "$MAXSMTPD"
> \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 qmail 
> /var/qmail/bin/qmail-smtpd
> 2>&1
> --

Try increasing your softlimit or not using softlimit.  I couldn't get it 
set correctly, so I stopped using softlimit.  But I didn't try that 
hard, either.  ; )

-Bill




RE: QMAILQUEUE

2001-11-28 Thread Dallas Engelken

> 
> Try increasing your softlimit or not using softlimit.  I couldn't get it 
> set correctly, so I stopped using softlimit.  But I didn't try that 
> hard, either.  ; )
> 
> -Bill

Bingo.. thanks Bill.
Dallas 



RE: QMAILQUEUE

2001-11-28 Thread Tren Blackburn

A softlimit of 500 or 600 is usually enough.  it also depends on
what virus scanner you're using as well.  the more scanners, the higher the
limit.  Mine is around 800 because I use two scanners.

Tren.

> -Original Message-
> From: Bill Shupp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 11:38 AM
> To: [EMAIL PROTECTED]
> Subject: Re: QMAILQUEUE
>
>
> On Wednesday, November 28, 2001, at 12:34 PM, Dallas Engelken wrote:
>
> > I am having a problem with qmail-scanner, maybe someone has an idea
> > here.
> > I have installed everything and did ../contrib/test_installation.sh
> > -doit
> > and those tests passed just fine.  I can also do this.
> >
> > # QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
> > # echo "to:root" | /var/qmail/bin/qmail-inject
> >
> > And then I receive a message with the appropriate headers.
> > X-Qmail-Scanner: 1.01 (Clean. Processed in 1.54129 secs)
> >
> >
> > However..
> >
> > When I try and add this QMAILQUEUE variable to my smtp supervise
> > script, and
> > then try and send a message through it, here are the results..
> >
> > --
> > [root@localhost qmail-smtpd]# telnet localhost 2525
> > Trying 127.0.0.1...
> > Connected to localhost.localdomain.
> > Escape character is '^]'.
> > 220 localhost ESMTP
> > mail from: root
> > 250 ok
> > rcpt to: root
> > 250 ok
> > data
> > 354 go ahead
> > .
> > 451 qq temporary problem (#4.3.0)
> > --
> >
> > I added just the two lines to my supervise script.
> >
> > --
> > #!/bin/sh
> >
> > QMAILQUEUE=/var/qmail/bin/qmail-scanner-queue.pl
> > export QMAILQUEUE
> >
> > QMAILDUID=`id -u qmaild`
> > NOFILESGID=`id -g qmaild`
> > MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> >
> > exec /usr/local/bin/softlimit -m 200 \
> > /usr/local/bin/tcpserver -v -R -l 0 -x /etc/tcp.smtp.cdb -c
> > "$MAXSMTPD"
> > \
> > -u "$QMAILDUID" -g "$NOFILESGID" 0 qmail
> > /var/qmail/bin/qmail-smtpd
> > 2>&1
> > --
>
> Try increasing your softlimit or not using softlimit.  I couldn't get it
> set correctly, so I stopped using softlimit.  But I didn't try that
> hard, either.  ; )
>
> -Bill
>
>




Re: QMAILQUEUE

2001-11-28 Thread Bill Shupp


On Wednesday, November 28, 2001, at 12:43 PM, Tren Blackburn wrote:

> A softlimit of 500 or 600 is usually enough.  it also depends on
> what virus scanner you're using as well.  the more scanners, the higher 
> the
> limit.  Mine is around 800 because I use two scanners.

When I was running 2 scanners, 6MB was not enough.  But now I only run 
1.  Here's what Jason Haar has to say about it:

http://qmail-scanner.sourceforge.net/FAQ.php#resources


-Bill




Re: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Steve Fulton

At 13:34 28/11/2001, Ken Jones wrote:

>I saw this once with an ISP.
>They traced it down to some networking router configurations.
>I never found out the details tho.

   That was my initial thought to, and the clients do use a proxy to dial 
into us & pick up their e-mail.  But after a lot of work, I do not believe 
that's the issue here.  I've got a theory, but I won't speculate publicly 
until I'm positive.  Oh, I don't believe its related to Vpopmail ;)

-- Steve.




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 12:51 PM, [EMAIL PROTECTED] wrote:

> On Wed, Nov 28, 2001 at 12:06:14PM -0600, Bill Shupp wrote:
>> Should be /home/vpopmail/etc/tcp.smtp
>
>   Sorry, it actually is.. forgot the etc/
> -Phil Carinhas

Well, I'm not sure what the problem is.  If you run all your domains 
under vpopmail/vchkpw, I recommend running your pop server as that user 
(and couriertcpd if you run imap with roaming users).  And just keep 
open-smtp, tcp.smtp and tcp.smtp.cdb in ~vpopmail/etc, and make sure all 
those files are owned by vpopmail.vchkpw.  Should be as simple as that.

Cheers,

Bill




more Qmailqueue and virus scan stuff

2001-11-28 Thread Trey Nolen

Recently I posted a question about getting qmailqueue to send mail through a
virus scanner and a spam scanner.  I found a patch that will do just that,
so I thought I'd share it here since there has been a lot of virus talk
lately.

I am running Sophos Sweep. They have a pretty good deal for ISPs. I think
for us it worked out to about $.20 per month.  We are more than willing to
pay that for the extra service. The auto updates work well. The spam scanner
I am using is SpamAssassin found at spamassassin.taint.org. It is very
agressive, and we have had a few legitimate emails get blocked, but it is
VERY effective on spam.  Since Procmail doesn't seem to work well with
Vpopmail, we decided to use QMAILQUEUE to run everything through the
scanners.  This works, but does have the disadvantage that filters are not
customizable per user.  Here is the patch we used to get it to run the two
scanners...it was written by a guy named Kobe Lenjou and posted to the
Spamassassin list. Maybe it will be useful to some of you.

Trey


*** qmail-scanner-1.01/qmail-scanner-queue.template Thu Sep  6 23:12:20
2001
--- qmail-scanner-1.01-pattched/qmail-scanner-queue.template_with_spam  Wed
Nov 21 15:58:32 2001
***
*** 155,160 
--- 155,168 
  my $uudecode_binary='UUDECODE_BINARY';
  my $uudecode_pipe='UUDECODE_PIPE';

+ #Kobe SpamAssasin Hack - if $spamcheck is 1 then spamcheck is done
+ my $spamcheck = 1; #Enabled
+ #my $spamcheck = 0; #Disabled
+ my $spamc='/var/qmail/tools/spamc -f ';
+ #These strings will be regexpd against the recieps var
+ my $spam_rec = ', ,
publinet.be,moerman.co
m';
+ #End of part 1 of 2 of the SpamAssasin hack
+
  #my
($uvscan_binary,$sweep_binary=$iscan_binary=$hbedv_binary=$avpdaemon_binar
y)=';
  #my ($avp_binary=$fsecure_binary=$inocucmd_binary)=';

***
*** 325,331 
  &email_quarantine_report;
} else {
  &qmail_smtpd_check;
!
&qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"
);
}
alarm 0;
  };
--- 333,364 
  &email_quarantine_report;
} else {
  &qmail_smtpd_check;
! #Mail passed all virus check, now do a spam check
! if ($spamcheck == 1) {
! my @spamusers = split(',',$spam_rec);
! my $spam_var;
! my $spam_flag = 0;
! foreach $spam_var (@spamusers) {
! $spam_var =~ s/ //mgi;
! debug("Spamuser: -".$spam_var."-");
! my $spamaddr = ($recips =~ /.*($spam_var).*/mi);
! debug("Find?: $spamaddr");
! if ($spamaddr == 1) {
! $spam_flag = 1;
! last;
! }
! }
! &debug("Recieps: $recips");
! if ($spam_flag == 1) {
! &debug("Now checking message for spam");
! &debug("Executing: $spamc <
$scandir/$wmaildir/new/$file_id >
$scandir/$wmaildir/tmp/$file_id");
! system ("$spamc < $scandir/$wmaildir/new/$file_id >
$scandir/$
wmaildir/tmp/$file_id");
! rename
("$scandir/$wmaildir/tmp/$file_id","$scandir/$wmaildir/
new/$file_id");
! } else {
! &debug("Message NOT scanned for spam");
! }
!  }
!
&qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new/$file_id"
 )
;
}
alarm 0;
  };






Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

> On Wednesday, November 28, 2001, at 12:02 PM, [EMAIL PROTECTED] wrote:
> 
> > On Wed, Nov 28, 2001 at 11:32:49AM -0600, Bill Shupp wrote:
> >> On Wednesday, November 28, 2001, at 11:22 AM, [EMAIL PROTECTED] wrote:
> >>
> >>> open-smtp does not update, even with vpopmail-5.0
> >>> Roaming users dont seem to work. What should I check? Where should I
> >>> look?
> >
> >> What are the permissions on open-smtp?
> >  -rw-rw-rw-   1 vpopmail vchkpw  0 Nov 28 11:40 open-smtp
> >> Is it editable by the user that your pop server runs as?
> >   Apparently yes.
> >> Also, did you compile vpopmail with roamin-users?
> >   Yes
> >> If so, is your tcp.smtp file in an unusual place?
 Typo:
its in /home/vpopmail/etc/tcp.smtp:
> Should be /home/vpopmail/etc/tcp.smtp
 it is..

 Also, what do I do with all the lock files in  /home/vpopmail/etc/ ?
ex:
...
open-smtp.tmp.4624
open-smtp.tmp.4626
open-smtp.tmp.4628


-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Dallas Engelken

> This works, but does have the disadvantage that filters are not
> customizable per user.  Here is the patch we used to get it to run the two
> scanners...it was written by a guy named Kobe Lenjou and posted to the
> Spamassassin list. Maybe it will be useful to some of you.
>
> Trey

Can you not run your virus detection via QMAILQUEUE and then have option
spam filtering that pipes through the users .qmail file?




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Ken Jones

On Wed, 2001-11-28 at 13:03, [EMAIL PROTECTED] wrote:
> > On Wednesday, November 28, 2001, at 12:02 PM, [EMAIL PROTECTED] wrote:
> > 
> > > On Wed, Nov 28, 2001 at 11:32:49AM -0600, Bill Shupp wrote:
> > >> On Wednesday, November 28, 2001, at 11:22 AM, [EMAIL PROTECTED] wrote:
> > >>
> > >>> open-smtp does not update, even with vpopmail-5.0
> > >>> Roaming users dont seem to work. What should I check? Where should I
> > >>> look?
> > >
> > >> What are the permissions on open-smtp?
> > >  -rw-rw-rw-   1 vpopmail vchkpw  0 Nov 28 11:40 open-smtp
> > >> Is it editable by the user that your pop server runs as?
> > >   Apparently yes.
> > >> Also, did you compile vpopmail with roamin-users?
> > >   Yes
> > >> If so, is your tcp.smtp file in an unusual place?
>  Typo:
> its in /home/vpopmail/etc/tcp.smtp:
> > Should be /home/vpopmail/etc/tcp.smtp
>  it is..
> 
>  Also, what do I do with all the lock files in  /home/vpopmail/etc/ ?
> ex:
> ...
> open-smtp.tmp.4624
> open-smtp.tmp.4626
> open-smtp.tmp.4628

I've seen that in older 4.10 and 4.9 version of vpopmail.
We traced it down to tcprules not completing correctly and
hence not removing the temporary file. 

Ken




RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Tren Blackburn

Just as an FYI, I am using this patch on all my mail servers now and it's
working fantastically.  You do have to do some modifications as his patch
was made for the bleeding edge version of spamassassin, plus you have to
update the paths and stuff.  Just beware of that, but once all that is
worked out, it's a great patch, and I'm very happy with it

Regards,

Tren.

> -Original Message-
> From: Trey Nolen [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 11:56 AM
> To: [EMAIL PROTECTED]
> Subject: more Qmailqueue and virus scan stuff
>
>
> Recently I posted a question about getting qmailqueue to send
> mail through a
> virus scanner and a spam scanner.  I found a patch that will do just that,
> so I thought I'd share it here since there has been a lot of virus talk
> lately.
>
> I am running Sophos Sweep. They have a pretty good deal for ISPs. I think
> for us it worked out to about $.20 per month.  We are more than willing to
> pay that for the extra service. The auto updates work well. The
> spam scanner
> I am using is SpamAssassin found at spamassassin.taint.org. It is very
> agressive, and we have had a few legitimate emails get blocked, but it is
> VERY effective on spam.  Since Procmail doesn't seem to work well with
> Vpopmail, we decided to use QMAILQUEUE to run everything through the
> scanners.  This works, but does have the disadvantage that filters are not
> customizable per user.  Here is the patch we used to get it to run the two
> scanners...it was written by a guy named Kobe Lenjou and posted to the
> Spamassassin list. Maybe it will be useful to some of you.
>
> Trey
>
>
> *** qmail-scanner-1.01/qmail-scanner-queue.template Thu Sep
> 6 23:12:20
> 2001
> ---
> qmail-scanner-1.01-pattched/qmail-scanner-queue.template_with_spam  Wed
> Nov 21 15:58:32 2001
> ***
> *** 155,160 
> --- 155,168 
>   my $uudecode_binary='UUDECODE_BINARY';
>   my $uudecode_pipe='UUDECODE_PIPE';
>
> + #Kobe SpamAssasin Hack - if $spamcheck is 1 then spamcheck is done
> + my $spamcheck = 1; #Enabled
> + #my $spamcheck = 0; #Disabled
> + my $spamc='/var/qmail/tools/spamc -f ';
> + #These strings will be regexpd against the recieps var
> + my $spam_rec = ', ,
> publinet.be,moerman.co
> m';
> + #End of part 1 of 2 of the SpamAssasin hack
> +
>   #my
> ($uvscan_binary,$sweep_binary=$iscan_binary=$hbedv_binary=$avpdaemon_binar
> y)=';
>   #my ($avp_binary=$fsecure_binary=$inocucmd_binary)=';
>
> ***
> *** 325,331 
>   &email_quarantine_report;
> } else {
>   &qmail_smtpd_check;
> !
> &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new
> /$file_id"
> );
> }
> alarm 0;
>   };
> --- 333,364 
>   &email_quarantine_report;
> } else {
>   &qmail_smtpd_check;
> ! #Mail passed all virus check, now do a spam check
> ! if ($spamcheck == 1) {
> ! my @spamusers = split(',',$spam_rec);
> ! my $spam_var;
> ! my $spam_flag = 0;
> ! foreach $spam_var (@spamusers) {
> ! $spam_var =~ s/ //mgi;
> ! debug("Spamuser: -".$spam_var."-");
> ! my $spamaddr = ($recips =~ /.*($spam_var).*/mi);
> ! debug("Find?: $spamaddr");
> ! if ($spamaddr == 1) {
> ! $spam_flag = 1;
> ! last;
> ! }
> ! }
> ! &debug("Recieps: $recips");
> ! if ($spam_flag == 1) {
> ! &debug("Now checking message for spam");
> ! &debug("Executing: $spamc <
> $scandir/$wmaildir/new/$file_id >
> $scandir/$wmaildir/tmp/$file_id");
> ! system ("$spamc < $scandir/$wmaildir/new/$file_id >
> $scandir/$
> wmaildir/tmp/$file_id");
> ! rename
> ("$scandir/$wmaildir/tmp/$file_id","$scandir/$wmaildir/
> new/$file_id");
> ! } else {
> ! &debug("Message NOT scanned for spam");
> ! }
> !  }
> !
> &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new
> /$file_id"
>  )
> ;
> }
> alarm 0;
>   };
>
>
>
>




Re: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Philip Wall



On 28 Nov 01, at 13:55, Steve Fulton wrote:

> At 13:34 28/11/2001, Ken Jones wrote:
> 
> >I saw this once with an ISP.
> >They traced it down to some networking router configurations.
> >I never found out the details tho.
> 
>That was my initial thought to, and the clients do use a proxy to dial 
> into us & pick up their e-mail.  But after a lot of work, I do not believe 
> that's the issue here.  I've got a theory, but I won't speculate publicly 
> until I'm positive.  Oh, I don't believe its related to Vpopmail ;)
> 

I've had this happen with a few dialup clients before using fetchmail. 
Their ISPs routers where overloaded and dropping packets and tcp 
streams randomly. It was only usually noticable on large 
downloads, say over 100k.
The fix was to wait for off peak hours to relax the load on the 
routers but in the mean time it was possible to switch them to 
IMAP retrieval with fetchmail and tell it to only fetch mail of a 
certain size or smaller.

Phil Wall



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 01:03 PM, [EMAIL PROTECTED] wrote:
>
>  Also, what do I do with all the lock files in  /home/vpopmail/etc/ ?
> ex:
> ...
> open-smtp.tmp.4624
> open-smtp.tmp.4626
> open-smtp.tmp.4628

Delete them.  THIS is related to your problem.  I found the same thing 
with courier-imap and vchkpw were both trying to update the open-smtp 
file using different permissions.

-Bill




Re: more Qmailqueue and virus scan stuff

2001-11-28 Thread Trey Nolen

Yes, but when you have 1000's of users, that is a LOT of .qmail files to
update. Also, changes made in qmailadmin will blow away the part of the
.qmail files that pipes it through the spam filter.  This was basically the
only way that I could find to run a system wide virus and spam filter.

Trey

- Original Message -
From: "Dallas Engelken" <[EMAIL PROTECTED]>
To: "Trey Nolen" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 1:03 PM
Subject: RE: more Qmailqueue and virus scan stuff


> > This works, but does have the disadvantage that filters are not
> > customizable per user.  Here is the patch we used to get it to run the
two
> > scanners...it was written by a guy named Kobe Lenjou and posted to the
> > Spamassassin list. Maybe it will be useful to some of you.
> >
> > Trey
>
> Can you not run your virus detection via QMAILQUEUE and then have option
> spam filtering that pipes through the users .qmail file?
>
>




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

> > 
> >  Also, what do I do with all the lock files in  /home/vpopmail/etc/ ?
> > ex:
> > ...
> > open-smtp.tmp.4624
> > open-smtp.tmp.4626
> > open-smtp.tmp.4628
> 
> I've seen that in older 4.10 and 4.9 version of vpopmail.
> We traced it down to tcprules not completing correctly and
> hence not removing the temporary file. 

  Well, you have seen most of my setup. Any ideas on what to check, and
what is going wrong? Do i need to replace tcpserver and friends? What?

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Dallas Engelken

> -Original Message-
> From: Tren Blackburn [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: more Qmailqueue and virus scan stuff
>
>
> Just as an FYI, I am using this patch on all my mail servers now and it's
> working fantastically.  You do have to do some modifications as his patch
> was made for the bleeding edge version of spamassassin, plus you have to
> update the paths and stuff.  Just beware of that, but once all that is
> worked out, it's a great patch, and I'm very happy with it
>
> Regards,
>
> Tren.
>

Is it possible to make SQWebmail utilize the QMAILQUEUE to do virus/spam
scanning on web based email?




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Ken Jones

On Wed, 2001-11-28 at 13:24, [EMAIL PROTECTED] wrote:
> > > 
> > >  Also, what do I do with all the lock files in  /home/vpopmail/etc/ ?
> > > ex:
> > > ...
> > > open-smtp.tmp.4624
> > > open-smtp.tmp.4626
> > > open-smtp.tmp.4628
> > 
> > I've seen that in older 4.10 and 4.9 version of vpopmail.
> > We traced it down to tcprules not completing correctly and
> > hence not removing the temporary file. 
> 
>   Well, you have seen most of my setup. Any ideas on what to check, and
> what is going wrong? Do i need to replace tcpserver and friends? What?

Sounds like Bill had the answer. 
It's probably a permission issue.




Re: more Qmailqueue and virus scan stuff

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 01:24 PM, Dallas Engelken wrote:
>
> Is it possible to make SQWebmail utilize the QMAILQUEUE to do virus/spam
> scanning on web based email?
>

I think you can edit sendit.sh to set that variable.. haven't done it 
myself, but that's what I recall...

Regards,

Bill




VIrus info

2001-11-28 Thread duncan

whoops, intended to post to list, not just tren.

 >Trey Nolen wrote:
 >>
 >> Recently I posted a question about getting qmailqueue to send mail
 >> through a
 >> virus scanner and a spam scanner.  I found a patch that will do just
 >> that,so I thought I'd share it here since there has been a lot of
 >> virus talklately.

Anyone care to write a mini-howto on getting the spam and/or virus
  scanners in with vpopmail?

Im interested in implementing _something_ for virus scanning.  id prob. 
be ok with a reccomendation, but what would be helpful for myself, as
well as others (it appears) is a mini how-to.. or some sort of doc. on
this.


  thx
  duncan





RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Tren Blackburn

Updated the sendit.sh script that sqwebmail uses and put in the appropriate
QMAILQUEUE lines.

Tren.

> -Original Message-
> From: Dallas Engelken [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 12:25 PM
> To: Tren Blackburn; [EMAIL PROTECTED]
> Subject: RE: more Qmailqueue and virus scan stuff
>
>
> > -Original Message-
> > From: Tren Blackburn [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 28, 2001 1:08 PM
> > To: [EMAIL PROTECTED]
> > Subject: RE: more Qmailqueue and virus scan stuff
> >
> >
> > Just as an FYI, I am using this patch on all my mail servers
> now and it's
> > working fantastically.  You do have to do some modifications as
> his patch
> > was made for the bleeding edge version of spamassassin, plus you have to
> > update the paths and stuff.  Just beware of that, but once all that is
> > worked out, it's a great patch, and I'm very happy with it
> >
> > Regards,
> >
> > Tren.
> >
>
> Is it possible to make SQWebmail utilize the QMAILQUEUE to do virus/spam
> scanning on web based email?
>
>




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

On Wed, Nov 28, 2001 at 01:14:40PM -0600, Bill Shupp wrote:
> On Wednesday, November 28, 2001, at 01:03 PM, [EMAIL PROTECTED] wrote:
> >
> >  Also, what do I do with all the lock files in  /home/vpopmail/etc/ ?
> > ex:
> > ...
> > open-smtp.tmp.4624
> > open-smtp.tmp.4626
> > open-smtp.tmp.4628
> 
> Delete them.  THIS is related to your problem.  I found the same thing 
> with courier-imap and vchkpw were both trying to update the open-smtp 
> file using different permissions.
> 
> -Bill

 Here is part of pstree output: See anything fishy?

  |-svscanboot) /command/svscanboot 
  |   |-readproctitle) service errors: ...
  |   `-svscan) /service 
  |   |-supervise) qmail-smtpd 
  |   |   `-tcpserver) -v -H -R -l 0 -x /home/vpopmail/etc/tcp.smtp.cdb -u 5
02 -g 501 0 smtp /var/qmail/bin/qmail-smtpd 
  |   |-supervise) log 
  |   |   `-multilog) t /var/log/qmail/qmail-smtpd 
  |   |-supervise) qmail-send 
  |   |   `-qmail-send) 
  |   |   |-qmail-clean) 
  |   |   |-qmail-lspawn) ./Maildir/ 
  |   |   `-qmail-rspawn) 
  |   `-supervise) log 
  |   `-multilog) t /var/log/qmail/qmail-send 
  |-syslogd) -m 0 
  `-xinetd) -reuse 
  `-xinetd) -reuse 


-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



Re: VIrus info

2001-11-28 Thread Bill Shupp


On Wednesday, November 28, 2001, at 01:32 PM, duncan wrote:

> whoops, intended to post to list, not just tren.
>
> >Trey Nolen wrote:
> >>
> >> Recently I posted a question about getting qmailqueue to send mail
> >> through a
> >> virus scanner and a spam scanner.  I found a patch that will do just
> >> that,so I thought I'd share it here since there has been a lot of
> >> virus talklately.
>
> Anyone care to write a mini-howto on getting the spam and/or virus
>  scanners in with vpopmail?

qmail-scanner is at the MTA level, so it's not vpopmail specific.  The 
documentation on http://qmail-scanner.sourceforge.net is very clear, and 
I don't think a howto is necessary.

Regards,

Bill




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

> > > > open-smtp.tmp.4624
> > > > open-smtp.tmp.4626
> > > > open-smtp.tmp.4628
> > > 
> > > I've seen that in older 4.10 and 4.9 version of vpopmail.
> > > We traced it down to tcprules not completing correctly and
> > > hence not removing the temporary file. 
> > 
> >   Well, you have seen most of my setup. Any ideas on what to check, and
> > what is going wrong? Do i need to replace tcpserver and friends? What?
> 
> Sounds like Bill had the answer. 
> It's probably a permission issue.

 Well, Im lost. Here is perms on the differnt folders in /home/vpopmail:

/home/vpopmail]: d
total 5
drwxr-xr-x   2 vpopmail vchkpw515 Nov 28 09:33 bin
drwxr-xr-x   4 vpopmail vchkpw 83 Oct  5 11:30 doc
drwx--  20 vpopmail vchkpw981 Nov 27 17:14 domains
drwxr-xr-x   2 vpopmail vchkpw160 Nov 28 13:41 etc
drwxr-xr-x   2 vpopmail vchkpw141 Oct  5 11:30 include
drwx--   2 vpopmail vchkpw 64 Oct  5 11:30 lib
drwx--   2 vpopmail vchkpw 35 Oct  5 12:01 tmp
drwx--   2 vpopmail vchkpw 64 Oct  5 12:20 users

/home/vpopmail/etc]: d
total 16
-rw-r--r--   1 vpopmail vchkpw 25 Nov 28 09:32 inc_deps
-rw-r--r--   1 vpopmail vchkpw 32 Nov 28 09:32 lib_deps
-rw-rw-rw-   1 vpopmail vchkpw  0 Nov 28 13:40 open-smtp
-rw-r--r--   1 vpopmail vchkpw 62 Nov 27 18:19 tcp.smtp
-rw-r--r--   1 vpopmail vchkpw   2142 Nov 28 13:40 tcp.smtp.cdb

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 01:46 PM, [EMAIL PROTECTED] wrote:
>
>  Well, Im lost. Here is perms on the differnt folders in /home/vpopmail:
>
> /home/vpopmail/etc]: d
> total 16
> -rw-r--r--   1 vpopmail vchkpw 25 Nov 28 09:32 inc_deps
> -rw-r--r--   1 vpopmail vchkpw 32 Nov 28 09:32 lib_deps
> -rw-rw-rw-   1 vpopmail vchkpw  0 Nov 28 13:40 open-smtp
> -rw-r--r--   1 vpopmail vchkpw 62 Nov 27 18:19 tcp.smtp
> -rw-r--r--   1 vpopmail vchkpw   2142 Nov 28 13:40 tcp.smtp.cdb

This looks ok.  When you run clearopensmtp, does tcp.smtp.cdb get 
updated?  And what user is your pop server running as?

-Bill




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

> > -rw-r--r--   1 vpopmail vchkpw 62 Nov 27 18:19 tcp.smtp
> > -rw-r--r--   1 vpopmail vchkpw   2142 Nov 28 13:40 tcp.smtp.cdb
> 
> This looks ok.  When you run clearopensmtp, does tcp.smtp.cdb get 
> updated?  And what user is your pop server running as?

 Yes, clearopensmtp updates tcp.smtp.cdb and open-smtp. 
But open-smtp is always empty.

Pop is running via xinetd a user vpopmail:

cat /etc/xinetd.d/pop-3 
# Converted by inetdconvert
service pop-3
{
disable = no
socket_type = stream
protocol= tcp
wait= no
user= vpopmail
server  = /var/qmail/bin/qmail-popup
server_args = mail.merilex.net /home/vpopmail/bin/vchkpw 
/var/qmail/bin/qmail-pop3d Maildir
}

 I am getting some errors in the logs:
 
tail  /var/log/messages :
Nov 28 13:44:06 mail xinetd[5136]: Bad line received from identity server at 
66.25.128.203: 62412 , 110 : ERROR : UNKNOWN-ERROR
Nov 28 14:05:04 mail xinetd[5185]: Bad line received from identity server at 
66.25.128.203: 62415 , 110 : ERROR : UNKNOWN-ERROR

 Thanks again,

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



RE: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Tren Blackburn

First recommendation from me would be drop xinetd and install tcpserver.

Regards,

Tren.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 1:10 PM
> To: Bill Shupp
> Cc: [EMAIL PROTECTED]
> Subject: Re: Roaming Users not working. open-smtp not updated.
> 
> 
> > > -rw-r--r--   1 vpopmail vchkpw 62 Nov 27 18:19 tcp.smtp
> > > -rw-r--r--   1 vpopmail vchkpw   2142 Nov 28 13:40 tcp.smtp.cdb
> > 
> > This looks ok.  When you run clearopensmtp, does tcp.smtp.cdb get 
> > updated?  And what user is your pop server running as?
> 
>  Yes, clearopensmtp updates tcp.smtp.cdb and open-smtp. 
> But open-smtp is always empty.
> 
> Pop is running via xinetd a user vpopmail:
> 
> cat /etc/xinetd.d/pop-3 
> # Converted by inetdconvert
> service pop-3
> {
> disable = no
> socket_type = stream
> protocol= tcp
> wait= no
> user= vpopmail
> server  = /var/qmail/bin/qmail-popup
> server_args = mail.merilex.net 
> /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
> }
> 
>  I am getting some errors in the logs:
>  
> tail  /var/log/messages :
> Nov 28 13:44:06 mail xinetd[5136]: Bad line received from 
> identity server at 66.25.128.203: 62412 , 110 : ERROR : UNKNOWN-ERROR
> Nov 28 14:05:04 mail xinetd[5185]: Bad line received from 
> identity server at 66.25.128.203: 62415 , 110 : ERROR : UNKNOWN-ERROR
> 
>  Thanks again,
> 
> -Phil Carinhas
> --
>  ..
>  | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
>  | Fortuitous Technologies Inc. | http://fortuitous.com   |
>  | Linux Consulting & Training  | Tel : 1-512-467-2154|
>  `'
> 



Re: more Qmailqueue and virus scan stuff

2001-11-28 Thread Trey Nolen


Yeah, that works. We are using it. Just make your sendit.sh look like this:


QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl" export QMAILQUEUE
exec /usr/sbin/qmail-inject -f "$1"


Trey


- Original Message -
From: "Bill Shupp" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 1:29 PM
Subject: Re: more Qmailqueue and virus scan stuff


> On Wednesday, November 28, 2001, at 01:24 PM, Dallas Engelken wrote:
> >
> > Is it possible to make SQWebmail utilize the QMAILQUEUE to do virus/spam
> > scanning on web based email?
> >
>
> I think you can edit sendit.sh to set that variable.. haven't done it
> myself, but that's what I recall...
>
> Regards,
>
> Bill
>
>




RE: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Tim Hunter

Looks like there is no where that the tcp.smtp.cdb is being used.
install and use tcpserver.

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 3:10 PM
> To: Bill Shupp
> Cc: [EMAIL PROTECTED]
> Subject: Re: Roaming Users not working. open-smtp not updated.
> 
> 
> > > -rw-r--r--   1 vpopmail vchkpw 62 Nov 27 18:19 tcp.smtp
> > > -rw-r--r--   1 vpopmail vchkpw   2142 Nov 28 13:40 tcp.smtp.cdb
> > 
> > This looks ok.  When you run clearopensmtp, does tcp.smtp.cdb get 
> > updated?  And what user is your pop server running as?
> 
>  Yes, clearopensmtp updates tcp.smtp.cdb and open-smtp. 
> But open-smtp is always empty.
> 
> Pop is running via xinetd a user vpopmail:
> 
> cat /etc/xinetd.d/pop-3 
> # Converted by inetdconvert
> service pop-3
> {
> disable = no
> socket_type = stream
> protocol= tcp
> wait= no
> user= vpopmail
> server  = /var/qmail/bin/qmail-popup
> server_args = mail.merilex.net 
> /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
> }
> 
>  I am getting some errors in the logs:
>  
> tail  /var/log/messages :
> Nov 28 13:44:06 mail xinetd[5136]: Bad line received from 
> identity server at 66.25.128.203: 62412 , 110 : ERROR : UNKNOWN-ERROR
> Nov 28 14:05:04 mail xinetd[5185]: Bad line received from 
> identity server at 66.25.128.203: 62415 , 110 : ERROR : UNKNOWN-ERROR
> 
>  Thanks again,
> 
> -Phil Carinhas
> --
>  ..
>  | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
>  | Fortuitous Technologies Inc. | http://fortuitous.com   |
>  | Linux Consulting & Training  | Tel : 1-512-467-2154|
>  `'
> 



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

On Wed, Nov 28, 2001 at 03:40:10PM -0500, Tim Hunter wrote:
> Looks like there is no where that the tcp.smtp.cdb is being used.
> install and use tcpserver.

  The docs say nothing about using that with pop3: From the INSTALL file:
 DO you have an example script that starts pop3/tcpserver/daemontools
 from /etc/init.d/xxx ?


12. How to use vchkpw with qmail-pop3d server

Here is a sample startup line for qmail-pop3d and vchkpw

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R 0 pop-3 \
/var/qmail/bin/qmail-popup your.domain.com \
/home-dir-of-vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &

If you want to authenticate against /etc/passwd do not use the -u -g
options, since it would need to run as root.
 
 Tcpserver: 
Do I need to copy all the files in /service/qmail-smtp to /service/qmail-pop3 ?
I dont see anywhere in the docs that explains how that works.

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



RE: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Tren Blackburn

As I stated, read the INSTALL doc that comes with vpopmail.  here's an
exerpt:

12. How to use vchkpw with qmail-pop3d server

Here is a sample startup line for qmail-pop3d and vchkpw

env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R 0 pop-3 \
/var/qmail/bin/qmail-popup your.domain.com \
/home-dir-of-vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
&

If you want to authenticate against /etc/passwd do not use the -u -g
options, since it would need to run as root.

The documentation is quite detailed in vpopmail in my opinion.

Regards,

Tren.


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 1:41 PM
> To: Tren Blackburn
> Subject: Re: Roaming Users not working. open-smtp not updated.
>
>
> On Wed, Nov 28, 2001 at 01:20:32PM -0700, Tren Blackburn wrote:
> > Look at the documentation contained both in vpopmail and on the cr.yp.to
> > site.  Everything you need is there.  Pretty much just compile the
> > daemontools, and then read the instructions in the INSTALL file
> that comes
> > with vpopmail to set it up.
>
>  i already use tcpserver for qmail. Its just the qmail-pop3d that is being
>  xinetd'd.. I find tcpserver docs to be very sparse.
>
> -Phil Carinhas
> --
>  ..
>  | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
>  | Fortuitous Technologies Inc. | http://fortuitous.com   |
>  | Linux Consulting & Training  | Tel : 1-512-467-2154|
>  `'
>




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp


On Wednesday, November 28, 2001, at 02:55 PM, Tren Blackburn wrote:

> As I stated, read the INSTALL doc that comes with vpopmail.  here's an
> exerpt:
>
> 12. How to use vchkpw with qmail-pop3d server
>
> Here is a sample startup line for qmail-pop3d and vchkpw
>
> env - PATH="/var/qmail/bin:/usr/local/bin" \
> tcpserver -H -R 0 pop-3 \
> /var/qmail/bin/qmail-popup your.domain.com \
> /home-dir-of-vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d 
> Maildir
> &
>
> If you want to authenticate against /etc/passwd do not use the 
> -u -g
> options, since it would need to run as root.
>
> The documentation is quite detailed in vpopmail in my opinion.

The above example is a simple tcpserver script.  If you want to use 
daemontools, you can, but there's not an example of a pop3 run script in 
the INSTALL file.  If you're familiar with daemontools, it's only 
slightly different that what's above, and you should be able to figure 
it out.

Here's my daemontools run file for pop:

#!/bin/sh

VPOPMAILUID=`id -u vpopmail`
VPOPMAILGID=`id -g vpopmail`

exec /usr/local/bin/tcpserver -l 0 -R -H\
 -u"$VPOPMAILUID" -g"$VPOPMAILGID" 0 pop-3   \
 /var/qmail/bin/qmail-popup yourdomain.com \
 /home/vpopmail/bin/vchkpw   \
 /var/qmail/bin/qmail-pop3d Maildir 2>&1

Regards,

Bill




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread pac

> Here's my daemontools run file for pop:
> 
> #!/bin/sh
> 
> VPOPMAILUID=`id -u vpopmail`
> VPOPMAILGID=`id -g vpopmail`
> 
> exec /usr/local/bin/tcpserver -l 0 -R -H\
>  -u"$VPOPMAILUID" -g"$VPOPMAILGID" 0 pop-3   \
>  /var/qmail/bin/qmail-popup yourdomain.com \
>  /home/vpopmail/bin/vchkpw   \
>  /var/qmail/bin/qmail-pop3d Maildir 2>&1
 
 Bill, 
 Thanks again. I did notice this in my /var/log/qmail/pop3d/current file:
This was probaly left over from xinetd...
I'm almost there.. I hope.

.
@40003c0555c62171a734 alert: cannot start: qmail-send is already running
@40003c0555c62171d22c alert: cannot start: qmail-send is already running
@40003c0555c62171dde4 alert: cannot start: qmail-send is already running
.

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



RE: more Qmailqueue and virus scan stuff

2001-11-28 Thread Dallas Engelken

Tren, can you send me that patch.. I dont really want to edit the line wraps
on the one below.


> -Original Message-
> From: Tren Blackburn [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 1:08 PM
> To: [EMAIL PROTECTED]
> Subject: RE: more Qmailqueue and virus scan stuff
>
>
> Just as an FYI, I am using this patch on all my mail servers now and it's
> working fantastically.  You do have to do some modifications as his patch
> was made for the bleeding edge version of spamassassin, plus you have to
> update the paths and stuff.  Just beware of that, but once all that is
> worked out, it's a great patch, and I'm very happy with it
>
> Regards,
>
> Tren.
>
> > -Original Message-
> > From: Trey Nolen [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, November 28, 2001 11:56 AM
> > To: [EMAIL PROTECTED]
> > Subject: more Qmailqueue and virus scan stuff
> >
> >
> > Recently I posted a question about getting qmailqueue to send
> > mail through a
> > virus scanner and a spam scanner.  I found a patch that will do
> just that,
> > so I thought I'd share it here since there has been a lot of virus talk
> > lately.
> >
> > I am running Sophos Sweep. They have a pretty good deal for
> ISPs. I think
> > for us it worked out to about $.20 per month.  We are more than
> willing to
> > pay that for the extra service. The auto updates work well. The
> > spam scanner
> > I am using is SpamAssassin found at spamassassin.taint.org. It is very
> > agressive, and we have had a few legitimate emails get blocked,
> but it is
> > VERY effective on spam.  Since Procmail doesn't seem to work well with
> > Vpopmail, we decided to use QMAILQUEUE to run everything through the
> > scanners.  This works, but does have the disadvantage that
> filters are not
> > customizable per user.  Here is the patch we used to get it to
> run the two
> > scanners...it was written by a guy named Kobe Lenjou and posted to the
> > Spamassassin list. Maybe it will be useful to some of you.
> >
> > Trey
> >
> >
> > *** qmail-scanner-1.01/qmail-scanner-queue.template Thu Sep
> > 6 23:12:20
> > 2001
> > ---
> > qmail-scanner-1.01-pattched/qmail-scanner-queue.template_with_spam  Wed
> > Nov 21 15:58:32 2001
> > ***
> > *** 155,160 
> > --- 155,168 
> >   my $uudecode_binary='UUDECODE_BINARY';
> >   my $uudecode_pipe='UUDECODE_PIPE';
> >
> > + #Kobe SpamAssasin Hack - if $spamcheck is 1 then spamcheck is done
> > + my $spamcheck = 1; #Enabled
> > + #my $spamcheck = 0; #Disabled
> > + my $spamc='/var/qmail/tools/spamc -f ';
> > + #These strings will be regexpd against the recieps var
> > + my $spam_rec = ', ,
> > publinet.be,moerman.co
> > m';
> > + #End of part 1 of 2 of the SpamAssasin hack
> > +
> >   #my
> >
> ($uvscan_binary,$sweep_binary=$iscan_binary=$hbedv_binary=$avpdaemon_binar
> > y)=';
> >   #my ($avp_binary=$fsecure_binary=$inocucmd_binary)=';
> >
> > ***
> > *** 325,331 
> >   &email_quarantine_report;
> > } else {
> >   &qmail_smtpd_check;
> > !
> > &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new
> > /$file_id"
> > );
> > }
> > alarm 0;
> >   };
> > --- 333,364 
> >   &email_quarantine_report;
> > } else {
> >   &qmail_smtpd_check;
> > ! #Mail passed all virus check, now do a spam check
> > ! if ($spamcheck == 1) {
> > ! my @spamusers = split(',',$spam_rec);
> > ! my $spam_var;
> > ! my $spam_flag = 0;
> > ! foreach $spam_var (@spamusers) {
> > ! $spam_var =~ s/ //mgi;
> > ! debug("Spamuser: -".$spam_var."-");
> > ! my $spamaddr = ($recips =~ /.*($spam_var).*/mi);
> > ! debug("Find?: $spamaddr");
> > ! if ($spamaddr == 1) {
> > ! $spam_flag = 1;
> > ! last;
> > ! }
> > ! }
> > ! &debug("Recieps: $recips");
> > ! if ($spam_flag == 1) {
> > ! &debug("Now checking message for spam");
> > ! &debug("Executing: $spamc <
> > $scandir/$wmaildir/new/$file_id >
> > $scandir/$wmaildir/tmp/$file_id");
> > ! system ("$spamc < $scandir/$wmaildir/new/$file_id >
> > $scandir/$
> > wmaildir/tmp/$file_id");
> > ! rename
> > ("$scandir/$wmaildir/tmp/$file_id","$scandir/$wmaildir/
> > new/$file_id");
> > ! } else {
> > ! &debug("Message NOT scanned for spam");
> > ! }
> > !  }
> > !
> > &qmail_requeue($env_returnpath,$env_recips,"$scandir/$wmaildir/new
> > /$file_id"
> >  )
> > ;
> > }
> > alarm 0;
> >   };
> >
> >
> >
> >
>




Q-Mail Log

2001-11-28 Thread Mike Rogers

Quick more general Q-Mail question:
I at one point had the e-mail log (all e-mail gets delivered to a
mailbox) going on a few of my servers.  We had to remove it a while ago when
some of these became multiuser, but some domains still like that.  Is there
any sort of script or patch that would log only certail domains- OR is there
anything that will log to maybe 'log'@each domain which it is associated
with or something along those lines?

Thanks!
--
Mike




~vpopmail/etc

2001-11-28 Thread Mate Wierdl

I see that ./configure already uses ~vpopmail/etc by putting two
files, inc_deps and lib_deps there.  Are these files necessary for the
proper functioning of vpopmail later or they are needed only during
the build?

The problem I am trying to solve is: I am trying to make an rpm, but
with as little impact on the build host as possible.  In particular,
while I add the vpopmail user, but tried not to create ~vpopmail.  But
then ./configure complains about the nonexistence of ~vpopmail/etc.
  
Can I just ignore this warning of ./configure, and then have inc_deps
and lib_deps created on the install host?

Thx,

Mate
-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



RE: qmail-pop3d alternative needed ASAP.

2001-11-28 Thread Daniel Kafka

We run a service for approx 2000 clients, most of clients are fetching mails thru POP 
via standard modem connections. When downloading a huge amount of mails (mostly with 
big attachemens), randomly a POP session freeze. Repeated POP session for the same 
account freeze at the same position (for example at 14th mail from 25), while the 
first 13 mails are repeatedly downloaded. The only way to solve the problem is to 
clean up the mailbox and delete first 14 messages, there it works fine.

The problem shouldn't be somewhere in vpopmail (the same think happened with 
vpopmail-3.4), now we're using 5.0 with any other problem. 

Is there a nice replacment form qmail-pop3d?

Thanx, daniel kafka


> I saw this once with an ISP. 
> They traced it down to some networking router configurations.
> I never found out the details tho.
> 
> Ken 
> 
> On Wed, 2001-11-28 at 12:08, Steve Fulton wrote:
> > Hi all,
> > 
> >I need an alternative POP daemon to use that's compatiable with 
> > Vpopmail.  This is urgent, so I'd appreciate any feedback on your 
> > experiences with what is available..
> > 
> >FYI, I'm having 2 clients with severe POP problems -- 
> basically their 
> > POP sessions drop mid way thru downloading mail.  Unfortunately 
> its not at 
> > one message or one type of message.  It seems to be very 
> random.  If anyone 
> > has experienced this problem, I'd also appreciate some feedback.
> > 
> > -- Steve.
> > 
> > 
> 
> 
> 
> ---
> Příchozí zpráva neobsahuje viry.
> Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
> Verze: 6.0.298 / Virová báze: 161 - datum vydání: 13.11.2001
> 
---
Odchozí zpráva neobsahuje viry.
Zkontrolováno antivirovým systémem AVG (http://www.grisoft.cz).
Verze: 6.0.298 / Virová báze: 161 - datum vydání: 13.11.2001




Re: Roaming Users now working.. Probably.

2001-11-28 Thread pac

  Thanks guys for putting up with me. I finally got it to work.
 Strange thing: I dont remember starting the service, but before I got
 my /etc/init.d/qmail script finished it was already working. Maybe someone
 got tired of listing to me, broke in and fixed it. :)
 Maybe its related to /service/qmail-pop3d/run or somesuch.
 Thanks again,

-Phil Carinhas
--
 ..
 | Dr. Philip A. Carinhas   | [EMAIL PROTECTED]  |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Consulting & Training  | Tel : 1-512-467-2154|
 `'



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Photocon

I too would like to say thanks to Bill & company...  Just sitting by the 
sidelines I figured it out. I hadnt realized that xinetd was the culprit.

Thanks again.

--Photocon
Conrad Hunziker III
www.nightskyent.com




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Mate Wierdl

On Wed, Nov 28, 2001 at 02:10:10PM -0600, [EMAIL PROTECTED] wrote:
> Pop is running via xinetd a user vpopmail:
> 
> cat /etc/xinetd.d/pop-3 
> # Converted by inetdconvert
> service pop-3
> {
> disable = no
> socket_type = stream
> protocol= tcp
> wait= no
> user= vpopmail
> server  = /var/qmail/bin/qmail-popup
> server_args = mail.merilex.net /home/vpopmail/bin/vchkpw 
>/var/qmail/bin/qmail-pop3d Maildir
> }

tcp.smtp is used only by tcpserver.  I think it is not clear from the
docs, but it seems roaming users can be used only if you run pop under
tcpserver or equivalent (like courier's tcp server).

Mate



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 03:54 PM, Mate Wierdl wrote:
>
> tcp.smtp is used only by tcpserver.

For smtp, it's read only.  The pop server is the one that actually edits 
open-smtp and runs tcprules.

> I think it is not clear from the
> docs, but it seems roaming users can be used only if you run pop under
> tcpserver or equivalent (like courier's tcp server).

If I had time, I'd do some testing, as this would be useful to know for 
sure.  I tend to think it's more of a permissions issue rather than a 
daemon issue...

Doesn't  vchkpw do a setuid/setgid before editing these files?  I don't 
recall...  Seems like it wouldn't be an issue if this were the case.

Regards,

Bill




inc_deps and lib_deps

2001-11-28 Thread Mate Wierdl

I now see that inc_deps and lib_deps are used by other programs.  Are
they using them during build or during runtime?

Thx

Mate
-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



Anyone know who made this hosting automation script?

2001-11-28 Thread K a z


Hello,

About a year ago I stumbled across a site while looking
for alternatives to the "Homefree" webhosting script. This
site had a suite of scripts/tools to automate a hosting company,
they had support for vpopmail & sqwebmail built in among other
things. But I cant for the life of me remember their url or
name.

I _think_ it had "hyper" something or "star" something in the domain
but not sure. I really would like to see what this company has going
these days (if anything).

If anyone has a clue to what I'm babbling about here PLEASE let me know :)

Thanks!


_
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp




patch to preauthvchkpw.c for open_smtp

2001-11-28 Thread Joel Michael

Hi,

This patch allows open_smtp for pop3, and also checks if NO_RELAY is set
for both pop3 and imap.  This is useful if you rely on open_smtp to
allow users to relay and if you use courier for both pop3 instead of
qmail-pop3d, and imap.  I have tested this here and it is in production,
working as expected.  I don't know if I've used diff properly with the
file names, but if it does Strange Things or if you know what I should
have done, please tell me :-)

Cheers!

--- preauthvchkpw.c Mon Sep 17 00:49:10 2001
+++ preauthvchkpw.c.new Sun Nov  4 22:29:45 2001
@@ -92,8 +92,23 @@
return(-1);
} else {
 #ifdef HAVE_OPEN_SMTP_RELAY
-   /* open the relay to imap users */
-   open_smtp_relay();
+   /* open the relay to imap users only if NO_RELAY is not
set */
+   if ( ! ( pw->pw_gid & NO_RELAY ) ) {
+   open_smtp_relay();
+   }
+#endif
+   }
+   }
+
+   if ( strcmp("pop3", service) == 0 ) {
+   if ( pw->pw_gid & NO_POP ) {
+   return(-1);
+   } else {
+#ifdef HAVE_OPEN_SMTP_RELAY
+   /* open the relay to pop3 users only if NO_RELAY is not
set */
+   if ( ! ( pw->pw_gid & NO_RELAY ) ) {
+   open_smtp_relay();
+   }
 #endif
}
}


-- 
Joel Michael
Systems Administrator
Worldhosting.org Pty. Ltd.

Ph: +61 7 3367 3555
Fax: +61 7 3367 3544
Mobile: +61 408 336 728




Re: Bug in vdelivermail [vpopmail 5.0]

2001-11-28 Thread Yavuz Aydin

Quoting Ken:

> There is no bug in vpopmail 5.0.

Well Ken, it appears to be there. This is my third attempt to report this bug.
This time, it seems that I'm not the only one with this problem.

> I just tested it and it works fine.
> more .qmail-default
> | /home/vpopmail/bin/vdelivermail ''
> /home/vpopmail/domains/test.com/postmaster

*cut*

> Successful delivery

The problem is as follows:
Whenever you add a domain with vadddomain -u   then it won't get
delivered. I have had this problem on 2 different servers, 1 being upgraded and
1 fresh install of the final version of vpopmail 5.0.

The problem as described earlier (delivering to the catch-all account) does
*NOT* occur when the domain is added with vadddomain , only if you use
the -u flag.

Can you reproduce this error or not? Do you have tested it with a domain that is
added with the -u flag?

> If you don't have a user account in /home/user/domains/domain.com/user
> then of course it will not be able to deliver it.
>
> Ken Jones

Best Regards,

Yavuz Aydin
[EMAIL PROTECTED]



Re: Bug in vdelivermail [vpopmail 5.0]

2001-11-28 Thread Tim Hunter

Never heard it described as a domain added as a different user, so I
figgured I would give it a shot.
I get the same error
~vpopmail/bin/vadddomain -u tim test.com test
modify .qmail-default to read
| /home/vpopmail/bin/vdelivermail '' /home/tim/domains/test.com/postmaster
send a test message to a non existant user

@40003c05a4961b176acc info msg 91334: bytes 160 from <[EMAIL PROTECTED]> qp
6931 uid 64011
@40003c05a4961b8fe2a4 starting delivery 12276: msg 91334 to local
[EMAIL PROTECTED]
@40003c05a4961b906b5c status: local 1/10 remote 0/20
@40003c05a49622df0274 delivery 12276: failure:
can_not_open_new_email_file_errno=2_file=/home/tim/domains/test.com/postmast
ertmp/1007002764.6934.mail.cimx.com,S=160/system_error/
@40003c05a49622dff4a4 status: local 1/10 remote 0/20

Delivery to an existing user works fine.

so I thought this might be a problem with the .qmail-default file so I
changed it to read
| /home/vpopmail/bin/vdelivermail '' /home/tim/domains/test.com/postmaster

@40003c05a7051e93b494 info msg 90074: bytes 182 from <[EMAIL PROTECTED]> qp
7099 uid 64011
@40003c05a7051f15f83c starting delivery 12288: msg 90074 to local
[EMAIL PROTECTED]
@40003c05a7051f167d0c status: local 1/10 remote 0/20
@40003c05a70522a0a1b4 delivery 12288: failure:
can_not_open_new_email_file_errno=2_file=/home/tim/domains/test.com/postmast
er/tmp/1007003387.7101.mail.cimx.com,S=182/system_error/

Looks like a bug.

Interesting how you get a response when someone posts all the details.

- Original Message -
From: "Yavuz Aydin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 28, 2001 9:46 PM
Subject: Re: Bug in vdelivermail [vpopmail 5.0]


> Quoting Ken:
>
> > There is no bug in vpopmail 5.0.
>
> Well Ken, it appears to be there. This is my third attempt to report this
bug.
> This time, it seems that I'm not the only one with this problem.
>
> > I just tested it and it works fine.
> > more .qmail-default
> > | /home/vpopmail/bin/vdelivermail ''
> > /home/vpopmail/domains/test.com/postmaster
>
> *cut*
>
> > Successful delivery
>
> The problem is as follows:
> Whenever you add a domain with vadddomain -u   then it won't
get
> delivered. I have had this problem on 2 different servers, 1 being
upgraded and
> 1 fresh install of the final version of vpopmail 5.0.
>
> The problem as described earlier (delivering to the catch-all account)
does
> *NOT* occur when the domain is added with vadddomain , only if you
use
> the -u flag.
>
> Can you reproduce this error or not? Do you have tested it with a domain
that is
> added with the -u flag?
>
> > If you don't have a user account in /home/user/domains/domain.com/user
> > then of course it will not be able to deliver it.
> >
> > Ken Jones
>
> Best Regards,
>
> Yavuz Aydin
> [EMAIL PROTECTED]
>





Re: Bug in vdelivermail [vpopmail 5.0]

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 09:39 PM, Tim Hunter wrote:

> Never heard it described as a domain added as a different user, so I
> figgured I would give it a shot.
> I get the same error

I can reproduce it as well, and am working on a fix.  4.9.10 did not 
have this problem, because its vdelivermail simply called qmail-inject 
if the argument to vdelivermail was a user's directory.  Now 
vdelivermail tries to write the file itself, but can't because it's 
running as the vpopmail user.

I'll post a fix once I have one, unless Ken beats me to it.  ; )

Bill




Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Mate Wierdl

On Wed, Nov 28, 2001 at 04:07:39PM -0600, Bill Shupp wrote:
> On Wednesday, November 28, 2001, at 03:54 PM, Mate Wierdl wrote:
> >
> > tcp.smtp is used only by tcpserver.
> 
> For smtp, it's read only.  The pop server is the one that actually edits 
> open-smtp and runs tcprules.

Somehow I assumed that the poster started qmail-smtpd also from
xinetd.  Why would you start pop under xinetd and smtpd under
tcpserver?

> 
> > I think it is not clear from the
> > docs, but it seems roaming users can be used only if you run pop under
> > tcpserver or equivalent (like courier's tcp server).
> 
> If I had time, I'd do some testing, as this would be useful to know for 
> sure.  I tend to think it's more of a permissions issue rather than a 
> daemon issue...
> 

What I wrote was completely idiotic.

> Doesn't  vchkpw do a setuid/setgid before editing these files?  I don't 
> recall...  Seems like it wouldn't be an issue if this were the case.
> 

So suppose I start the pop server under tcpserver using the script you
posted in your previous message.  This means tcpserver is run as the
vpopmail user.  How will then vpopmail be able to create, say,
/etc/tcp.smtp.cdb?  Afterall in most places /etc is not writable by
the vpopmail user.  Where is the suid root prog that does the writing?

Mate



Re: Roaming Users not working. open-smtp not updated.

2001-11-28 Thread Mate Wierdl

On Wed, Nov 28, 2001 at 09:39:53PM -0600, Mate Wierdl wrote:
> > On Wednesday, November 28, 2001, at 03:54 PM, Mate Wierdl wrote:
> > I think it is not clear from the
> > docs, but it seems roaming users can be used only if you run pop under
> > tcpserver or equivalent (like courier's tcp server).
>
> What I wrote was completely idiotic.

Because I meant to say "if you run qmail-smtpd under tcpserver or
equivalent (like courier's tcp server)."

Mate



roaming users

2001-11-28 Thread Mate Wierdl

Suppose my tcprules file for smtpd is in a directory writable only to
root and I want roaming users.  Do not I have to run a tcpserver-like
program that launches imapd or popd as root?

Thx

Mate

-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



Re: Bug in vdelivermail: FIXED

2001-11-28 Thread Bill Shupp

I think I have this fixed.  usernotfound() was not properly detecting 
the "catch-all" argument to vdelivermail for domains not under 
VPOPMAILDIR *only* when it was a path, so it never appended /Maildir to 
the user's directory path.  Thus, writing the temp file would fail and 
the message bounced.

I wrapped this fix into a general patch of 4 bug fixes for vpopmail 5.0:

1. vegetent() fix (cdb module)
- 'vmoduser [flags] '  would corrupt the vpasswd file
2. vmoduser fix (all modules)
- wouldn't set the passwd field when running on entire domain
3. re-added .over-quota.msg support to vdelivermail
4. usernotfound() bug described above

I also re-added the "user not found but will deliver to " message 
so you'll see it in the logs.  : )

Please help test this patch if you can.  To apply:

cd vpopmail-5.0
lynx --source http://shupp.org/patches/5.0-shupp-1.patch.gz | patch -p0
./configure 
make ; make install

And for anyone using the maildirquota patch, I'll try and post an 
updated version with all these fixes tomorrow.

Cheers,

Bill Shupp




Re: roaming users

2001-11-28 Thread Bill Shupp

On Wednesday, November 28, 2001, at 10:15 PM, Mate Wierdl wrote:

> Suppose my tcprules file for smtpd is in a directory writable only to
> root and I want roaming users.  Do not I have to run a tcpserver-like
> program that launches imapd or popd as root?

Right.  But you don't have to run them as root unless you are delivering 
to multiple /etc/passwd users.  If you only deliver do vpopmail users, 
put open-smtp and tcp.smtp in ~vpopmail/etc and keep them owned by 
vpopmail.vchkpw, and all will be well.

Regards,

Bill Shupp




doc bug

2001-11-28 Thread Mate Wierdl

In doc/doc_html/vpopmail.html, I see

--enable-relay-clear-minutes=360 expire time for roaming users after pop
  authentication.

  If  --enable-roamin-users=y  is  set  then this option sets how
  long clearopensmtp should keep IP's in the list. The default is
  3 hours.

IMO, 3 hours is 180 minutes not 360.  

But my confidence is completely shaken when I read, in
doc/man_html/clearopensmtp.html

The default is 360 minutes or 3 hours.

Finally, in the FAQ I see

clearopenstmp will ask for a lock, clear out any roaming IP's 
whos timestamps are over 1 hour old since last pop authentication.


./configure does seem to set this value to 180.

Mate
-- 
---
Mate Wierdl | Dept. of Math. Sciences | University of Memphis  



bombmail

2001-11-28 Thread IWKW

hi all,

i need help

i'm using qmail with rblsmtpd(ucspi-tcpd)
someone was sent bombmail to my server and qmail can't reject that 
mail

how to set my vpopmail or qmail to automatic reject bombmail??

thanks
paijo