Stunnel + qmail-smtpd

2001-07-30 Thread Per-fredrik Pollnow (EPK)

Hi,

I have been trying to use stunnel with qmail-smtp but I don't get it to work, maybe 
someone have some suggestions how to do or where to find information about using 
stunnel with smtpd.. 

I have been trying this in some desperate moments to get it to work(and some other 
things) :=) :

#!/bin/sh
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 smtp /usr/local/sbin/stunnel -p 
/etc/pem/smtp.pem -l /var/qmail/bin/qmail-smtpd 21

But this is not working for sure.



Parsing Bounces for permanent and temporary errors

2001-07-30 Thread PHP Webmaster

Hello,

I am looking for any prior work or tutorial that
explains the best way to parse bounced email messages
to see if the failure reason is permanent (eg username
not found) or temporary (eg user's mailbox full).

It would be great if anyone could point me toward a
list of phrases or things from different isp's
standard bounced messages I could look for in my
parser with regex.

Thanks!

__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: Program Delivery to PHP Script

2001-07-30 Thread PHP Webmaster

Thanks for Philip and everyone's help.

I got it to work by compiling the PHP CGI version and
did in the .qmail:

|usr/local/bin/php -q script

Thanks a bunch!


--- Philip Mak [EMAIL PROTECTED] wrote:
 On Sat, 28 Jul 2001, PHP Webmaster wrote:
 
  the .qmail makes a program delivery to a PHP
 script at
  http://www.mydomain.com/parser.php which then
 stores
  the message in a database. The PHP installation is
 as
  an Apache module so I think I might have to use
 Lynx.
 
  So here is something I've come up with:
 
  |/usr/bin/lynx -source
  http://mydomain.com/parser.php;
 
 That won't work exactly as is, since you need lynx
 to send the contents of
 standard input to the PHP script as POST data. man
 lynx shows the
 following option:
 
-post_data
   send  form  data  from  stdin using
 POST method and
   dump results.
 
 So try putting -post_data in the lynx command.
 
 A more correct way of doing this would be to run php
 from the command
 line. Try typing locate php | grep /php$ to see if
 a PHP executable is
 available on your system. If not, you can compile
 one by downloading PHP
 from php.net, doing ./configure (don't include any
 options in
 ./configure), then make (don't do make install),
 and just copy the
 php executable that it creates to whereever you
 need it.
 
 If you go with the PHP executable, you would put in
 your .qmail file:
 
 |/path/to/php -q /path/to/script.php
 
 (-q tells it not to send HTML headers.)
 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



Re: stunnel/POP3 hanging ??

2001-07-30 Thread Andrea Cerrito

mmmhhh, looks like a wrong startup script!

 Here is my invocation of stunnel:

 #!/bin/sh
 exec /usr/local/bin/softlimit -m 300 \
 /usr/local/bin/tcpserver -v -likauni.vrona.com -H -R 0 pop3 \
 /usr/local/sbin/stunnel -p /etc/stunnel.pem \
 -l /var/qmail/bin/qmail-popup -- qmail-popup ikauni.vrona.com \
 /bin/checkpassword /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d
 Maildir 21

Try something like:

[snip] /usr/local/sbin/stunnel -p /etc/stunnel.pem -N spop3 -f -l
/var/qmail/bin/qmail-popup -- qmail-popup [snip]

Hope it helps.
---
Cordiali saluti / Best regards
Andrea Cerrito
^^
Net.Admin @ Centro MultiMediale di Terni S.p.A.
P.zzale Bosco 3A
05100 Terni IT
Tel. +39 0744 5441330
Fax. +39 0744 5441372





Re: stunnel/POP3 hanging ??

2001-07-30 Thread Henning Brauer

On Mon, Jul 30, 2001 at 10:16:44AM +0200, Andrea Cerrito wrote:
 mmmhhh, looks like a wrong startup script!
 
  Here is my invocation of stunnel:
 
  #!/bin/sh
  exec /usr/local/bin/softlimit -m 300 \
  /usr/local/bin/tcpserver -v -likauni.vrona.com -H -R 0 pop3 \
  /usr/local/sbin/stunnel -p /etc/stunnel.pem \
  -l /var/qmail/bin/qmail-popup -- qmail-popup ikauni.vrona.com \
  /bin/checkpassword /usr/sbin/relay-ctrl-allow /var/qmail/bin/qmail-pop3d
  Maildir 21
 
 Try something like:
 
 [snip] /usr/local/sbin/stunnel -p /etc/stunnel.pem -N spop3 -f -l
 /var/qmail/bin/qmail-popup -- qmail-popup [snip]

No. Running stunnel not as daemon but under tcpserver is a good idea.
Maex posted a good example script a few days ago.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



qmail + mail-filtering

2001-07-30 Thread François Philippo



how can I setup a mailfilter (in  out) on my qmail server ?

I'd like my server to filter all mails by keyword.

thanx



synchromise local blacklist with blacklist-server

2001-07-30 Thread François Philippo

I know that there are free blaclist servers on the web ? where ?

can qmail server synchronise automaticaly its own blaklist with one of these
server ?



thanx




Re: stunnel/POP3 hanging ??

2001-07-30 Thread Andrea Cerrito

Probably a misunderstood.

  Try something like:
 
  [snip] /usr/local/sbin/stunnel -p /etc/stunnel.pem -N spop3 -f -l
  /var/qmail/bin/qmail-popup -- qmail-popup [snip]

 No. Running stunnel not as daemon but under tcpserver is a good idea.
 Maex posted a good example script a few days ago.

The first [snip] was the tcpserver command, the second one was the
qmail-command.
I just said that stunnel was bad invoked, infact I add the -N (servicename)
and the -f switch.

This is my run script under tcpserver, uptime 83days with no problems.

exec /usr/bin/env - PATH=/var/qmail/bin:$PATH \
/usr/local/bin/tcpserver -v -c 50 -H -P -R -l hostname ip port \
/usr/local/stunnel/sbin/stunnel -p /var/qmail/control/spop3.pem \
-N spop3 -f -l /var/qmail/bin/qmail-popup /var/qmail/bin/qmail-popup \
hostname /usr/local/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
21

Just to be clear :)
---
Cordiali saluti / Best regards
Andrea Cerrito
^^
Net.Admin @ Centro MultiMediale di Terni S.p.A.
P.zzale Bosco 3A
05100 Terni IT
Tel. +39 0744 5441330
Fax. +39 0744 5441372





qmail scanner argument problem

2001-07-30 Thread Philipp Steinkrüger

Hi,

i am having problems with qmail-scanner. Emails without viruses
are delivered without problems, but emails containing viruses
are not. if i send a virus to my server my log file is flooded
with /bin/sh option lists. see this example: 

Jul 30 12:02:12 d smtpd: 996487332.723919 sh: - : unrecognized option
Jul 30 12:02:12 d smtpd: 996487332.725266 Usage:?sh [GNU long option] 
[option] ...
Jul 30 12:02:12 d smtpd: 996487332.725451 ?sh [GNU long option] [option] 
script-file ...
Jul 30 12:02:12 d smtpd: 996487332.726332 GNU long options:
Jul 30 12:02:12 d smtpd: 996487332.726541 ?--debug
Jul 30 12:02:12 d smtpd: 996487332.727823 ?--dump-po-strings
Jul 30 12:02:12 d smtpd: 996487332.728720 ?--dump-strings
Jul 30 12:02:12 d smtpd: 996487332.730062 ?--help
Jul 30 12:02:12 d smtpd: 996487332.730956 ?--login
Jul 30 12:02:12 d smtpd: 996487332.731152 ?--noediting
Jul 30 12:02:12 d smtpd: 996487332.732205 ?--noprofile
Jul 30 12:02:12 d smtpd: 996487332.733088 ?--norc
Jul 30 12:02:12 d smtpd: 996487332.733281 ?--posix
Jul 30 12:02:12 d smtpd: 996487332.734324 ?--rcfile
Jul 30 12:02:12 d smtpd: 996487332.735210 ?--restricted
Jul 30 12:02:12 d smtpd: 996487332.735406 ?--verbose
Jul 30 12:02:12 d smtpd: 996487332.736698 ?--version
Jul 30 12:02:12 d smtpd: 996487332.737591 ?--wordexp
Jul 30 12:02:12 d smtpd: 996487332.737781 Shell options:
Jul 30 12:02:12 d smtpd: 996487332.738884 ?-irsD or -c command??(invocation 
only)
Jul 30 12:02:12 d smtpd: 996487332.739853 ?-abefhkmnptuvxBCHP or -o option 

I search qmail-scanner-queue.pl to see if there is /bin/sh execution
with wrong paramteres, but there it seems there is none. 

Any help or ideas ? 

Regards,
philipp 

 
Philipp Steinkrüger 

Technik
Oberberg Online
Tel.: +49 2261 814240
Fax: +49 2261 814919
www.oberberg.net
[EMAIL PROTECTED]



Re: Slow pop3d

2001-07-30 Thread Dennis Pedersen


- Original Message -
From: Greg White [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 12:27 AM
Subject: Re: Slow pop3d


 On Sun, Jul 29, 2001 at 09:54:17PM +0200, Dennis Pedersen wrote:
   Hi!
  I have installed Qmail 1.03 by following the 'Life With Qmail'.
  My problem is that sometimes the pop3d is very very slow (i can take up
to a
  min before it 'wakes up' and askes for a user auth) this happens when i
try
  telnetting localhost 110 and by using a mail client from my workstation
:(
  Does anyone have an idea what i have missed? (the stranges thing is that
  sometimes it works fine(?!))
 
  OS : FreeBSD 4.2
 
  Regards
  Dennis
 

 Please go read the archives... This is asked at _least_ once a week.
 There are a number of possible causes, and their fixes, all documented
 quite nicely there.

 One source of archives:

 http://marc.theaimsgroup.com/

Uhm okai..
But i am wondering why it is'nt in the FAQ if it a typpical Q.?
(i did try google.com but i didnt fint anything usefull)
But anyways it works not thanx to Ahmad Ridha

/Dennis




LIMIT inbox size......cjk

2001-07-30 Thread Constantine Koulis

Hello All.
I want to put a limit of 2 MB lets say in my users inbox.I am using 
vmailmg,courier-imap,qmail,omail-admin.
my users are under /home/xxx where xxx are the virtual domain and under 
there is the users,Anybody know how?
Also i would like to limit the maximum size of a email that a user can 
receive.This lets say to be 2 mb.Where do i have to go for that?

Sincerely

Tks  Best Regards
Koulis Constantine.
Bucharest Romania
Business Phone :+4-093979131


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




Re: VirtualUser/Aliases Help..

2001-07-30 Thread [EMAIL PROTECTED]

Hi Craig, 

Did you try using rcpthosts instead of locals?

regards
re2


This is a multi-part message in MIME format.


--=_NextPart_000_00FE_01C11864.3DF64330
Content-Type: text/plain;
   charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable

Hi Everyone..

Sorry if this has been covered anywhere else.. but i havent been able to =

find it.. if it has been covered could someone please point me in the =
right direction..=20

My situation..=20

Ive got an address [EMAIL PROTECTED] being forwarded to =
[EMAIL PROTECTED] (this is done from /etc/aliases and works fine)
but.. if there is a shell user locally called craig email is delivered =

there rather than being forwarded to the remote mailserver.. which =
means.. /etc/aliases isnt being looked at if the domain is listed as =
local..

The domain must be listed as local, otherwise i get this reply..

Sorry. Although I'm listed as a best-preference MX or A for that host,
it isn't in my control/locals file, so I don't treat it as local. =
(#5.4.6)


Any ideas?



--=_NextPart_000_00FE_01C11864.3DF64330



Re: Stunnel + qmail-smtpd

2001-07-30 Thread Dave Sill

Per-fredrik Pollnow (EPK) [EMAIL PROTECTED]
wrote:

I have been trying this in some desperate moments to get it to work(and some other 
things) :=) :

#!/bin/sh
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 smtp /usr/local/sbin/stunnel -p 
/etc/pem/smtp.pem -l /var/qmail/bin/qmail-smtpd 21

Try something like:

#!/bin/sh
exec /usr/local/sbin/stunnel -f -p /usr/local/etc/stunnel.pem -d 465 \
   -r 25 21

It proxies the existing SMTP service, so you automatically get
softlimit, a connection limit, and the qmail-smtpd processes running
with the right UID/GID. The only problem is that it'll make
connections look like they came from the local host, so selective
relaying, et al, won't work.

-Dave



Compile error

2001-07-30 Thread mick

Anyone know what component I'm missing:

# make setup check
nroff -man qmail-clean.8  qmail-clean.0
troff: fatal error: can't find macro file tty-char
make: *** [qmail-clean.0] Error 1

Thanks

*
Mick Dobra
Systems Administrator
MTCO Communications
1-800-859-6826
*




[ot] on trust of SSL-certificates (was: stunnel and qmail-threads)

2001-07-30 Thread Magnus Bodin


Is there anyone using verisign or other trusted CA-signed certificates
for your stunnel-connections (pop3, smtp et al)?

What I really want to know is of course if you find it in any way
meaningful to use ssl-encryption without being able to trust the
certificates? Crypto is fine, but with these nice man-in-the-middle-attack
tools that exists today it may just give a false sense of security.

What's your opinion?

Or don't we want to discuss serious things on this list?

/magnus



pop3d log

2001-07-30 Thread GARGIULO Eduardo INGDESI

Hi all.

I'm using pop3d. I want to know if is possible to configure
pop3d to log the username trying to connect as  and more
information about the connection.

thanks

--ejg:wq!



Re: qmail + mail-filtering

2001-07-30 Thread Ahmad Ridha

Brett Randall writes: 

 François == François Philippo [EMAIL PROTECTED] writes:
 
 how can I setup a mailfilter (in  out) on my qmail server ?
 
 qmail-scanner
 mess822
 www.qmail.org (especially the links in the first damned paragraph)
 cr.yp.to
 procmail
 emacs + qmail-send.c 
 

Don't forget maildrop. It works great alongside SqWebMail. 

Regards, 

Ahmad Ridha 




Re: Machine names in message headers

2001-07-30 Thread JT

Check the Hostname of the machine itself.. Qmail pulls the machine name from
the machine not from DNS

--JT
- Original Message -
From: John Portwin [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 8:19 AM
Subject: Machine names in message headers


From any e-mail I send through our server:

Received: (qmail 20807 invoked by uid 0); 30 Jul 2001 15:08:06 -
Received: from [EMAIL PROTECTED] by pluto2001.office.internal with
qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.193495
secs); 30 Jul 2001 15:08:06 -
Received: from unknown (HELO doc2) (10.0.0.22)
  by pluto.office.internal with SMTP; 30 Jul 2001 15:08:06 -


When qmail delivers the mail, the machine name shouldn't be
'pluto2001.office.internal' it should be 'pluto.office.internal'. pluto2001
was the name of the machine while it was in 'test' phase, and has been
removed from all DNS, hosts etc. Why does qmail still think it's called
that? And why does it change?



Regards,
John






Re: Machine names in message headers

2001-07-30 Thread Jamin A. Brown

John,

Try reading the man page for qmail-control and qmail-inject. I suspect
that some of your qmail control files still reference the original
hostname of the machine, and not the current hostname.

Jamin

On Mon, 30 Jul 2001, John Portwin wrote:

 From any e-mail I send through our server:

 Received: (qmail 20807 invoked by uid 0); 30 Jul 2001 15:08:06 -
 Received: from [EMAIL PROTECTED] by pluto2001.office.internal with
 qmail-scanner-0.96 (uvscan: v4.1.40/v4121. . Clean. Processed in 0.193495
 secs); 30 Jul 2001 15:08:06 -
 Received: from unknown (HELO doc2) (10.0.0.22)
   by pluto.office.internal with SMTP; 30 Jul 2001 15:08:06 -


 When qmail delivers the mail, the machine name shouldn't be
 'pluto2001.office.internal' it should be 'pluto.office.internal'. pluto2001
 was the name of the machine while it was in 'test' phase, and has been
 removed from all DNS, hosts etc. Why does qmail still think it's called
 that? And why does it change?



 Regards,
 John





Re: Machine names in message headers

2001-07-30 Thread John P

  When qmail delivers the mail, the machine name shouldn't be
  'pluto2001.office.internal' it should be 'pluto.office.internal'.
pluto2001
  was the name of the machine while it was in 'test' phase, and has been
  removed from all DNS, hosts etc. Why does qmail still think it's called
  that? And why does it change?

 Check the Hostname of the machine itself.. Qmail pulls the machine name
from
 the machine not from DNS

Got it - I think when I put the machine together and installed
qmail-scanner, it used the current machine name (pluto2001) and hardcoded it
into qmail-scanner-queue.pl - so I've edited that and it works OK..

Thanks all
John





Re: Compile error

2001-07-30 Thread Lukas Beeler

just a thought, but update nroff ?
GNU nroff (groff) version 1.17
works fine for me...

At 08:29 30.07.2001 -0500, mick wrote:
Anyone know what component I'm missing:

# make setup check
nroff -man qmail-clean.8  qmail-clean.0
troff: fatal error: can't find macro file tty-char
make: *** [qmail-clean.0] Error 1

Thanks

*
Mick Dobra
Systems Administrator
MTCO Communications
1-800-859-6826
*
At 08:29 30.07.2001 -0500, mick wrote:
Anyone know what component I'm missing:

# make setup check
nroff -man qmail-clean.8  qmail-clean.0
troff: fatal error: can't find macro file tty-char
make: *** [qmail-clean.0] Error 1

Thanks

*
Mick Dobra
Systems Administrator
MTCO Communications
1-800-859-6826
*
-- 
--/-/-- Lukas Beeler  [EMAIL PROTECTED] 
---\-\--
   \ \  My HomePage: URL:http://www.projectdream.org  / /




Problems with qmail-remote hanging

2001-07-30 Thread Richard Underwood

Hi,

I've been running qmail on a number of platforms quite happily for a
while - until now I've had no problems at all. However, I am now
experiencing a problem with qmail-remote hanging.

I'm running qmail on this server for sending mails from websites and
bulk mail-outs (up to about 40,000 recipients.) The server doesn't receive
mails iteself to a great extent.

It's a dual-cpu Dell running Linux. I have another very similar
installation which has absolutely no problems. Qmail on this server is 100%
standard Qmail 1.03.

The problem I see is with qmail-remote failing to terminate when a
connection times-out. If left alone, the number of stuck processes will
slowly climb, after about a month I had about 25 such processes. The network
connections remain in the ESTABLISHED state.

Looking at the process list right now, I have one stuck:

# ps -ef | grep qmail-remote
qmailr   12278   662  0 13:13 ?00:00:00 qmail-remote
xx.co.uk xx
qmailr   19876   662  0 16:09 ?00:00:00 qmail-remote xx.com

root 19912 19489  0 16:10 pts/000:00:00 grep qmail-remote

# strace -p 12278
read(3,  unfinished ...

... all socket read()s in qmail-remote should be protected by a
select and therefore should not block as this one is doing now. After
recompiling with debugging and symbols, I get ...

# gdb qmail-remote 12278
GNU gdb 5.0
Attaching to program: /home/qmail/bin/qmail-remote, Pid 12278
Reading symbols from /lib/libresolv.so.2...done.
Loaded symbols for /lib/libresolv.so.2
Reading symbols from /lib/libc.so.6...wdone.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib/ld-linux.so.2...hdone.
Loaded symbols for /lib/ld-linux.so.2
0x40103424 in __libc_read () from /lib/libc.so.6
(gdb) where
#0  0x40103424 in __libc_read () from /lib/libc.so.6
#1  0x3b654f80 in ?? ()
#2  0x8048f05 in saferead (fd=-1, buf=0x8051180 , len=128)
at qmail-remote.c:113
#3  0x804d193 in oneread (op=0x8048ee8 saferead, fd=-1, buf=0x8051180 , 
len=128) at substdi.c:14
#4  0x804d25e in substdio_feed (s=0x804f3d0) at substdi.c:44
#5  0x804d3ab in substdio_get (s=0x804f3d0, buf=0xbdc7 , len=1)
at substdi.c:75
#6  0x8048f70 in get (ch=0xbdc7 ) at qmail-remote.c:137
#7  0x8048fda in smtpcode () at qmail-remote.c:150
#8  0x80492cb in smtp () at qmail-remote.c:225
#9  0x8049d31 in main (argc=4, argv=0xbe94) at qmail-remote.c:420
#10 0x4004bf31 in __libc_start_main (main=0x804987c main, argc=4, 
ubp_av=0xbe94, init=0x804878c _init, fini=0x804dd10 _fini, 
rtld_fini=0x4000e274 _dl_fini, stack_end=0xbe8c)
at ../sysdeps/generic/libc-start.c:129

... in smtp() ...

220 {
221   unsigned long code;
222   int flagbother;
223   int i;
224  
225 =if (smtpcode() != 220) quit(ZConnected to , but greeting
failed);
226  
227   substdio_puts(smtpto,HELO );
228   substdio_put(smtpto,helohost.s,helohost.len);
229   substdio_puts(smtpto,\r\n);

saferead() calls timeoutread() which calls select() and then read().
fd=-1 is a red-herring, it's not used by saferead in qmail-remote.

Can anyone explain this, or has anyone experienced anything similar?

Thanks,

Richard



Re: Compile error

2001-07-30 Thread mick


I have nroff 1.17 installed.
Ran make with the -k option, continue running after errors. Compiled fine,
just no man pages.

On Mon, 30 Jul 2001, Lukas Beeler wrote:

 just a thought, but update nroff ?
 GNU nroff (groff) version 1.17
 works fine for me...
 
 At 08:29 30.07.2001 -0500, mick wrote:
 Anyone know what component I'm missing:
 
 # make setup check
 nroff -man qmail-clean.8  qmail-clean.0
 troff: fatal error: can't find macro file tty-char
 make: *** [qmail-clean.0] Error 1
 
 Thanks
 
 *
 Mick Dobra
 Systems Administrator
 MTCO Communications
 1-800-859-6826
 *
 At 08:29 30.07.2001 -0500, mick wrote:
 Anyone know what component I'm missing:
 
 # make setup check
 nroff -man qmail-clean.8  qmail-clean.0
 troff: fatal error: can't find macro file tty-char
 make: *** [qmail-clean.0] Error 1
 
 Thanks
 
 *
 Mick Dobra
 Systems Administrator
 MTCO Communications
 1-800-859-6826
 *
 -- 
 --/-/-- Lukas Beeler  [EMAIL PROTECTED] 
 ---\-\--
\ \  My HomePage: URL:http://www.projectdream.org  / /
 
 

*
Mick Dobra
Systems Administrator
MTCO Communications
1-800-859-6826
*




Re: Problems with qmail-remote hanging

2001-07-30 Thread MarkD

   I've been running qmail on a number of platforms quite happily for a
 while - until now I've had no problems at all. However, I am now
 experiencing a problem with qmail-remote hanging.

   The problem I see is with qmail-remote failing to terminate when a
 connection times-out. If left alone, the number of stuck processes will
 slowly climb, after about a month I had about 25 such processes. The network
 connections remain in the ESTABLISHED state.
 
   Looking at the process list right now, I have one stuck:
 
 # ps -ef | grep qmail-remote
 qmailr   12278   662  0 13:13 ?00:00:00 qmail-remote
 xx.co.uk xx
 qmailr   19876   662  0 16:09 ?00:00:00 qmail-remote xx.com
 
 root 19912 19489  0 16:10 pts/000:00:00 grep qmail-remote
 
 # strace -p 12278
 read(3,  unfinished ...
 
   ... all socket read()s in qmail-remote should be protected by a
 select and therefore should not block as this one is doing now. After
 recompiling with debugging and symbols, I get ...

Exactly.

This problem's been reported before. If your OS says that an fd is
readable via select(), then the read() should not block.

As you observe though, the read is blocking so your OS is probably not
telling the truth when it returns from the select().

The archives have plenty of discussion on this and the simplest
solution is to put a large-value alarm() handler in qmail-remote. No
one as yet seems to be able to narrow down which OSes do this and
under what circumstances.


Regards.



Qmail - Spam mail control

2001-07-30 Thread Al Green

Hi,
Got this spam without TO; or CC:  Can someone explain how it got to me when none
of my working email addresses appears in the source info?

Where in the Qmail setup files can I set the SMTP handshake, not to accept email
without a To: or Cc Header (RULESET ? )

al

--
Al Green

The instructions said Install Windoze 95 or better
So we installed LINUX.





Re: Qmail - Spam mail control

2001-07-30 Thread Charles Cazabon

Al Green [EMAIL PROTECTED] wrote:
 Got this spam without TO; or CC:  Can someone explain how it got to me
 when none of my working email addresses appears in the source info?

The contents of the message (including the headers) don't matter -- it's
the envelope recipient address which controls who the message is
delivered to.  This may be recorded my the receiving MTA in a
Delivered-To:, Apparently-To:, or X-Envelope-To: header, but many
sendmail boxen (in particular) don't do this.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



failure to deliver to mailboxes

2001-07-30 Thread Michel Rondeau




Hey all,

I have qmail up and running - only thing is that 
every now and again, it stops delivering messages to people's mailboxes - it 
just queues them. . If I reboot the server, everything gets delivered 
properly. Anyone know why this happens?

Michel


Qmail stopped working

2001-07-30 Thread Alien77

Hi all,
my Qmail suddenly stopped working. I didn't change any of the conf files 
recently.
The services are running, but whenever I try to access POP or SMTP, just 
doing a Telnet to them it takes more than one minute to connect.
I've checked all the logs provided by supervise but nothing unusual.
I run the services with tcpserver. Does anybody know where is the log for 
it?
All the Telnet sessions just hang at:
Tryin 10.0.0.10...
Connected to 10.0.0.10.
Escape character is ']'.

So maybe is tcpserver that doesn't talk to the service it has to alert.

Any ideas?

Thanks in advance.





Re: Qmail stopped working

2001-07-30 Thread Henning Brauer

On Mon, Jul 30, 2001 at 07:16:08PM +0200, Alien77 wrote:
 The services are running, but whenever I try to access POP or SMTP, just 
 doing a Telnet to them it takes more than one minute to connect.

So once more the qmail no. 1 FAQ. Read section G10 in life with qmail or
just lurk on the list for more than 2 minutes.

So the last few days these arrogant assholes like Charles and myself didn't
answer to much on this list, and we've seen what happened. The blind trying
to help the blind, endless threads with wrong advices, endless threads about
the #1 FAQ without real facts and lots of nonsense. It's enough, isn't it?

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Slow pop3d

2001-07-30 Thread Greg White

On Mon, Jul 30, 2001 at 12:47:32PM +0200, Dennis Pedersen wrote:
 Uhm okai..
 But i am wondering why it is'nt in the FAQ if it a typpical Q.?
 (i did try google.com but i didnt fint anything usefull)
 But anyways it works not thanx to Ahmad Ridha

Dan's FAQ included in the distribution was written long before qmail was
as widely deployed as it is now. Dan's FAQ likely covered what were the
most common questions asked on his list at the time. Life With qmail
(LWQ) is currently (IMHO) the best source of information/FAQs/FGAs for
qmail at this point.

http://www.lifewithqmail.org/

This problem is in section G.10 of LWQ.

-- 
Greg White



Re: failure to deliver to mailboxes

2001-07-30 Thread Greg White

On Mon, Jul 30, 2001 at 11:00:00AM -0600, Michel Rondeau wrote:
 
 
 Hey all,
 
 I have qmail up and running - only thing is that every now and again, it stops 
delivering messages to people's mailboxes - it just queues them. . If I reboot the 
server, everything gets delivered properly.  Anyone know why this happens?
 
 Michel

All together now:

What Do the Logs Say?

qmail-send should be logging delivery attempts. If it is not, I have an
idea what the problem might be. If it is, what is the deferral message?

-- 
Greg White



Single UID mailboxes - mail getting lost

2001-07-30 Thread Jay Kline

I need to have a mail server that accepts mail from several domains. I read
through your HOWTO and thought that would be the best way to implement it, however
I have not had any success with it.  When I try to send a message, it seems to go
ok, there are no errors in the log files or anything, but the message seems to
just disappear.  To save time and space, I will give you the basic setup I have,
listing only one user.  The rest use the same setup, just change the names, etc.

I created a user/group popuser (both have ID 101)
The email address I will use is [EMAIL PROTECTED]  The host machine is
dogbert.slushpupie.com

/var/qmail/control/users/assign:
=jay-tarsk-com:popuser:101:101:/var/qmail/popboxes/tarsk-com/tarsk-jay:::

/var/qmail/control/users/poppasswd: (the password in this case is tarsk)
tarsk-jay:W.I8jJCHbKvBQ:popuser:/var/qmail/popboxes/tarsk-com/tarsk-jay

/var/qmail/control/virtualdomains:
tarsk.com:tarsk-com

/var/qmail/control/rcpthosts:
localhost
dogbert.slushpupie.com
slushpupie.com
tarsk.com

/var/qmail/popboxes/tarsk-com/tarsk-jay/.qmail:
./Maildir/



And here is what the syslog looks like when I try to send a message:

Jul 30 13:22:21 dogbert qmail: 996517341.588676 new msg 109593
Jul 30 13:22:21 dogbert qmail: 996517341.589130 info msg 109593: bytes 233 from 
qp 4889 uid 64011
Jul 30 13:22:21 dogbert qmail: 996517341.596701 starting delivery 39: msg 109593
to local @dogbert.slushpupie.com
Jul 30 13:22:21 dogbert qmail: 996517341.597090 status: local 1/10 remote 0/20
Jul 30 13:22:21 dogbert qmail: 996517341.600277 delivery 39: success:
Jul 30 13:22:21 dogbert qmail: 996517341.600649 status: local 0/10 remote 0/20
Jul 30 13:22:21 dogbert qmail: 996517341.600799 end msg 109593


After sending the message there is nothing.  No error, nothing bounces back, I
check the queue dirs, and nothing in there.  I am afraid this is a bit over my
head, and could really use some help.  Any help you can provide would be greatly
appreciated.

Thanks,

Jay

--
Jay Kline
[EMAIL PROTECTED]
http://www.slushpupie.com/




Use rblsmtpd to tag messages rather than blackholing?

2001-07-30 Thread Chris Shenton

I'm started using rblsmtp to blackhole messages from sites listed in a
variety of open-relay and other anti-spam DNS services.  In run:

/usr/local/bin/tcpserver -v -u 82 -g 65534 0 smtp \
/usr/local/bin/rblsmtpd \
-r inputs.orbz.org \
-r outputs.orbs.org \
-r or.orbl.org \
-r relays.ordb.org \
-r dev.null.dk \
-r orbs.dorkslayers.com \
-r orbs.gst-group.co.uk \
-r relays.osirusoft.com \
/var/qmail/bin/qmail-smtpd 21 | \
/var/qmail/bin/splogger qmail-smtpd 2 

I've noticed some legitimate list mail disappearing and see some notes
in the logs about other rejections, but I can't get a sense of what's
being rejected.

Is there a way to use rblsmtpd, or some other tool, to mark a message
as potential spam, along with a message like the one it logs like:

rblsmtpd: 24.0.95.144 pid 11121: 451 IP address 24.0.95.144 is an open mail relay 
or part of a multistage open relay - See http://www.orbl.org

If it could instead of /dev/nulling these messages simply add an
X-header I could have my MUA file them to a suspicious mailbox and
see what I'm missing -- at least until I get comfortable enough for it
to blackhole this stuff, sight unseen.

Thanks.



Re: [ot] on trust of SSL-certificates (was: stunnel and qmail-threads)

2001-07-30 Thread Henning Brauer

On Mon, Jul 30, 2001 at 03:35:47PM +0200, Magnus Bodin wrote:
 What's your opinion?

Do I trust Verisign/Thawte? Surely not. The whole SSL signing infrastructure
is just a big money machine. The task of signing keys for apps like https
and smtp/pop3/imap ove SSL is sooo easy and really really easy to
automate through a mailrobot, it's a shame that someone wants more than 1$ a
year for that.
A kind of OpenCA would be nice, though worthless for most users as long as
M$ and Netscape/AOL don't include the certificate in their browsers, and we
should be sure Veridign  co pay a _lot_ for that.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: pop3d log

2001-07-30 Thread Henning Brauer

On Mon, Jul 30, 2001 at 11:23:20AM -0300, GARGIULO Eduardo INGDESI wrote:
 Hi all.
 
 I'm using pop3d. I want to know if is possible to configure
 pop3d to log the username trying to connect as  and more
 information about the connection.

spend a few seconds in the archives and on qmail.org. Search for pop3 and
logging or so. There _are_ patches, I'm nearly sure at least one is linked
from qmail.org.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Compile error

2001-07-30 Thread Arjen van Drie

On Mon, Jul 30, 2001 at 08:29:01AM -0500, mick wrote:
Anyone know what component I'm missing:

# make setup check
nroff -man qmail-clean.8  qmail-clean.0
troff: fatal error: can't find macro file tty-char
make: *** [qmail-clean.0] Error 1

I have 

/usr/share/groff/tmac/tmac.tty-char

on my redhat machine

rpm -qf /usr/share/groff/tmac/tmac.tty-char
groff-1.16.1-7


-- 

Grtz, 

Arjen.




Re: Is this related to previous Multiple send problem?

2001-07-30 Thread Henning Brauer

On Mon, Jul 30, 2001 at 09:46:51AM +0800, Darren Kukulka wrote:
 Hi All,
 
 I submitted a query not long ago regarding multiple resends of SMTP mail
 to a Mimesweeper host.  Thanks to those who replied - got a few ideas
 from the responses and convinced the client to remove bandwidth
 constrictions on the pipe to the Mimesweeper box (previously 32k).
 
 Had a week of no repeats until Friday - doh!  Again, the log is showing
 the following ;
 
 delivery x: deferral:
 Connected_to_xx.xx.xx.xx_but_connection_died._Possible_duplicate!_(#4.4.
 2)

The Facts didn't change. Mimesweeper dropped the connection after DATA but
before sending a 250 ok. I've explained it the last time, and it didn't
change. It's mimesweepers fault (or a network problem) and qmail _must_
resend the message.
Fix mimesweeper. We can't help you.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: qmail loop problem

2001-07-30 Thread Henning Brauer

On Sun, Jul 29, 2001 at 05:44:51PM +0200, Sebastien Monassa wrote:
 I knwo it seems related to the msglog user from
 Bruce latest RPM patch, but it used to work fine.
 The msglog function was and is still disabled.

This one more proves that installing foreign packages is most times a very
bad idea.

 Delivered-To: [EMAIL PROTECTED]

 virtualdomains:
 Virtual domain: netsecurity.fr:netsecurity
 Virtual domain: .netsecurity.fr:netsecurity

You failed to show us the contens of
/var/qmail/alias/.qmail-netsecurity-msglog, or, if netsecurity is a system
user, its $HOME/.qmail-msglog file. This one should exist and only contain
one line:
#

The better fix is to compile qmail yourself from the source. This extra
delivery per mail, even if its dicarded later, caused unneeded system load
and may cause problem as you proved here.


-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: About message size...

2001-07-30 Thread Henning Brauer

On Sat, Jul 28, 2001 at 07:18:03PM +0300, Ertan Yusufoglu wrote:
 I have installed qmail with vpopmail and added some virtual e-mails
 with vpopmail. Also I set the quotas. Quotas sometimes don't work.
 Because vpopmail use the message size which is specified in 
 mail name (I use Maildir format). Like this :

You are on the wrong list. This list is about qmail, not vpopmail. The
latter has its own list, use it.

-- 
* Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
* Roedingsmarkt 14, 20459 Hamburg, Germany   *
Unix is very simple, but it takes a genius to understand the simplicity.
(Dennis Ritchie)



Re: Qmail IMAP4 for Maildir - best one??

2001-07-30 Thread Tony Harris

Thank you for such a wonderfully nice short response.

I'm sorry if I sound like a jerk, but I had read several were out there -
and I had read on here some people complaining about slowness and some
moving from courier to UW, and some moving from UW to courier.

I HAD searched the archives - most of the ones that had to do with opinions
of IMAP that I saw were several months old - as you know software can change
fast with new features and better stability.

Reading the base faq (which I DID DO):

5.2.4. imap-maildir
David R. Harris has cleaned up the patch that adds maildir support to the
University of Washington IMAP server and documented the installation
process. See http://www.davideous.com/imap-maildir/.

5.2.5. Courier-IMAP
Sam Varshavchik has written an IMAP server that supports maildir mailboxes
only. It's available from http://www.inter7.com/courierimap/.


And I did not read *your* FAQ because I do not use QMail-LDAP - actually I
use a combination of sendmail and qmail for the mail solution, so forgive me
for not wanting to make a switch to move everything into an LDAP style
solution.

So, before you jump down someones throat for something you ASSUME (ie: not
doing homework) - check first.

-Tony

- Original Message -
From: Henning Brauer [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 3:33 PM
Subject: Re: Qmail IMAP4 for Maildir - best one??


 On Sun, Jul 29, 2001 at 09:35:05PM -0500, Tony Harris wrote:
  Hi,
 
  I'm looking at using a webmail program that requires the use of
MAPv4  -  I
  see there are various imap packages available that works with qmail -
which
  is really the most stable and seems to work the best with IMAP?

 How many seconds did you spent in searching the archives, reading
 lifewithqmail.org and qmail.org?
 In short: courier is the preferred one for most of us.

  I'm looking at trying out squirrelmail (so any other tips one might be
able
  to offer would be greatly appreciated as well ;)

 squirrel is fine, sqwebmail too.
 I've written a short pargraph about the two in
www.lifewithqmail.org/ldap/.

 Please do your homework next time.

 --
 * Henning Brauer, [EMAIL PROTECTED], http://www.bsws.de *
 * Roedingsmarkt 14, 20459 Hamburg, Germany   *
 Unix is very simple, but it takes a genius to understand the simplicity.
 (Dennis Ritchie)




---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.265 / Virus Database: 137 - Release Date: 7/18/01




qmail-smtpd sloooow to respond.

2001-07-30 Thread Abbe DeMoss

Hiya.

I'm having a problem with SMTP connections to my mailserver, particularly 
those from Outlook, which simply are not working no matter how long I set 
the SMTP timeout to be on the client end.  If I manually connect to my mail 
server (telnet mail 25) I get a 'Connected to..' immediately -- that's 
inetd -- but then the next line '220 blah blah ESTMP' doesn't come up for 
somewhere between 30 and 120 seconds.  However, if I do it locally -- 
(telnet localhost 25) I get an immediate ESMTP response.

I'm running inetd - tcpd - tcp-env - qmail-smtpd.  This is on a mandrake 
7.2 box.

from my inetd.conf : 

smtpstream  tcpnowait  qmaild  /usr/sbin/tcpd  /var/qmail/bin/tcp-env 
/var/qmail/bin/qmail-smtpd


I've also tried this with a -R argument to tcp-env to keep it from doing 
ident lookups, and this has made no discernable difference.

The load on the box is minimal and I've tried shutting off other services 
on the box just to make sure nothing is interferring.  Everything is 
working fantastic otherwise.  The host I'm trying to connect from has both 
forward  reverse DNS records.  Our SMTP server has never been this slow 
before, though it sometimes gets a bit slow, and we've been running with 
this configuration for over a year.

I'm running inetd - tcp-env - qmail-smtpd.  I've been testing tcpserver 
but haven't been able to get RELAYCLIENT to be set when using it.


Has anyone had this problem?  Does anyone know what would cause this 
problem?  I am eager to get switched over to something other than inetd, 
but I can't spend time figuring that out in test when our -prod- server 
has gone tits up.


?


Thanks so much,

Abbe DeMoss



Re: qmail-smtpd sloooow to respond.

2001-07-30 Thread Greg White

On Mon, Jul 30, 2001 at 02:12:37PM -0700, Abbe DeMoss wrote:
 Hiya.
 
 I'm having a problem with SMTP connections to my mailserver, particularly 
 those from Outlook, which simply are not working no matter how long I set 
 the SMTP timeout to be on the client end.  If I manually connect to my mail 
 server (telnet mail 25) I get a 'Connected to..' immediately -- that's 
 inetd -- but then the next line '220 blah blah ESTMP' doesn't come up for 
 somewhere between 30 and 120 seconds.  However, if I do it locally -- 
 (telnet localhost 25) I get an immediate ESMTP response.

Wow. Been on the list long? This is the number one (IMO) FAQ for qmail.
It's been answered at least once _today_. Please try to lurk a little
longer next time. It's frustrating to everyone to answer the same
question constantly.

 
 I'm running inetd - tcpd - tcp-env - qmail-smtpd.  This is on a mandrake 
 7.2 box.
 
   from my inetd.conf : 
 
 smtpstream  tcpnowait  qmaild  /usr/sbin/tcpd  /var/qmail/bin/tcp-env 
/var/qmail/bin/qmail-smtpd
 
 
 I've also tried this with a -R argument to tcp-env to keep it from doing 
 ident lookups, and this has made no discernable difference.

You need to stop if from doing a reverse DNS lookup, most likely. IMO
this is best achieved with tcpserver*. Go forth and read:

http://www.lifewithqmail.org/

If that does not get you up and running tcpserver  qmail-smtpd, plus
setting RELAYCLIENT properly, within 15 minutes of reading and
understanding, then you need more help than anyone can give. :)


*1. The reverse lookup might not be for the client -- it might be for
TCPLOCALHOST.

*2. I hate inetd. I've hated it for years. Most people on this list
don't like it either, and don't use it. I've forgotten anything useful
about inetd.

-- 
Greg White



Re: Single UID mailboxes - mail getting lost

2001-07-30 Thread Chris Johnson

On Mon, Jul 30, 2001 at 01:30:20PM -0500, Jay Kline wrote:
 /var/qmail/control/users/assign:
 =jay-tarsk-com:popuser:101:101:/var/qmail/popboxes/tarsk-com/tarsk-jay:::
 
 /var/qmail/control/users/poppasswd: (the password in this case is tarsk)
 tarsk-jay:W.I8jJCHbKvBQ:popuser:/var/qmail/popboxes/tarsk-com/tarsk-jay
 
 /var/qmail/control/virtualdomains:
 tarsk.com:tarsk-com

Mail sent to [EMAIL PROTECTED] is delivered locally to tarsk-com-jay, not
jay-tarsk-com. Fix your assign file and you should be in business.

Chris

 PGP signature


Re: Single UID mailboxes - mail getting lost

2001-07-30 Thread Jay Kline

I agree...  because I just got it working finally! I dont know what was 
wrong, but I reinstalled and started over.  That seemed to work. About the 
only disadvantage to not using a vpop type manager is the automation. But 
even a simple perl script can solve that problem.

Jay

On Monday 30 July 2001  8:56 pm, you wrote:
 On Mon, Jul 30, 2001 at 10:55:10PM +0200, Henning Brauer wrote:
  Singe UID setups, usually called Virtual User Setups, are requiring a
  virtual user manager.

 That's not true. I've been using a roll-my-own single UID setup for ages,
 with no vpopmail or vmailmgr or anything but a custom checkpassword. It
 works beautifully and I don't have to worry about the security of non-DJB
 code (except for the cdb-enabled checkpassword, which I wrote myself).

 For someone with a small set of domains and a user base that doesn't change
 that often, I'd recommend a single-UID setup. It'll be more secure, and
 it'll give him a better understanding of how all the pieces of qmail work.

 Chris


Content-Type: application/pgp-signature; charset=us-ascii; 
name=Attachment: 1
Content-Transfer-Encoding: 7bit
Content-Description: 


-- 
Jay Kline
[EMAIL PROTECTED]
http://www.slushpupie.com

A people living under the perpetual menace of war and invasion is very easy to
govern.  It demands no social reforms.  It does not haggle over expenditures
on armaments and military equipment.  It pays without discussion, it ruins
itself, and that is an excellent thing for the syndicates of financiers and
manufacturers for whom patriotic terrors are an abundant source of gain.
-- Anatole France



Re: mail relay server

2001-07-30 Thread Chris Johnson

On Tue, Jul 31, 2001 at 10:38:07AM +0800, Ami Shamril wrote:
 This server (ServerA) is in our internal network. Now we want to install
 qmail to act only as mail relay server (ServerB) to put in our DMZ. So all
 incoming email will go to ServerB first  ServerB will forward to ServerA.
 Same goes to outgoing email. All outgoing email from ServerA will go to
 ServerB first  ServerB will send it out.
 
 My questions are
 1. How to configure qmail to act as mail relay server (ServerB)  how to
 confiruge it to forward all incoming email to ServerA.?

Put all of the domains that ServerA hosts in ServerB's rcpthosts file (but not
in locals or virtualdomains!). Then, for each domain that you just put in
rcpthosts, make an entry in /var/qmail/control/smtproutes like this:

domain.dom:a.b.c.d

where domain.dom is the domain and a.b.c.d is the IP address of ServerA. This
is all you have to do on ServerB, and you don't even have to restart any of the
qmail programs.

 2. In ServerA, how I want to configure qmail to forward all outgoing email
 go to ServerB?

Put:

:e.f.g.h

in /var/qmail/control/smtproutes, where e.f.g.h is the IP address of ServerB.
This is a wildcard entry that tells qmail-remote on ServerA to skip DNS lookups
and send everything to ServerB.

It's just that easy!

Chris

 PGP signature


vchkpw password authentication problem

2001-07-30 Thread board master
Hi,

 I just recently installed vpopmail-4.9.10+qmail-1.03. I set up my local information manually, and used vpopmail's webadmin to create a virutal domain and pop users; however, when I try to pop mail from the virtual users, I cannot -- i.e. the password is not accepted (for whatever reason). Anyone have any ideas? My home directory for vpopmail is: /var/vpopmail with the password file in: /var/vpopmail/domains/myvirtualwebsite.com

Thanks.

P.S. As a side note, I noticed that if I used:

127.:allow,RELAYCLIENT=""192.168.:allow,RELAYCLIENT="":deny

In my tcp.smtp file, I couldn't get mail from the outside in (I thought this file was only supposed to affect mail from the inside out!). However, when I changed it to:

127.:allow,RELAYCLIENT=""192.168.:allow,RELAYCLIENT=""

It seemed to work find (although am I an open-relay now???)

Thanks again.Get your FREE download of MSN Explorer at http://explorer.msn.com


qmail security or email virus?

2001-07-30 Thread s. ryu


 
 Dear Qmail community,
 
 We need your help to track down possible security problem with qmail
 system. It maybe an email virus. But, I am not sure.
 
 The problem: our qmail server was sending out emails to people. the email
  was not orginated from our servers within our network.
  the mail was a spam email with the title - We owe you ... and
  the content of the email seems to be related to the health issue.
 
 I got an email from John B last Friday saying that we are sending out spam 
 emails. So, we looked into our system and our file system which holds the
 mail log was full. so, i looked at the mail server, it was sending out emails to
 the whole list of people. 
 i stopped the qmail servers and it still has more emails to send out.
 
 Help Request: what should i look at to track down the problem? 
   I saved the maillog and /var/qmail/queue directory to track 
   down the problem. 
   I have some guess. I think I narrowed it to
   someone named [EMAIL PROTECTED] but, i am not 100% sure.
 
   how can i clean up the queue directories since there are more 
   messages waiting to send out? should i just remove the files from
   todo directory?
 
   is this part of relay problem? if that is the case, what should
   i do to secure our mail server?
 
   we have qmail-1.3, fastforward, checkpasswd installed. we also
   used the pop3 server.
 
 once, i clean up the qmail, can i restarted the qmail server?
 
   how can we prevent this happening again?
 
   has anyone experienced the similar problem?
 
 we have reported the issue to [EMAIL PROTECTED], since our mail server was
   hacked. is there any other authority we should report to?
 
 Your help will be greatly appreciated.
 
 Sue Ryu
 www.RedOlive.com
 
 
 __
 Do You Yahoo!?
 Make international calls for as low as $.04/minute with Yahoo! Messenger
 http://phonecard.yahoo.com/
 


__
Do You Yahoo!?
Make international calls for as low as $.04/minute with Yahoo! Messenger
http://phonecard.yahoo.com/



duplicate mail for outgoing.

2001-07-30 Thread W. Ruangsang

Hi,All

How to clean duplicate mail for outgoing to mailinglist ?

such as...

to : [EMAIL PROTECTED]
cc : [EMAIL PROTECTED]

and [EMAIL PROTECTED] in list [EMAIL PROTECTED] and [EMAIL PROTECTED]

Now, [EMAIL PROTECTED] will be get mail 2 messages.

How to [EMAIL PROTECTED] get 1 message ?

ThankYou+
OneR.





Re: qmail security or email virus?

2001-07-30 Thread Charles Cazabon

s. ryu [EMAIL PROTECTED] wrote:
 
  We need your help to track down possible security problem with qmail
  system. It maybe an email virus. But, I am not sure.

The security problem is in your setup, not in qmail (just to be clear).
It's not the result of an email virus.
 
  The problem: our qmail server was sending out emails to people. the
  email was not orginated from our servers within our network.  the
  mail was a spam email with the title - We owe you ... and the
  content of the email seems to be related to the health issue.
  
  I got an email from John B last Friday saying that we are sending
  out spam emails. So, we looked into our system and our file system
  which holds the mail log was full. so, i looked at the mail server,
  it was sending out emails to the whole list of people.  i stopped
  the qmail servers and it still has more emails to send out.

Sounds like you've made your system an open relay, or one of the users
which is trusted to relay through your system has abused your trust.

  Help Request: what should i look at to track down the problem? 

Show us the output of qmail-showctl (unedited), any tcpcontrol files
(/etc/tcp.smtp, etc) which you are using, the script you use to start
qmail-smtpd (through tcpserver), and a snippet of the qmail-send log
showing the spam message being injected into your system.

  how can i clean up the queue directories since there are more
  messages waiting to send out? should i just remove the files from
  todo directory?

If qmail is stopped, you could do this.  It won't help with messages
that are already preprocessed.

  is this part of relay problem? if that is the case, what should i do
  to secure our mail server?

We can't tell you this without more information.
 
  we have reported the issue to [EMAIL PROTECTED], since our mail server was
  hacked.

What do you mean by this?  Someone obtained an illegitimate shell
account on your mailserver?  If so, they can send as much mail as they
like; no MTA will protect you against that.

Charles
-- 
---
Charles Cazabon[EMAIL PROTECTED]
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
---



sendmail virtualusertable

2001-07-30 Thread david_hong

Hi,

i am converting sendmail to qmail.
I have one quiestion.

In my current sendmail setting, i have this 
@domain.comlocaluser   
in the /etc/mail/virtualtable

Purpose is to have all the mails to domain.com 
foward to localuser email account.

I would like to setup the same thing in qmail.
How could i do this???

Your help is much appreciated.

David



Re: sendmail virtualusertable

2001-07-30 Thread kengheng

install fastforward, then you can do all the virtual email alias in
/etc/aliases

- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 1:45 PM
Subject: sendmail virtualusertable


 Hi,

 i am converting sendmail to qmail.
 I have one quiestion.


 In my current sendmail setting, i have this
 @domain.comlocaluser
 in the /etc/mail/virtualtable

 Purpose is to have all the mails to domain.com
 foward to localuser email account.

 I would like to setup the same thing in qmail.
 How could i do this???

 Your help is much appreciated.

 David