Re: Dial-up Fails to Connect to SMTP Server

2001-08-03 Thread Jeff Hill

Lukas Beeler wrote:
  But I don't see how rblsmtpd, which works on incoming mail, would affect
  outgoing mail?
 itdoesnt.. was just a fast thought, because MAPS now demands money
 and you talked about outlook express connecting to your smtp server

Perhaps it is possible that rblsmtpd was somehow locking up the server
because of the change in MAPS so that a remote SMTP connection would
fail but a local one would succeed? 

I've just removed rmlsmptd and I'm trying to get the people with the
remote machines to test (no Windoze in the office ;). It is quite a
conincidence that this all started yesterday, just as MAPS switched.

MarkD wrote:
 Is your ISP blocking port 25 outbound traffic?
 What happens if you try to telnet directly to those smtp servers, eg:
 telnet serveraddress 25
 Numerous ISPs only let you send outbound SMTP via there SMTP server as
 a measure against spammers - if that's the case with you then you'll
 need to look into smtproutes.

Well, telneting port 25 from machines on the local network is fine, but
I have been unable to test telnet from remote dial-up machines. Our
upstream (Worldcom) hasn't said anything about starting to control
outbound SMTP, and I think they'd let us know if they did (I'd hope).

Jeff Palmer wrote:
  The only thing I see in the qmail-send logs is quite a few
  I_wasn't_able_to_establish_an_SMTP_connection, but the mail seems to
  go through eventually.
 From the FAQ:
Does qmail back off from dead hosts?
Answer: Yes. qmail has three backoff features:
  * Each message is automatically retried on a quadratic schedule,
with longer and longer intervals between delivery attempts.
  * If a remote host does not respond to two connection attempts
(separated by at least two minutes with no intervening successful
connections), qmail automatically leaves the host alone for an
hour. At the end of the hour it ``slow-starts,'' allowing one
connection through to see whether the host is up.
  * Some mailers opportunistically bombard a host with deferred
messages as soon as the host comes back online. qmail does not do
this. Each message waits until the appropriate retry time.
 The problem you are seeing is,  qmail cannot send to the destination while
 you are offline.  It 'backs off' when you connect to the net,  a while
 goes by,  qmail tries to send 1,  it works,  it sends the rest.
 

Sorry, maybe I wasn't clear. The qmail server is on a dedicated 128K
ISDN; the dial-ups are directly to the qmail server. 

However backlogged qmail-send gets trying to send out mail, it should be
able to establish a connection with a dial-up machine trying to pass it
mail, no? Otherwise, why have a queue?

Thanks to everyone for the ideas.

Regards,

Jeff Hill

-- 

--  HR On-Line:  The Network for Workplace Issues --
http://www.hronline.com - Ph:416-604-7251 - Fax:416-604-4708




routing mail with user-specific tokens in addresses

2001-08-03 Thread Bela Lubkin

I've just subscribed to the list.  I read the FAQ and got some hints,
also searched the mailing list archives as well as the HTML docs.

The situation: my company has been bought.  We were (and still are)
using MMDF for mail transport.  I, and several other employees, have
been using an MMDF feature whereby mail to user=token@domain gets
routed to user@domain.  We then parse the mail when it's delivered to
our local mailbox.  This allows us to route mailing list mail to
specific mailboxes.  We also use it when giving addresses to sites we
don't really trust -- if I start getting spam to user=amazon@domain,
I'll be pretty sure who to blame.

[sendmail apparently has a similar feature for routing
user+token@domain]

Now, our IS department is switching our MTA to qmail.  I have nothing to
do with it, so I have little control over what's going to happen.  I'm
trying to research how they can configure qmail to do this sort of
thing, without it being a big hassle for them.

We have one (probably more) bastion host(s) running qmail, transporting
mail inbound to the company.  These are already set up; mail to our old
company name is still being routed via MMDF, while mail to the new
company goes via qmail.  Internal routing beyond the bastion host is
fairly complex, with several hundred users, thousands of mutual-interest
aliases, and dozens of mail hosts (mail to user1@domain ends up in
mailhost1.domain:~user1/.mailbox while mail to user2@domain ends up in
someotherhost.domain:/usr/spool/mail/user2).  I don't know how that part
is currently being handled.

I've been able to test for certain that none of user=token@domain,
user+token@domain, user-token@domain, or user.token@domain are
being processed in the desired manner.  All of them return bounces
similar to:

  From mail.caldera.cozz!orphanage Thu Aug  2 18:20:18 2001
  Date: 3 Aug 2001 01:22:53 -
  From: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: failure notice

  Hi. This is the qmail-send program at calderasystems.cozz.
  I'm afraid I wasn't able to deliver your message to the following addresses.
  This is a permanent error; I've given up. Sorry it didn't work out.

  [EMAIL PROTECTED]:
  Sorry, no mailbox here by that name. (#5.1.1)

  --- Below this line is a copy of the message.
  [...]

(old-domain = sco.com, new-domain = caldera.com; I'm trying not to
include any real, complete addresses in this message, in case evil
people mine the list archives for spam targets.  I changed com to
cozz above to avoid them being correct addresses.)

In the qmail docs, I can see how to set this sort of thing up for one
user at a time.  qmail-users(5) describes the file
/var/qmail/users/assign and how it could presumably be configured with:

  +belal=:belal:(I don't know what goes here when it's being used as a relay)
  +bela.lubkin=:belal:(relay)

MY QUESTION: is there any way this could be set up in a global fashion,
rather than listing every single user in some config file?

That is, I want to instruct qmail that for _all_ addresses
user=token@domain, it should relay (according to all other relay
configuration) as if the mail were addressed to user@domain.  If
possible I'd like to set up several different characters for this, so
that user+token@domain and user-token@domain would also work (I
frequently encounter web pages which will not accept = as an email
address character; I'm sure other characters are similarly burdened -- I
want a whole pallette of choices to try.)

And I want this all to be so easy that even the most overworked,
uninterested and half-competent IS person would be able to set it up in
five minutes.  ;-}

So, what can I do?

Thanks,

Bela



Re: qmail on AFS

2001-08-03 Thread Rudy Zung

On Thu, Aug 02, 2001 at 01:53:55PM -0700, Greg White wrote:
 On Thu, Aug 02, 2001 at 09:44:47AM -0400, Rudy Zung wrote:
  On Wed, Aug 01, 2001 at 03:27:49PM -0700, Greg White wrote:
   On Wed, Aug 01, 2001 at 05:17:46PM -0400, Rudy Zung wrote:
[Don't remember if I've already posted this; sorry if it's a repeat.]

Trying to run qmail with Maildir on a Slackware with AFS. The AFS is
installed and runs properly. Users' home volumes and Maildir are on AFS. 
Qmail is generating temporary delivery errors; the mail never gets delivered.
   
   Seeing the temporary delivery errors would likely be helpful here.
   What Do the Logs Say?
  
[...ellide...]
 Doing some digging, I found some folks discussing qmail and AFS, and
 discussing AFS/Kerberos tokens, and a workaround for same -- I presume
 that a token is required?
 
 A google search on qmail + AFS returned the hits very quickly, and they
 contained the basics of the workaround, from what it seemed to me. Not
 being an AFS user, I can't help you much more than that.
 
 The only other hits on that error message were quota-overfull, or
 unwritable homes, and such.
 
 Any qmail+AFS users care to step into the conversation at this point?

I tried google search as well but seemed to have come across a lot of hits
of emails from people where the RFC headers included the with qmail words
and the subject matter had something to do with AFS (but not necessarily
qmail with AFS.)

AFS imposes its own idea on the filesystem; you identity is authenticated
with Kerberos, which then issues you a token which is valid for
approximately 24 hours; the token basically proves that you are who you
claim to be by virtue of the fact that you knew the authentication password.
AFS also allows system:anyuser full access to files and directories;
system:anyuser is really basically anyone, including those without tokens.
I have tried setting the directory to essentially be unprotected and
accessible by all. Starting a tokenless session, I am able to touch(1) and
redirect echo(1) into files in the Maildir directory; so the problem that my
qmail has may not necessarily be a tokens thing (although once I get qmail
delivering, I will change it and require a token, and put in a cron job to
reauth the token on a periodic basis so that the qmail jobs will always have
a valid token.)

Best that I can guess, is that the error is generated in local.c; looks like
it performs a chdir(), and is doing some unlinks and hard links.

Anyway, thanks for looking into this.

-- 

...Ru   (a low-cost superhero)
   On, on! Blue skies. Think snow.
   1740484I 998300172 076662 82968/A17215 045124P E286/184435
   975-203608 11859 DS1160 



$maildir.....cjk

2001-08-03 Thread Constantine Koulis

Hello
I would like to know where i DEFINE the $maildir.
I went to www.vmailmgr.org site and i tried to follow the instructions of 
the
3.5 Enabling enforcement of virtual user quotas
and
3.6 Enabling processing of autoresponses

I did the following:in a .qmail-default in the /home/user/.qmail-default i 
have the following
|/usr/local/bin/vdeliver
|/usr/local/bin/vdeliver-predeliver
|/usr/local/bin/vdeliver-postdeliver

And in predeliver i have :
  #!/bin/sh
  /usr/bin/vcheckquota

and in postdeliver:

#!/bin/sh
  if test -s $MAILDIR/autoresponse/message.txt
  then
qmail-autoresponder $MAILDIR/autoresponse/message.txt 
$MAILDIR/autoresponse
  fi

When i use predeliver it says in maillog:

failure: vcheckquota:_MAILDIR_is_not_set/

and i postdeliver it does nothing

Anybody knows why???

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: rblsmtpd and mail-abuse.org's DNS servers

2001-08-03 Thread Chin Fang

You will need to pay MAPS to use one of its three RBLs, or the combined
RBL+.

Please see http://www.mail-abuse.org/subscription.html and
   http://www.mail-abuse.org/feestructure.html

even you are with an educational institution.

Dr. Dan Bernstein himself has given up on MAPS's RBLs:

Please see: http://cr.yp.to/ucspi-tcp/rblsmtpd.html

Regards,

Chin Fang
[EMAIL PROTECTED]

 Hi, I'm having a problem with my qmail smtpd server becoming unresponsive
 when rblsmtpd cannot communiate with the RBL nameservers. Has anyone else
 had this problem? I'd like to blindy accept e-mail if the RBL nameservers
 cannot be contacted. Here's how I'm starting the SMTP server:
 
 /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 7791 -g 2108 -v 0 smtp fixcrio 
/usr/local/bin/rblsmtpd -t 7 /usr/local/bin/rblsmtpd -t 7 -r dialups.mail-abuse.org 
/usr/local/bin/rblsmtpd -t 7 -r 'relays.mail-abuse.org:Open relay problem - see 
URL:http://www.mail-abuse.org/cgi-bin/nph-rss?%IP%' /var/qmail/bin/qmail-smtpd 21 
| /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t n100 s100 
/var/log/smtp 
 
 -- 
 //Derek Callaway [EMAIL PROTECTED] * Programmer: CISC, LLC - S@IRC
  char *sites[]={http://www.freezersearch.com/index.cfm?aff=dhc;,
  http://www.ciscllc.com,http://www.freezemail.com,0}; /*KDR AB 249*/
 
 
 




Re: new install and qmail not logging

2001-08-03 Thread Frank Tegtmeyer

Tauren Mills [EMAIL PROTECTED] writes:

 If they are supposed to go into /var/log/qmail/smtpd/current, then I'd
 appreciate any pointers to getting this problem fixed.

If you followed LWQ, you created the run file for logging as follows:
Create the /var/qmail/supervise/qmail-send/log/run file:

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

That means that your logging goes to /var/log/qmail/current. Older
logfiles are in directory /var/log/qmail too, named @4000

Regards, Frank



Re: Dial-up Fails to Connect to SMTP Server

2001-08-03 Thread Jeff Palmer

 The only thing I see in the qmail-send logs is quite a few
 I_wasn't_able_to_establish_an_SMTP_connection, but the mail seems to
 go through eventually.

From the FAQ:

   Does qmail back off from dead hosts?

   Answer: Yes. qmail has three backoff features:
 * Each message is automatically retried on a quadratic schedule,
   with longer and longer intervals between delivery attempts.
 * If a remote host does not respond to two connection attempts
   (separated by at least two minutes with no intervening successful
   connections), qmail automatically leaves the host alone for an
   hour. At the end of the hour it ``slow-starts,'' allowing one
   connection through to see whether the host is up.
 * Some mailers opportunistically bombard a host with deferred
   messages as soon as the host comes back online. qmail does not do
   this. Each message waits until the appropriate retry time.

The problem you are seeing is,  qmail cannot send to the destination while
you are offline.  It 'backs off' when you connect to the net,  a while
goes by,  qmail tries to send 1,  it works,  it sends the rest.


Work arounds include:

Try sending a HUP or ALRM to qmail-send


Jeff Palmer
[EMAIL PROTECTED]






Re: rblsmtpd

2001-08-03 Thread Lars Hansson

On Thu, Aug 02, 2001 at 04:54:02PM +0800, Adrian Ho wrote:
 On Thu, Aug 02, 2001 at 03:33:53PM +0800, Lars Hansson wrote:
 Actually, I'd bet it's a DNS problem, not an rblsmtpd one.  I'd also bet
[snip]

Ah yes, right you are. I thought rblsmtpd would look it up directly.
Adding the subdomain rbl.unet.net.ph fixed it.


-- 
Lars Hansson  Technical Consultant/System Administrator
UNET, Inc.Makati City, Philippines
e-mail: [EMAIL PROTECTED]




Re: Qmail process under root...

2001-08-03 Thread Peter van Dijk

On Thu, Aug 02, 2001 at 12:40:39PM +0200, NDSoftware wrote:
 Hello,
 It'sn normal this (qmail process under root):
 
 [root@ns207 /root]# ps -fe
 UIDPID  PPID  C STIME TTY  TIME CMD
 root  8248 1  0 12:38 ?00:00:00 sh /command/svscanboot
 root  8253  8248  0 12:38 ?00:00:00 svscan /service
 root  8254  8248  0 12:38 ?00:00:00 readproctitle service
 errors: ..
 root  8255  8253  0 12:38 ?00:00:00 supervise qmail-send
 root  8256  8253  0 12:38 ?00:00:00 supervise log
 root  8257  8253  0 12:38 ?00:00:00 supervise qmail-smtpd
 root  8258  8253  0 12:38 ?00:00:00 supervise log
 root  8259  8253  0 12:38 ?00:00:00 supervise qmail-pop3d
 root  8260  8253  0 12:38 ?00:00:00 supervise log
 qmaill8261  8260  0 12:38 ?00:00:00 /usr/local/bin/multilog
 t /var/l
 qmails8262  8255  0 12:38 ?00:00:00 qmail-send
 qmaill8263  8256  0 12:38 ?00:00:00 /usr/local/bin/multilog
 t /var/l

Ok so far.

 root  8264  8259  0 12:38 ?00:00:00 /usr/local/bin/tcpserver
 -v -R -

^^^ pop3? If so, ok.

 qmaild8265  8257  0 12:38 ?00:00:00 /usr/local/bin/tcpserver
 -v -R -

qmail-smtpd I guess. Is ok.

 qmaill8266  8258  0 12:38 ?00:00:00 /usr/local/bin/multilog
 t /var/l
 qmaill8273  8262  0 12:38 ?00:00:00 splogger qmail
 root  8274  8262  0 12:38 ?00:00:00 qmail-lspawn ./Mailbox
 qmailr8275  8262  0 12:38 ?00:00:00 qmail-rspawn
 qmailq8276  8262  0 12:38 ?00:00:00 qmail-clean

All good, *if* that one tcpserver running as root is pop3 (or IMAP,
for that matter).

Greetz, Peter
-- 
Against Free Sex!   http://www.dataloss.nl/Megahard_en.html



Re: rblsmtpd and mail-abuse.org's DNS servers

2001-08-03 Thread Adrian Ho

On Thu, Aug 02, 2001 at 02:58:08PM -0400, Derek Callaway wrote:
 /usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 7791 -g 2108 -v 0 smtp fixcrio 
/usr/local/bin/rblsmtpd -t 7 /usr/local/bin/rblsmtpd -t 7 -r dialups.mail-abuse.org 
/usr/local/bin/rblsmtpd -t 7 -r 'relays.mail-abuse.org:Open relay problem - see 
URL:http://www.mail-abuse.org/cgi-bin/nph-rss?%IP%' /var/qmail/bin/qmail-smtpd 21 
| /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t n100 s100 
/var/log/smtp 

Two quick observations:

[1] A single rblsmtpd instance can take multiple -r options, so your
command line can be /much/ shorter and more efficiently executed.

[2] Are you actually most concerned about quickly accepting mail from
/local/ (or known-good) clients?  If so, set up your own anti-RBL
list and make it the first list to be checked.

Read http://cr.yp.to/ucspi-tcp/rblsmtpd.html for more details on both
the above.

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
ListArchive: http://marc.theaimsgroup.com/?l=qmail
Useful URLs: http://cr.yp.to/qmail.html http://www.qmail.org
 http://www.lifewithqmail.org/ http://qmail.faqts.com/



Re: shifting qmail accounts from old server to new server

2001-08-03 Thread Jason Kawaja

On Fri, 3 Aug 2001, paras jain wrote:

 Hi all

 Can any one suggest the best way to  transfer all user
 accounts and password from my qmail server on linux
 6.2 to new qmail server on linux 7.0

so, what's the (qmail specific) problem?

/* Regards,
   Jason Kawaja, UF-ECE Sys Admin */





RE: new install and qmail not logging

2001-08-03 Thread Olivier Dupuis

Hello,

I saw few mails about multi log and I have a question about it :

I would like multilog to start a new log every night so that I can archive
the logs day by day. I read in the doc that sending a kill SIGALRM to the
multilog process would force it to start a new log. It actually does but it
also kills the multilog process which is quite annoying because this means
that I have to kill qmail and restart qmail and multilog.
Is there a way to ask multilog to start a new current log without killing
it ?

Thank you

-Message d'origine-
De : Frank Tegtmeyer [mailto:[EMAIL PROTECTED]]
Envoye : vendredi 3 aout 2001 11:38
A : [EMAIL PROTECTED]
Objet : Re: new install and qmail not logging


Tauren Mills [EMAIL PROTECTED] writes:

 If they are supposed to go into /var/log/qmail/smtpd/current, then I'd
 appreciate any pointers to getting this problem fixed.

If you followed LWQ, you created the run file for logging as follows:
Create the /var/qmail/supervise/qmail-send/log/run file:

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

That means that your logging goes to /var/log/qmail/current. Older
logfiles are in directory /var/log/qmail too, named @4000

Regards, Frank




Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Lukas Beeler

At 15:31 03.08.2001 +0100, François Philippo wrote:

instead of sending a mail too big and have an error return
I'd like to controle the mail size before sending it.
is it possible???

yes, man qmail-control
look for databytes

-- 
--/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
   \ \  My HomePage: URL:http://www.projectdream.org  / /




sendmail to qmail migration

2001-08-03 Thread Severin Olloz

Hello...

My server runs sendmail with virtusertable and now I want to switch to qmail.

Does qmail supports virtusertable?

I see there's a virtualdomains file, but it supports only

domanname.com:username

What must I configure that qmail supports email-forwards like this:

adresse@domainname:[EMAIL PROTECTED]

Any ideas?

Thanks :-)

Severin Olloz



Re: shifting qmail accounts from old server to new server

2001-08-03 Thread Lukas Beeler

At 05:41 03.08.2001 -0700, paras jain wrote:
linux 6.2 to new qmail server on linux 7.0
i thought we are at 2.4 ?
and a kernel upgrade doesnt require any change on your qmail system.
/humor
look at your /etc/passwd and /etc/shadow, and copy the wanted user  passes 
to the new server
-- 
--/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
   \ \  My HomePage: URL:http://www.projectdream.org  / /




Re: host file and qmail

2001-08-03 Thread Dave Sill

[EMAIL PROTECTED] wrote:

zmailer distributes mail in our internal network using host file.
can qmail do the same?

i dont like to but internal ip:s in dns.

what would be the best solution to this problem?

control/smtproutes

-Dave



Re: unable to find user alias

2001-08-03 Thread Charles Cazabon

Greg White [EMAIL PROTECTED] wrote:

 While you're at that, visit:
 
 http://www.lifewithhqmail.org/

lifewithqmail.org, you mean.

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



Anti-relaying

2001-08-03 Thread Hansi Bierdo

Hi all.

I'm new to all that qmail stuff, but I got through the installation of
qmail, vpopmail and relay-ctrl. Nearly everything works fine, but...

Before I installed relay-ctrl, smtpd interactet with the rcpthosts-file
and told unconfigured domains this domain is not in my rcpthosts-file.

After installing relay-ctrl the mailer accepts *every* mail but didn't
send them. All the mails to unallowed domainnames (or IPs that didn't
pop before) immediately will be routed to /dev/null. :-)
But I need the this domain is not in my rcpthosts-file message,
because many of our clients use MS Outlook, with that great smtp before
pop-feature, and all this mails will be received by /dev/null and won't
be sended.

Maybe the fault is in the smtp.rules. I can't use IPs there, cause all
the poeple connect with dynamic IPs.

Here are my smtp.rules:
web:/etc/tcpcontrol # more smtp.rules 
:allow,RELAYCLIENT=
When I use ':deny' instead, no mailserver can connect, and never any
mailserver will pop before. ;-)


Here are other relevant files:
web:/var/qmail/supervise/qmail-smtpd # more run 
#!/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/tcpcontrol/smtp.cdb -c
$MAXSMTPD \
-u $QMAILDUID -g $NOFILESGID 0 smtp /var/qmail/bin/qmail-smtpd 21 

web:/var/qmail/supervise/qmail-pop3d # more run 
#!/bin/sh
exec env - PATH=/var/qmail/bin:/usr/local/bin \
tcpserver -H -R 0 pop3 \
/var/qmail/bin/qmail-popup pop.k3-networx.org \
/home/vpopmail/bin/vchkpw /usr/sbin/relay-ctrl-allow \
/var/qmail/bin/qmail-pop3d Maildir 21

web:/etc/tcpcontrol # more smtp.rules 
:allow,RELAYCLIENT=

Keep in mind that relay-ctrl itself is working fine, it records IPs and
these recorded IPs can mail.

Now I've RTFM for half a week, found many websites, checked the
installation again and again and again, but I can't find the outpoint.
:-(

So if someone has a suggestion I would be glad to hear (read) it.

cya,
Tom



Re: allow/deny pop3

2001-08-03 Thread Ahmad Ridha

GARGIULO Eduardo INGDESI writes: 

 Is there any way to pass a -x paremeter file to tcpserver for allow/deny
 pop3 connections. I was using qpopper from inetd and used hosts.* files
 to do that work. Now, I'm using qmail-pop3d from daemontools and I'm 
 looking for some /etc/tcp.pop3 file to restrict connections based on
 IP addresses.
 If it's possible, which is the format of this file? 
 

Yes, it's possible. The format of the file is the same as the one for 
qmail-smtpd. 

Regards, 

Ahmad Ridha 



Re: Fix for qmail-remote process hanging on Linux (and possibly other s)

2001-08-03 Thread Yevgeniy Miretskiy

On Fri, Aug 03, 2001 at 03:07:57PM +0100, Richard Underwood wrote:
 Hi,
 
   I asked about qmail-remote processes hanging in read() on this list
 a few days ago. It appears that this has been reported before, but no
 conclusion seemed to have been made.

I just looked at the server I had problems with -- 15 hung qmail-remotes :(

snip
   Another solution, which I have been trying over the last few days is
 to turn on socket keep alives. This has the effect of closing the socket if
 no data has been sent over it for a fixed period (usually 2 or 3 hours.) The
 read() call will end as if the remote host dropped the connection and
 qmail-remote will terminate normally.
 
   It all seems to be working, so if anyone else is having the same
 problem, you may like to try this fix too. I've included a patch for
 qmail-remote.c - it's not exactly beautiful code, but it works for me.
 

How did you test this patch?
Are you saying that you were able to reliably reproduce the problem?
I could never do this... If so, how?

There is a lot of mistery in this:  Most (but not all) reports 
had connections hung to outblaze.com
Most (but not all) servers ran Linux.

It's weird...




Re: allow/deny pop3

2001-08-03 Thread Jason Kawaja

On Fri, 3 Aug 2001, GARGIULO Eduardo   INGDESI wrote:

 Hi all.

 Is there any way to pass a -x paremeter file to tcpserver for allow/deny
 pop3 connections. I was using qpopper from inetd and used hosts.* files

restrict pop - typically bad idea, whatever.

 to do that work. Now, I'm using qmail-pop3d from daemontools and I'm
 looking for some /etc/tcp.pop3 file to restrict connections based on
 IP addresses.

i think you mean 'from ucspi-tcp'.

 If it's possible, which is the format of this file?

format is cdb, check out :

 * http://cr.yp.to/cdb/cdb.txt
 * http://cr.yp.to/ucspi-tcp/tcprules.html

for more info.

/* Regards,
   Jason Kawaja, UF-ECE Sys Admin */





How-best-to: Secondary Queue for Mailing List

2001-08-03 Thread Jeff Hill

When we e-mail a newsletter to our user list (10,000+ e-mail, twice a
month), it holds up any other e-mail going into the send queue. What's
the best way to avoid this?

The mail to the user list is not time-sensitive; it could take a day to
trickle out and it wouldn't matter. But the few e-mail coming later into
the queue are very time-sensitive.

I've looked at the FAQ, and searched the discussion archive, but I'm not
certain the best way to set it off by itself (we do need to keep it on
the same machine).

Any suggestions appreciated.

Jeff Hill

P.S. Our dial-up SMTP problem does appear to have been linked to the
Aug. 1 change in MAPS servers for rblsmtpd. At least, the problem went
away sometime after removing rblsmtpd.


--  HR On-Line:  The Network for Workplace Issues --
http://www.hronline.com - Ph:416-604-7251 - Fax:416-604-4708




Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Charles Cazabon

Lukas Beeler [EMAIL PROTECTED] wrote:
 At 15:31 03.08.2001 +0100, François Philippo wrote:
 
 instead of sending a mail too big and have an error return
 I'd like to controle the mail size before sending it.
 is it possible???
 
 yes, man qmail-control
 look for databytes

databytes/DATABYTES only work for incoming mail recieved via SMTP.  The
original poster asked about limiting the size of outgoing mail; this
cannot be done with stock qmail.

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



Re: dns.o compilation errors

2001-08-03 Thread Greg White

On Wed, Aug 01, 2001 at 03:43:20PM -0700, Greg White wrote:
 On Wed, Aug 01, 2001 at 04:14:16PM -0500, Proc Meminfo wrote:
  Hey, I am receiving the following errors while doing 'make setup check':
  
  dns.o: In function 'resolve':
  dns.o(.text+0xf8): undefined reference to '__dn_expand'
  dns.o: In function 'findname':
  dns.o(.text+0x1bc): undefined reference to '__dn_expand'
  dns.o(.text+0x24c): undefined reference to '__dn_expand'
  dns.o: In function 'findip':
  dns.o(.text+0x2ae): undefined reference to '__dn_expand'
  dns.o: In function 'findmx':
  dns.o(.text+0x3ac): undefined reference to '__dn_expand'
  dns.o(.text+0x45a): more undefined references to '__dn_expand' follow
  dns.o: In function 'dns_init':
  dns.o(.text+0x4a3): undefined reference to '__res_search'
  dns.o(.data+0xc): undefined reference to '__res_query'
  collect2: ld returned 1 exit status
  make: *** [qmail-remote] Error 1
 
 qmail appears to be attempting to link again your local resolver library
 and not being able to find it. Do you have /usr/include/resolv.h? 
 This isn't really a qmail issue -- just install the resolver library and
 all should be well.
 
 GW

I noted your other reply -- all those references are contained in my
resolv.h, both on my FreeBSD and Linux boxen.

Please verify for me that resolv.h contains references to those
functions -- they're right at the top of the file.
If so, what are the contents of dns.lib in the qmail source tree?
(Should be '-lresolv').

-- 
Greg White
Those who make peaceful revolution impossible will make violent
revolution inevitable.
-- John F. Kennedy



Re: sendmail to qmail migration

2001-08-03 Thread Charles Cazabon

Severin Olloz [EMAIL PROTECTED] wrote:
 Hello...

I answered your question earlier today.  You've since posted it three
more times.  If you can't be bothered to read the qmail list, don't send
questions to the list.  If you can't wait at _least_ 24 hours for an
answer before re-posting, hire a qmail consultant instead.

And learn some basic netiquette.

Charles
-- 
--
Charles Cazabon   [EMAIL PROTECTED]
QCC Communications Corporation   Saskatoon, SK
--



Vpopmail+SqWebmail 3 problem

2001-08-03 Thread board master
Hello,
I have qmail 1.03 and qmailadmin w/ ezmlm  autoresponder installed on
my Red Hat Linux 7 server. I received the follwing error message during
setup:

echo '#include "/var/vpopmail//include/config.h"' vpopmail_config.h
gcc -DHAVE_CONFIG_H -I. -I. -I. -I/var/vpopmail//include -g -O2 -Wall
-I.. -I./.. -c authvchkpw.c
authvchkpw.c: In function `auth_vchkpw_changepass':
authvchkpw.c:142: warning: assignment from incompatible pointer type
authvchkpw.c:151: dereferencing pointer to incomplete type
authvchkpw.c:151: dereferencing pointer to incomplete type
make[1]: *** [authvchkpw.o] Error 1
make[1]: Leaving directory `/root/sqwebmail-3.0.0/authlib'
make: *** [all-recursive] Error 1

Apparently the error comes with the vchkpw setup. Is this a bug or is it
me?
Thanks.Get your FREE download of MSN Explorer at http://explorer.msn.com


sendmail to qmail migration

2001-08-03 Thread Severin Olloz

Hello...

My server runs sendmail with virtusertable and now I want to switch to qmail.

Does qmail supports virtusertable?

I see there's a virtualdomains file, but it supports only

domanname.com:username

What must I configure that qmail supports email-forwards like this:

adresse@domainname:[EMAIL PROTECTED]

Any ideas?

Thanks :-)

Severin Olloz



Re: Fix for qmail-remote process hanging on Linux (and possibly o ther s)

2001-08-03 Thread Charles Cazabon

Richard Underwood [EMAIL PROTECTED] wrote:
 
   My other suspicion is that there's a chance that my one server will
 try a couple of dozen connections to the same remote host at the same time.
 (This is an issue in itself!)

Why is this an issue?  If the remote host can handle 100 inbound
connections, you should be able to open 100 connections to them, inject
your messages, and close the connections.  Everyone's happy.

If the remote host can't handle that many, it shouldn't accept that
many.  You'll then get connections past X deferred, and qmail will back
off.

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



tcpserver problems? or is it qmail? or BOTH! Help?

2001-08-03 Thread Craziest Manalive

Hey all,

I'll keep it short.  I am hoping to implement qmail where i work for a 
canadian univeristy.  I have installed linux 7.1 and qmail and tcpserver.  
all services appear to be running error free.  I can connect to the box on 
the local machine, but not from outside the box at all.  I have set the 
rules to :ALLOW and restarted the tcpserver and the qmail - but i still get 
no connection on port 25 through telnet from anywhere other than the local 
machine.

Hoping someone can help - please respond directly to my email address 
([EMAIL PROTECTED]) if you can.  Thanks in advance for any help you can 
offer.

Sean Daniels
Project Support
Trent University
[EMAIL PROTECTED]


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




Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Greg White

On Fri, Aug 03, 2001 at 05:26:55PM +0200, Lukas Beeler wrote:
 At 08:14 03.08.2001 -0700, you wrote:
 
 Someone please correct me if I'm wrong here, but isn't databytes exactly
 what the OP does _not_ want? databytes is checked after the mail is
 spooled, no?
 i don't use this function.
 i thought it would decline the message on smtp level. with a 553 error 
 after data. But, i don't know it, because i never used this function.
 and, the question is how:
  I'd like to controle the mail size before sending it.
 should be interpretet.. the message won't be sent to the to the other end, 
 with databytes. in any case.
 -- 
 --/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
\ \  My HomePage: URL:http://www.projectdream.org  / /
 

Man, I'm not having a good month. Never did get around to implementing
databytes, as it was my understanding that its utility was limited --
the manpage never explicitly states whether the mail is actually queued
or not, and I (apparently) misread it. qmail-send never sees the mail,
and it is rejected at the SMTP level, not bounced. This appears to work
regardless of destination -- all SMTP injected mail must fit inside
databytes.

To the OP, it looks like databytes will do what you want, if the sender
is injecting via SMTP, rather than locally.

-- 
Greg White



allow/deny pop3

2001-08-03 Thread GARGIULO Eduardo INGDESI

Hi all.

Is there any way to pass a -x paremeter file to tcpserver for allow/deny
pop3 connections. I was using qpopper from inetd and used hosts.* files
to do that work. Now, I'm using qmail-pop3d from daemontools and I'm 
looking for some /etc/tcp.pop3 file to restrict connections based on
IP addresses.
If it's possible, which is the format of this file?

--ejg:wq!



Re: allow/deny pop3

2001-08-03 Thread Charles Cazabon

GARGIULO Eduardo INGDESI [EMAIL PROTECTED] wrote:
 
 Is there any way to pass a -x paremeter file to tcpserver for allow/deny
 pop3 connections.

Yes.  In fact, it _is_ -x.

 If it's possible, which is the format of this file?

`man tcprules`

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



Re: can qmail control a mail size before sending it ??

2001-08-03 Thread Lukas Beeler

At 08:14 03.08.2001 -0700, you wrote:

Someone please correct me if I'm wrong here, but isn't databytes exactly
what the OP does _not_ want? databytes is checked after the mail is
spooled, no?
i don't use this function.
i thought it would decline the message on smtp level. with a 553 error 
after data. But, i don't know it, because i never used this function.
and, the question is how:
 I'd like to controle the mail size before sending it.
should be interpretet.. the message won't be sent to the to the other end, 
with databytes. in any case.
-- 
--/-/-- Lukas Beeler  [EMAIL PROTECTED] ---\-\--
   \ \  My HomePage: URL:http://www.projectdream.org  / /




Unable to unsubscribe

2001-08-03 Thread Johan Van Gompel

I sent numerous mails to [EMAIL PROTECTED] but to no avail.
Can someone please give me some pointers?

--
Johan Van Gompel

-- 
Aufgepasst - jetzt viele 11 New WebHosting Pakete ohne
Einrichtungsgebuehr + 1 Monat Grundgebuehrbefreiung!
http://puretec.de/index.html?ac=OM.PU.PU003K00736T0492a




Fix for qmail-remote process hanging on Linux (and possibly others)

2001-08-03 Thread Richard Underwood

Hi,

I asked about qmail-remote processes hanging in read() on this list
a few days ago. It appears that this has been reported before, but no
conclusion seemed to have been made.

The problem appears to be in timeoutread() which uses select() to
prevent read() from blocking. For whatever reason, during heavy load, this
fails and the read() call blocks. The TCP connection stays in the
established state and therefore the process never terminates, leading to a
reduction in the number of available concurrent remote deliveries.

One suggestion (from MarkD) was to set a large-value alarm signal to
terminate the process, which would work (qmail would see the qmail-remote
process as crashed and try it again) but I don't particularly like this
method. Potentially you could cut a large message sent over a slow
connection off for one thing.

Another solution, which I have been trying over the last few days is
to turn on socket keep alives. This has the effect of closing the socket if
no data has been sent over it for a fixed period (usually 2 or 3 hours.) The
read() call will end as if the remote host dropped the connection and
qmail-remote will terminate normally.

It all seems to be working, so if anyone else is having the same
problem, you may like to try this fix too. I've included a patch for
qmail-remote.c - it's not exactly beautiful code, but it works for me.

Good luck,

Richard

*** qmail-1.03/qmail-remote.c   Mon Jun 15 11:53:16 1998
--- qmail-1.03.patched/qmail-remote.c   Fri Aug  3 14:34:27 2001
***
*** 338,344 
int flagallaliases;
int flagalias;
char *relayhost;
!  
sig_pipeignore();
if (argc  4) perm_usage();
if (chdir(auto_qmail) == -1) temp_chdir();
--- 338,345 
int flagallaliases;
int flagalias;
char *relayhost;
!   int s_opt;
! 
sig_pipeignore();
if (argc  4) perm_usage();
if (chdir(auto_qmail) == -1) temp_chdir();
***
*** 415,420 
--- 416,423 
  if (smtpfd == -1) temp_oserr();
   
  if (timeoutconn(smtpfd,ip.ix[i].ip,(unsigned int)
port,timeoutconnect) == 0) {
+   s_opt=1;
+   setsockopt(smtpfd,SOL_SOCKET,SO_KEEPALIVE,s_opt,sizeof(int));
tcpto_err(ip.ix[i].ip,0);
partner = ip.ix[i].ip;
smtp(); /* does not return */



Re: tcpserver problems? or is it qmail? or BOTH! Help?

2001-08-03 Thread Charles Cazabon

Scott Zielsdorf [EMAIL PROTECTED] wrote:
 
 By searching on the keywords xinetd and qmail on the web I was able to
 find a script that allowed xinetd to use tcpserver as its daemon and then
 the relaying rules in /etc/tcp.smtp.cdb worked.
[...]

Possibly the reason you were blasted is that this is incorrect.  You
_cannot_ make inetd or xinetd use tcpserver.  Your xinetd script doesn't
use tcpserver; it uses tcp-env.  tcp-env was originally designed to
allow you to do tcpserver-like operations from inetd, but is now
deprecated.  There are precisely zero advantages to using inetd/xinetd
in this manner, and several disadvantages (when compared to a simple
tcpserver installation).

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



Problem with routing (Again)

2001-08-03 Thread Cordell Bourne

Here is my situation.  I have a test lab with many mail servers from various
venders.  Each of the mail servers has the same set of test users loaded on each
machine.  With this problem I am not able to setup a MX record so I use the
artificial routing scheme of qmail to get some things accomplished that I need
done.

Here is what I am trying to achieve now.

I have qmail on a server with the U of W IMAP server.  With our client which we
are testing I am able to send to [EMAIL PROTECTED] and the message is
accepted by qmail with no problem.

However, if I send to

[EMAIL PROTECTED] the message never arrives.  I get a bounced message from
qmail stating the following

Hi. This is the qmail-send program at hostname.psomedomain.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

[EMAIL PROTECTED]:
Sorry, I couldn't find any host named pain.teamp.com. (#5.1.2)

What have I missed.

The contents of my rcpthosts file is as follows

somedomain.com

The contents of my smtproutes file is as follows

somedomain.com:hostname.somedomain.com

My defaultdomain file is set to somedomain.com

My locals file si set to:

hostname.psomedomain.com
localhosts

My me file is set to

hostname.psomedomain.com


 The other files in my control directory are plusdomains and  defaultdelivery.

So what is wrong with my delivery mechanism?

--Cordell Bourne




Re: anger management courses

2001-08-03 Thread John Hogan

At 03:41 PM 8/1/2001, Robin S. Socha wrote:
On Wed, Aug 01, 2001 at 04:10:13PM -0400, Jeff Palmer wrote:
 
  Can anyone say 'anger management course'?

Anger mangama... Angre mgnma

anggg munug... annngr mnng... no!

Robin - I too have anger issues... two joke my wife would like me to share 
(mostly she tells them about me):

1) any time an app on her (our?) windows server crashes, she classifies it 
as an 'rtfm ID-10-T' error ('read the feching manual, idiot')

2) abstract, seemingly random software issues are often described as 'lying 
somewhere between the chair and keyboard'... this one often works when 
describing the desire to 'un-send' email

apologies for the useless flame

`In Germany, they are not referred to as network administrators. They
prefer to be called Sons Of The Third Reich.' (Kate: www.katewerk.com)

in the usa, they are treated like goalkeepers in football (soccer, duh?)... 
when the team wins, you shower alone - when the team loses, you shower 
alone *grin*

- hogan




VERY URGENT AND CONFIDENTIAL

2001-08-03 Thread abdulahi kano



3/5   RIDER HAGGARD
CLOSE, JO, BORG
SOUTH AFRICA.

Email…[EMAIL PROTECTED]

 URGENT AND CONFIDENTIAL)


   (RE:  TRANSFER OF ($ 152,000.000.00 USD  
]ONE HUNDRED AND FIFTY TWO MILLION DOLLARS   

Dear sir,

We want to transfer to overseas ($ 152,000.000.00 USD)
One hundred and Fifty two million United States
Dollars) from a Prime Bank in Africa, I want to ask
you to  quietly  look for a reliable and honest person
who will be capable  and fit to provide either an
existing bank account  or  to set up a new  Bank a/c 
immediately to receive this money, even an empty a/c
can serve to receive this money, as long as you will
remain honest to me till the end for this important
business trusting in  you and believing  in God that
you  will never let me down either now or in future.

I am …Abdulahi kano, the Auditor General of prime
banks in Africa, during the course of our auditing  I
discovered a floating fund  in an account opened in
the bank in 1990 and since 1993 nobody has operated 
on this account again, after going through some old 
files in the records I discovered that the owner of
the account  died without a [heir]  hence  the money
is floating and  if I do not remit this money out
urgently it will be forfeited for nothing. the owner
of this account is  Mr.  Allan P.Seaman, a foreigner,
and an industrialist, and  he died,  since 1993. and 
no other person knows about this account or any thing
concerning it, the account has no other beneficiary
and my investigation proved to me as well that Allan
P. Seaman   until his death was the manager  Diamond
Safari  [pty]. SA.  

  
We will start the  first transfer with fifty two
million [$52,000.000] upon successful transaction
without any disappoint from your side, we shall
re-apply for the payment of the remaining  rest amount
to your account, 

The amount involved is (USD 152M) One hundred and
Fifty two million United States Dollars, only I want
to first transfer $52,000.000 [fifty two million
United States Dollar from this money into a
safe foreigners account abroad before the rest, but I
don't know any foreigner, I am only contacting you as
a foreigner because this money can not be approved to
a local person here, without valid international
foreign passport, but can only be approved to any
foreigner with valid international passport or drivers
license and foreign a/c  because the money is in us
dollars and
the former owner of the  a/c  Mr. Allan P. Seaman is 
a foreigner too, [and the money can only be approved
into a foreign a/c 

However, we will sign a binding agreement,  to bind us
together   I got your contact address  from the Girl
who operates computer,  I am revealing this to you
with believe in God that you will never let me down in
this business,  you are the first and the only person
that I am contacting for this business, so please
reply urgently so that I will inform you the next step
to takeurgently. Send also your private telephone and
fax number including the full details of the account
to be used for the deposit.

I want us to meet face to face to build confidence and
to sign a binding agreement that will  bind us
together  before transferring the money to any account
of  your choice where the fund will be safe. Before we
fly to your country for withdrawal, sharing and 
investments.

I need your full co-operation to make
this work fine. because the management is ready to
approve this payment to any foreigner who has correct
information of this account, which I will give to you,
upon your positive response and once I am convinced
that you  are  capable  and will meet up with
instruction of  a key bank official who is deeply
involved with me in this business.
I need your strong assurance that you will never, 
never let me down.

With my influence and the position of the bank
official we can transfer this
money to any foreigner's reliable account which you
can provide with assurance that this money will be
intact pending our physical arrival in your country
for sharing. The bank official will  destroy all
documents of transaction immediately we receive this
money leaving no trace to any place and to build
confidence  you can  come immediately  to discuss with
me face to face after which I will make this emittance
in your presence and three of us will fly to your
country at least two days ahead of the money going
into the account.

I will apply for annual leave to get visa immediately
I hear from you that you are ready to act and receive
this fund in your account. I will use my position and
influence to obtain all legal approvals for  onward
transfer of this money to your account with apropriate
clearance from  the relevant  ministries and foreign
exchange departments.

At the conclusion of this business, you will be given
35% of the total amount, 60% will be for me, while 5%
will be for expenses both parties might have incurred
during the process of transferring.

I look forward to your earliest reply 

Re: Anti-Virus options

2001-08-03 Thread Greg White

On Fri, Aug 03, 2001 at 03:21:26PM -0400, Ed Weinberg wrote:
 I have seen the anti-virus options listed on the qmail.org site and looked at
 the documentation on vendors sites.  I was wondering what the advantage was of
 installing the anti-virus add-ons to Qmail (like Qmail-Scanner) when you can just 
run most of
 the mail scrubbers as a daemon which  listens to port 25 and sends good eamail
 to some non-standard p;ort where qmail-smtpd (via tcpserver) can be listening?
 
   --  Ed

First thought that occurs to me: why would I trust the AV author to
entirely DTRT WRT SMTP? I use qmail because Dan's code is small, lean,
and appears from all accounts to be immune to remote exploit. I have no
such faith in any AV authors yet -- after all, they're incapable of
filtering simple double-extension Outlook viruses by their nature, why
trust them with network code? *grin*

-- 
Greg White



Re: Dial-up Fails to Connect to SMTP Server

2001-08-03 Thread MarkD

Is your ISP blocking port 25 outbound traffic?

What happens if you try to telnet directly to those smtp servers, eg:

telnet serveraddress 25

Numerous ISPs only let you send outbound SMTP via there SMTP server as
a measure against spammers - if that's the case with you then you'll
need to look into smtproutes.

Regards.

On Thu, Aug 02, 2001 at 04:14:26PM -0400, Jeff Hill allegedly wrote:
 I know this is not strictly a qmail problem, but . . . 
 
 Dial-up connections (using Outlook Express 5.00) can no longer connect
 to the SMTP server to send out e-mail (repeatedly times out), but
 nothing has been changed on the server or dial-up machines.
 
 There is no problem with dial-ups connecting to cucipop to pick-up mail,
 and all other Internet connections work fine on dial-up machines. Mail
 sent directly from the server works without any visible problems.
 
 The only thing I see in the qmail-send logs is quite a few
 I_wasn't_able_to_establish_an_SMTP_connection, but the mail seems to
 go through eventually.
 
 I did recently upgraded to use rblsmtpd. I'm using supervise for
 qmail-send, running ucspi-tcp 0.84; qmail 1.03, Debian potato [kernel
 2.2.19]. There isn't a heavy load of traffic: Qstat currently says there
 are 28 messages in queue, 0 not yet preprocessed.
 
 Thanks for any leads.
 
 Best Regards,
 
 Jeff Hill



Re: Problem with routing (Again)

2001-08-03 Thread Greg White

On Fri, Aug 03, 2001 at 06:15:07PM -0600, Cordell Bourne wrote:
 Here is my situation.  I have a test lab with many mail servers from various
 venders.  Each of the mail servers has the same set of test users loaded on each
 machine.  With this problem I am not able to setup a MX record so I use the
 artificial routing scheme of qmail to get some things accomplished that I need
 done.
 
 Here is what I am trying to achieve now.
 
 I have qmail on a server with the U of W IMAP server.  With our client which we
 are testing I am able to send to [EMAIL PROTECTED] and the message is
 accepted by qmail with no problem.
 
 However, if I send to
 
 [EMAIL PROTECTED] the message never arrives.  I get a bounced message from
 qmail stating the following
 
 Hi. This is the qmail-send program at hostname.psomedomain.com.
 I'm afraid I wasn't able to deliver your message to the following
 addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.
 
 [EMAIL PROTECTED]:
 Sorry, I couldn't find any host named pain.teamp.com. (#5.1.2)

I don't know where pain.teamp.com comes in, but your nameservers are
broken -- that makes it difficult to recieve mail.

gregw@frodo:~$ dnsq mx somedomain.com a.gtld-servers.net
15 somedomain.com:
108 bytes, 1+0+2+2 records, response, noerror
query: 15 somedomain.com
authority: somedomain.com 172800 NS ns1.betstop.com
authority: somedomain.com 172800 NS ns2.betstop.com
additional: ns1.betstop.com 172800 A 12.8.12.75
additional: ns2.betstop.com 172800 A 12.8.12.76

So, I asked ns1.betstop.com about somedomain.com, and it said:

 gregw@frodo:~$ dnsq soa somedomain.com ns1.betstop.com
 6 somedomain.com:
 timed out

ns2.betstop.com revealed the same result. Fix your nameservers, then
maybe things will work. If not, fix them and post the results.

The results you posted look like a _real_ misconfiguration, based on
whatever your _real_ DNS is. Perhaps posting an unmunged bounce message,
and unmunged output of 'qmail-showctl' would be helpful for the list in
determining what the problem really is.

Note that, in posting what appears to be mangled data, much of the list
has ignored your post. :)

-- 
Greg White



RE: tcpserver problems? or is it qmail? or BOTH! Help?

2001-08-03 Thread Scott Zielsdorf

 -Original Message-
 From: Charles Cazabon [mailto:[EMAIL PROTECTED]]
 Subject: Re: tcpserver problems? or is it qmail? or BOTH! Help?

 Possibly the reason you were blasted is that this is incorrect.

LOL...You think?

 You_cannot_ make inetd or xinetd use tcpserver.  Your xinetd script
doesn't
 use tcpserver; it uses tcp-env.  tcp-env was originally designed to
 allow you to do tcpserver-like operations from inetd, but is now
 deprecated.  There are precisely zero advantages to using inetd/xinetd
 in this manner, and several disadvantages (when compared to a simple
 tcpserver installation).

My thanks to Lukas Beeler who asked me to run 'ps auxf' and behold!
I found errors coming from readproctile telling me it couldn't find
/usr/local/bin/setguidid. Here's the specific error message:

root   686  0.8  0.0  1252   16 ?SAug02  14:19  \_
readproctitle
service errors: ...xec: /usr/local/bin/setguidgid: cannot execute: No such
file
 or directory?tcpserver: usage: tcpserver [ -1UXpPhHrRoOdDqQv ] [ -c limit ]
[ -
x rules.cdb ] [ -B banner ] [ -g gid ] [ -u uid ] [ -b backlog ] [ -l
localname
] [ -t timeout ] host port program?./run: /usr/local/bin/setguidgid: No such
fil
e or directory?./run: exec: /usr/local/bin/setguidgid: cannot execute: No
such f
ile or directory?

And, sure 'nuf, their ain't a setguidgid anywhere on the box.

So did I 'fat finger' setguidid somewhere in a script or did my daemontools
install fail and I just didn't realize it? Or is there another problem?

Lukas also had me run 'netstat -lp | grep smtp' and, like there was a doubt
smile,
the owner came back as xinetd.

So aside from me telling the Canadian guy how to use xinetd to *maybe* get
around his
problem (I hadn't considered a fire wall issue)instead of tcpserver, can you
give me some
guidance into where to look to solve this?

Thanks

Scott




Re: virtualdomains vs. VERP and Delivered-To

2001-08-03 Thread Alex Pennace

On Thu, Aug 02, 2001 at 09:39:07PM +, Charles M. Hannum wrote:
 In virtualdomains, I have:
 
 spamalicious.com:mycroft-spamalicious
 .spamalicious.com:mycroft-spamalicious
 
 When mail is sent to `[EMAIL PROTECTED]' -- e.g. from majordomo
 (please spare me the majordomo vs. ezmlm flames) -- I see:
 
 From [EMAIL PROTECTED] Thu Aug 
02 20:13:30 2001
 ...
 Delivered-To: [EMAIL PROTECTED]
 ...
 
 This seems very wrong.  The Delivered-To: address here isn't even
 correct; it should be something the actually exists -- either
 `[EMAIL PROTECTED]' or `[EMAIL PROTECTED]'.

Delivered-To: is considered opaque, which is satisfactory for its role
as a loop inhibitor -- as long as the Delivered-To: line for a given
address is the same, a loop will be detected.

 For VERP to be useful, the VERP address needs to be the latter;
 otherwise my mailing list manager won't be able to handle the bounces
 correctly, since it will have the wrong address.

This is a (the?) bug with qmail, though I cannot find the patch at the
moment.



RE: Fix for qmail-remote process hanging on Linux (and possibly other s)

2001-08-03 Thread Richard Underwood

 I just looked at the server I had problems with -- 15 hung 
 qmail-remotes :(
 
Not good! I peaked at 26 before I noticed.

 How did you test this patch?
 Are you saying that you were able to reliably reproduce the problem?
 I could never do this... If so, how?
 
I tested the patch by running it on the live server for three days.
I was experiencing on average 1-2 processes getting stuck a day and haven't
had one stuck since. The problems generally started during large mailing
which happen daily on this server.

I couldn't repeat the problem, but it happened reliably enough for
me to believe that it has now been stopped.

The patch itself should not affect the running of the program in any
way except dropping dead connections.

 There is a lot of mistery in this:  Most (but not all) reports 
 had connections hung to outblaze.com
 Most (but not all) servers ran Linux.
 
 It's weird...
 
It is. I didn't spot a pattern in the remote hosts, but then I
didn't try to. I suspect it's something to do with stateful firewalls
dropping a session after a period of inactivity, it doesn't explain why the
code is affected by it all, though.

My other suspicion is that there's a chance that my one server will
try a couple of dozen connections to the same remote host at the same time.
(This is an issue in itself!) It could be that a firewall in the path is
mistaking the connection as a DOS attempt and responding weirdly, kicking
off a bug with select.

I'll let you know if the problems re-appear.

Richard



Anti-Virus options

2001-08-03 Thread Ed Weinberg

I have seen the anti-virus options listed on the qmail.org site and looked at
the documentation on vendors sites.  I was wondering what the advantage was of
installing the anti-virus add-ons to Qmail (like Qmail-Scanner) when you can just run 
most of
the mail scrubbers as a daemon which  listens to port 25 and sends good eamail
to some non-standard p;ort where qmail-smtpd (via tcpserver) can be listening?

  --  Ed



RE: Fix for qmail-remote process hanging on Linux (and possibly other s)

2001-08-03 Thread Russell Nelson

Richard Underwood writes:
   My other suspicion is that there's a chance that my one server will
  try a couple of dozen connections to the same remote host at the same time.
  (This is an issue in itself!)

Not really.  It used to be an issue back in 1996 when qmail was first
introduced.  There were still legacy smtp daemons which couldn't
handle the load they offered to accept.  These days, nobody wants to
be trampled by a big mailing list house (and they *all* use qmail), so
everybody has incoming connection limits.

Now if you want to complain about your operating system's TCP stack
failing to share timeout information between TCP connections to the
same host, or cache TCP timeout information, go ahead.  But that's a
TCP stack thing, not a qmail thing.

-- 
-russ nelson [EMAIL PROTECTED]  http://russnelson.com
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 



Re: routing mail with user-specific tokens in addresses

2001-08-03 Thread Russell Nelson

Bela Lubkin writes:
  Assuming qmail has been set up on a bastion host and is being used to
  route incoming mail from the Internet to various internal hosts;
  
  and observing that in doing such routing, it is not honoring the
  user-token@domain address extension delimiter;
  
  then: what mistake has been made in configuring the bastion host?

Hard to say.  There are so many mistakes you could have made.  If you
were a clueless luser, I'd suggest that you failed to create
~alias/.qmail-token (from the example above) or put the wrong thing in
it.  But you're not, and you didn't, therefore you must have done
something spectacularly wrong, rather than mildly and boringly wrong.
Pray, tell us what it was when you figure it out.

  Furthermore: once that's been fixed, is there a way to also get it to
  honor = as a similar address extension delimiter -- without setting up
  thousands of individual wildcard aliases?

man qmail-users
should tell you how to set up multiple instances of each user, each
with his own delimiter.  I tend not to like qmail-users because I
(still!) have more experience with hosts where a user in /etc/passwd
can receive email, damnit.

-- 
-russ nelson [EMAIL PROTECTED]  http://russnelson.com
Crynwr sells support for free software  | PGPok | 
521 Pleasant Valley Rd. | +1 315 268 1925 voice | #exclude windows.h
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | 



rblsmtpd and mail-abuse.org's DNS servers

2001-08-03 Thread Derek Callaway

Hi, I'm having a problem with my qmail smtpd server becoming unresponsive
when rblsmtpd cannot communiate with the RBL nameservers. Has anyone else
had this problem? I'd like to blindy accept e-mail if the RBL nameservers
cannot be contacted. Here's how I'm starting the SMTP server:

/usr/local/bin/tcpserver -x /etc/tcp.smtp.cdb -u 7791 -g 2108 -v 0 smtp fixcrio 
/usr/local/bin/rblsmtpd -t 7 /usr/local/bin/rblsmtpd -t 7 -r dialups.mail-abuse.org 
/usr/local/bin/rblsmtpd -t 7 -r 'relays.mail-abuse.org:Open relay problem - see 
URL:http://www.mail-abuse.org/cgi-bin/nph-rss?%IP%' /var/qmail/bin/qmail-smtpd 21 
| /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t n100 s100 
/var/log/smtp 

-- 
//Derek Callaway [EMAIL PROTECTED] * Programmer: CISC, LLC - S@IRC
 char *sites[]={http://www.freezersearch.com/index.cfm?aff=dhc;,
 http://www.ciscllc.com,http://www.freezemail.com,0}; /*KDR AB 249*/





RE: new install and qmail not logging

2001-08-03 Thread Olivier Dupuis

Hello,

thank you for your answer, I tried it, the daemon is not killed, current
file is reset to empty file ...but not archived. It seems to be lost. What
did I mis-understand ?

Thank you

-Message d'origine-
De : G. v. Driel [mailto:[EMAIL PROTECTED]]
Envoye : vendredi 3 aout 2001 15:47
A : Olivier Dupuis
Objet : Re: new install and qmail not logging


* Olivier Dupuis  [EMAIL PROTECTED] wrote:
 Hello,

 I saw few mails about multi log and I have a question about it :

 I would like multilog to start a new log every night so that I can archive
 the logs day by day. I read in the doc that sending a kill SIGALRM to the
 multilog process would force it to start a new log. It actually does but
it
 also kills the multilog process which is quite annoying because this means
 that I have to kill qmail and restart qmail and multilog.
 Is there a way to ask multilog to start a new current log without
killing
 it ?

 Thank you

Hi Olivier,

Do you have daemontools setup? than is just a matter of running a cron job
that does:

$ svc -h /service/smtpd/log

GroetGuido




Re: routing mail with user-specific tokens in addresses

2001-08-03 Thread Adrian Ho

On Thu, Aug 02, 2001 at 07:42:30PM -0700, Bela Lubkin wrote:
 I've been able to test for certain that none of user=token@domain,
 user+token@domain, user-token@domain, or user.token@domain are
 being processed in the desired manner.

Qmail uses - as the extension delimiter (similar to MMDF's =), so if
user-token@domain doesn't work, and ~user exists on your qmail server,
you're probably missing ~user/.qmail-default.  man dot-qmail and read
the EXTENSION ADDRESSES section for details.

 MY QUESTION: is there any way this could be set up in a global fashion,
 rather than listing every single user in some config file?

Edit conf-break in the qmail sources, make setup check.

 If possible I'd like to set up several different characters for this, so
 that user+token@domain and user-token@domain would also work (I
 frequently encounter web pages which will not accept = as an email
 address character; I'm sure other characters are similarly burdened -- I
 want a whole pallette of choices to try.)

Why not just stick to a single delimiter (like qmail's -, which seems to 
be universally accepted)?

-- 
Adrian HoTinker, Drifter, Fixer, Bum   [EMAIL PROTECTED]
ListArchive: http://marc.theaimsgroup.com/?l=qmail
Useful URLs: http://cr.yp.to/qmail.html http://www.qmail.org
 http://www.lifewithqmail.org/ http://qmail.faqts.com/



Re: allow/deny pop3

2001-08-03 Thread Alexey Korchagin

Hello GARGIULO,

GEI Is there any way to pass a -x paremeter file to tcpserver for allow/deny
GEI pop3 connections. I was using qpopper from inetd and used hosts.* files
GEI to do that work. Now, I'm using qmail-pop3d from daemontools and I'm 
GEI looking for some /etc/tcp.pop3 file to restrict connections based on
GEI IP addresses.

You can do it, if replace inetd with xinetd-server.

-- 
Best regards,
Alexey Korchagin   mailto:[EMAIL PROTECTED]




new install and qmail not logging

2001-08-03 Thread Tauren Mills

I've just installed qmail for the first time using the Life with qmail
instructions.  I'm to the point where it says to Test the Installation by
following the instructions in TEST.deliver and TEST.receive.

Everything seems to have installed properly and I don't think that I've made
any mistakes, but I don't know for sure.  If I do a ps auxw | grep qmail I
have all of the proper processes running (the ones mention in #2 of
TEST.deliver).

Since life with qmail uses a configuration that uses the multilogger
instead of syslog, no new entries are being added to the syslog.  However,
I'm also not finding any other place that it is logging.  The only log I can
find is:
/var/log/qmail/smtpd/current

It contains:
@40003b69edb8334ced4c tcpserver: status: 0/20
@40003b69ee1b041ccd94 tcpserver: status: 0/20
@40003b69f0513a00d6bc tcpserver: status: 0/20
@40003b69f46012262804 tcpserver: status: 0/20
@40003b69f48c0771346c tcpserver: status: 0/20

Where do the lines that TEST.deliver say should get logged actually get
logged?  For instance, it indicates that the following should be logged:

qmail: status: local 0/10 remote 0/20

qmail: new msg 53
qmail: info msg 53: bytes 246 from me@domain qp 20345 uid 666
qmail: starting delivery 1: msg 53 to local me@domain
qmail: status: local 1/10 remote 0/20
qmail: delivery 1: success: did_1+0+0/
qmail: status: local 0/10 remote 0/20
qmail: end msg 53

If they are supposed to go into /var/log/qmail/smtpd/current, then I'd
appreciate any pointers to getting this problem fixed.

Thanks!
Tauren