qmail Digest 17 Nov 1999 11:00:01 -0000 Issue 822

Topics (messages 33124 through 33221):

Maildir
        33124 by: Carlo Gibertini
        33126 by: Marthe Nesøen Gangfløt
        33214 by: dd

Benchmarks
        33125 by: Marthe Nesøen Gangfløt
        33133 by: Peter Green
        33136 by: Eric Dahnke
        33139 by: farber.admin.f-tech.net
        33144 by: Peter Green
        33149 by: farber.admin.f-tech.net
        33151 by: Peter Green
        33154 by: Bruce Guenter
        33184 by: Sam
        33185 by: farber.admin.f-tech.net
        33186 by: Michael Boyiazis
        33189 by: Sam
        33190 by: Stefan Paletta
        33195 by: Sam
        33197 by: Bill Parker
        33200 by: Markus Stumpf
        33203 by: Bruce Guenter
        33207 by: Sam

Re: RCPT aggregation
        33127 by: Sam
        33192 by: Joe Kelsey

qmail/maildir/procmail ?
        33128 by: John P . Looney
        33131 by: Dave Sill
        33147 by: John P . Looney
        33159 by: Giles Lean

Re: Duplicate messages.
        33129 by: Dave Sill
        33132 by: Patrick, Robert
        33135 by: Dave Sill
        33153 by: Russell Nelson

Re: Man pages
        33130 by: Dave Sill
        33143 by: Russell Nelson
        33177 by: Steve Kapinos
        33178 by: Dave Sill
        33182 by: Peter Green
        33208 by: Rogerio Brito
        33209 by: Rogerio Brito

logging tcpserver activities
        33134 by: Edward Castillo-Jakosalem
        33137 by: Dave Sill

Can I refuse specific domains?
        33138 by: Jean Caron
        33152 by: Russell Nelson
        33158 by: Jean Caron
        33160 by: Dave Sill
        33163 by: Russell Nelson
        33173 by: Jean Caron
        33176 by: Russell Nelson

Re: User has no Maildir?
        33140 by: Dave Sill

Re: dot-qmail files and running programs
        33141 by: Dave Sill
        33167 by: christian dubettier

Re: getting qmail to retry
        33142 by: Russell Nelson

Re: qmail remote delivery logic
        33145 by: Fred Lindberg
        33146 by: Fred Lindberg

Re: open relay report
        33148 by: Bruno Wolff III

Re: Upgraded RedHat from 5.2 to 6.1, qmail 1/2 broken.
        33150 by: Mate Wierdl
        33211 by: Troy Frericks

Re: methods for ETRN
        33155 by: Jon Rust

pop over qmail-pop3d times out after about 3 min (1 meg)
        33156 by: Markus Wuebben
        33161 by: Adam Michaud

SMTP host
        33157 by: rezidew.rezidew.net

qmail-users and directory depth
        33162 by: Matt Schnierle -- Stargate
        33181 by: Patrick, Robert

tcpserver dont want to run =(
        33164 by: Michael Boman
        33175 by: Vince Vielhaber
        33199 by: Michael Boman
        33201 by: Vince Vielhaber
        33202 by: Michael Boman
        33204 by: Vince Vielhaber
        33205 by: Michael Boman
        33206 by: Vince Vielhaber
        33213 by: Michael Boman

Newlines Patch?
        33165 by: Bill Parker

Strange bounced mail
        33166 by: Joseph R. Junkin

qmail is dying
        33168 by: Gustavo Rios
        33170 by: Dave Sill
        33171 by: Dave Sill
        33172 by: Gustavo Rios
        33174 by: Gustavo Rios

Re: adding site-wide signatures to all outgoing emails ?
        33169 by: Magnus Bodin
        33179 by: Alex Shipp

Maildir to Mbox Migration
        33180 by: Kai MacTane
        33198 by: Markus Stumpf

IMAP + Subfolders
        33183 by: eric

Old Mail Removal
        33187 by: Mike Morrison

Maildirsmtp fails to run :-(.
        33188 by: Rok Papez

qmail crashing solaris 2.4
        33191 by: Daniel Mattos
        33196 by: Sam

Qmail architecture questions
        33193 by: Bill Halchin
        33210 by: harold.nb.com.sg ()

Re: Large message killing system
        33194 by: Florian G. Pflug

qmail-pop3d authentication errors
        33212 by: Peter Cavender

virtual domains...
        33215 by: Edward Castillo-Jakosalem
        33217 by: Alexander Jernejcic

ETRN command support
        33216 by: Antonio Navarro Navarro

dot-forward permissions...
        33218 by: Andy Bradford

Re: qmail, Linux, and NetApp/NFS
        33219 by: Curtis Generous

Re: 550  cannot route to sender
        33220 by: qmail.col7.metta.lk

Sending unrecognized mails to another host
        33221 by: Thomas Breder

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To bug my human owner, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------


Hello,

I instaled qmail with Maildir, but cannot figure how to do for each time
I add a user the linux automaticly create the Maildir.

--

Abraços,

Carlo Gibertini






At 09:59 16.11.99 -0200, Carlo Gibertini wrote:
>Hello,
>
>I instaled qmail with Maildir, but cannot figure how to do for each time
>I add a user the linux automaticly create the Maildir.

Actually it depends on what system you use, in RedHat and Hp-UX there is a 
directory called /etc/skel/ which is exactely what's beeing copied into the 
new home-dir.. so if you do a maildirmake in that directory and create a 
.qmail file which contains ./Maildir/ then things should be ok and you 
don't have to think of it any more. If you run something else, and 
/etc/skel isn't existing, then I guess you'll have to check and fint it, 
and then do the above. Hope this helps a bit at least.


--
-Marthe
Ano-Tech Computers, www.atc.no

"You humans are a disease, a cancer to this planet..
      You are a plague.. and we.. are the cure."





> Actually it depends on what system you use, in RedHat and Hp-UX there is a 
> directory called /etc/skel/ which is exactely what's beeing copied into the 
> new home-dir.. so if you do a maildirmake in that directory and create a 
> .qmail file which contains ./Maildir/ then things should be ok and you 
> don't have to think of it any more. If you run something else, and 
> /etc/skel isn't existing, then I guess you'll have to check and fint it, 

/etc/skel exists in Slackware too. if it's absent in Your system, just
modify Your adduser script (if You don't have that one also, create one
<;} ) so that it'll create the required directories and files whenever You
create a new user.

btw sorry about the man pages question, i missed it in LWQ...


love, peace etc,
dd





Hi people,

I need benchmarks and such to show my employer that Linux can rock mail 
better than NT Exchange (dohh). We use RedHat Linux and qmail for this, 
because that's where we have knowledge. This is somehing we might sell to 
customers of ours, and it's about 2000-5000 pop-users.. Can qmail manage 
that much on ONE single server? Or what kind of hardware would be required 
for such ammounts of users? I'm not used to these sizes at all, so I have 
to ask. If any of you have some pages with benchmarks, I'd be happy. I need 
"proof" to give away, not just something someone believes, or might have 
heard. Thanks :-)


--
-Marthe
Ano-Tech Computers, www.atc.no

"You humans are a disease, a cancer to this planet..
      You are a plague.. and we.. are the cure."




On Tue, Nov 16, 1999 at 12:56:12PM +0100, Marthe Nesøen Gangfløt wrote:
> Hi people,
> 
> I need benchmarks and such to show my employer that Linux can rock mail 
> better than NT Exchange (dohh). We use RedHat Linux and qmail for this, 
> because that's where we have knowledge. This is somehing we might sell to 
> customers of ours, and it's about 2000-5000 pop-users.. Can qmail manage 
> that much on ONE single server?

I can't speak for Exchange; nor can I speak for pop-users specifically.
However, I have no qualms about qmail scaling that high. On our network, we
have two qmail machines: a main relay server and an ezmlm ml server. Neither
machine delivers anything local, so all deliveries are "remote" (even if on
the same network).

Here is the output from `zcat qmail-19991115.gz|localtai|matchup|zoverall`:

[ relay server ]
Completed messages: 50939
Recipients for completed messages: 191315
Total delivery attempts for completed messages: 200494
Average delivery attempts per completed message: 3.93596
Bytes in completed messages: 339800621
Bytes weighted by success: 917491749
Average message qtime (s): 180.223

Total delivery attempts: 224784
  success: 197167
  failure: 7485
  deferral: 20132
Total ddelay (s): 17580934.661599
Average ddelay per success (s): 89.167734
Total xdelay (s): 1606541.947916
Average xdelay per delivery attempt (s): 7.147048
Time span (days): 0.993594
Average concurrency: 18.7141

[ ezmlm server ]
Completed messages: 4786
Recipients for completed messages: 5319
Total delivery attempts for completed messages: 5415
Average delivery attempts per completed message: 1.13142
Bytes in completed messages: 26064596
Bytes weighted by success: 27721323
Average message qtime (s): 112.261

Total delivery attempts: 74849
  success: 62120
  failure: 1960
  deferral: 10769
Total ddelay (s): 19233264.798056
Average ddelay per success (s): 309.614694
Total xdelay (s): 661400.438022
Average xdelay per delivery attempt (s): 8.836463
Time span (days): 0.983027
Average concurrency: 7.78727

The hardware/software for each:

[ relay ]
AMD K6-2 333
384MB RAM
UW SCSI disk on Buslogic controller
True tulip 100bTX NIC on 3com 10/100 switch, full-dup
RH6 w/ 2.2.13 kernel
qmail-1.03 + jbuce.diff + newlines.patch

[ ezmlm ]
Dual P90 EISA
128MB RAM
FW SCSI disk on Adaptec 2940
3com 3c509 10bT on 3com 10/100 switch
RH6 w/ 2.2.10 SMP kernel
qmail-1.03 + jbuce.diff + newlines.patch
ezmlm+idx-0.322

The relay machine is also our primary name server; the ezmlm machine (made
entirely out of "junk" parts) also serves a little news with INN. I'd say a
couple of thousand POP accounts are not totally unheard of... :)

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]





Hi,

I manage a qmail server which serves about 5000 pop users. We do it on a
PII, with about 16G of disk space. A PII, is plenty of machine, but
would have added more disk space if I had to do it over again. That
server does about 20,000 msgs per day, and load average rarely breaks 1.

I think Exchange is probably as fast as qmail (if you throw a few more
resources at it), but it needs constant attention. Qmail needs no
attention. That's the thing.


- Eric



Peter Green escribió:
> 
> On Tue, Nov 16, 1999 at 12:56:12PM +0100, Marthe Nesøen Gangfløt wrote:
> > Hi people,
> >
> > I need benchmarks and such to show my employer that Linux can rock mail
> > better than NT Exchange (dohh). We use RedHat Linux and qmail for this,
> > because that's where we have knowledge. This is somehing we might sell to
> > customers of ours, and it's about 2000-5000 pop-users.. Can qmail manage
> > that much on ONE single server?
> 
> I can't speak for Exchange; nor can I speak for pop-users specifically.
> However, I have no qualms about qmail scaling that high. On our network, we
> have two qmail machines: a main relay server and an ezmlm ml server. Neither
> machine delivers anything local, so all deliveries are "remote" (even if on
> the same network).
> 
> Here is the output from `zcat qmail-19991115.gz|localtai|matchup|zoverall`:
> 
> [ relay server ]
> Completed messages: 50939
> Recipients for completed messages: 191315
> Total delivery attempts for completed messages: 200494
> Average delivery attempts per completed message: 3.93596
> Bytes in completed messages: 339800621
> Bytes weighted by success: 917491749
> Average message qtime (s): 180.223
> 
> Total delivery attempts: 224784
>   success: 197167
>   failure: 7485
>   deferral: 20132
> Total ddelay (s): 17580934.661599
> Average ddelay per success (s): 89.167734
> Total xdelay (s): 1606541.947916
> Average xdelay per delivery attempt (s): 7.147048
> Time span (days): 0.993594
> Average concurrency: 18.7141
> 
> [ ezmlm server ]
> Completed messages: 4786
> Recipients for completed messages: 5319
> Total delivery attempts for completed messages: 5415
> Average delivery attempts per completed message: 1.13142
> Bytes in completed messages: 26064596
> Bytes weighted by success: 27721323
> Average message qtime (s): 112.261
> 
> Total delivery attempts: 74849
>   success: 62120
>   failure: 1960
>   deferral: 10769
> Total ddelay (s): 19233264.798056
> Average ddelay per success (s): 309.614694
> Total xdelay (s): 661400.438022
> Average xdelay per delivery attempt (s): 8.836463
> Time span (days): 0.983027
> Average concurrency: 7.78727
> 
> The hardware/software for each:
> 
> [ relay ]
> AMD K6-2 333
> 384MB RAM
> UW SCSI disk on Buslogic controller
> True tulip 100bTX NIC on 3com 10/100 switch, full-dup
> RH6 w/ 2.2.13 kernel
> qmail-1.03 + jbuce.diff + newlines.patch
> 
> [ ezmlm ]
> Dual P90 EISA
> 128MB RAM
> FW SCSI disk on Adaptec 2940
> 3com 3c509 10bT on 3com 10/100 switch
> RH6 w/ 2.2.10 SMP kernel
> qmail-1.03 + jbuce.diff + newlines.patch
> ezmlm+idx-0.322
> 
> The relay machine is also our primary name server; the ezmlm machine (made
> entirely out of "junk" parts) also serves a little news with INN. I'd say a
> couple of thousand POP accounts are not totally unheard of... :)
> 
> /pg
> --
> Peter Green
> Gospel Communications Network, SysAdmin
> [EMAIL PROTECTED]




Unless you get a bare linefeed.  At which point you need to find the
offending smtp connection and kill it.

I average about one "broken?" MTA or two a week.  Causes logfiles to swell
and general performance problems.

Paul Farber
Farber Technology
[EMAIL PROTECTED]
Ph  570-628-5303
Fax 570-628-5545

On Tue, 16 Nov 1999, Eric Dahnke wrote:

> 
> Hi,
> 
> I manage a qmail server which serves about 5000 pop users. We do it on a
> PII, with about 16G of disk space. A PII, is plenty of machine, but
> would have added more disk space if I had to do it over again. That
> server does about 20,000 msgs per day, and load average rarely breaks 1.
> 
> I think Exchange is probably as fast as qmail (if you throw a few more
> resources at it), but it needs constant attention. Qmail needs no
> attention. That's the thing.
> 
> 
> - Eric
> 
> 
> 
> Peter Green escribió:
> > 
> > On Tue, Nov 16, 1999 at 12:56:12PM +0100, Marthe Nesøen Gangfløt wrote:
> > > Hi people,
> > >
> > > I need benchmarks and such to show my employer that Linux can rock mail
> > > better than NT Exchange (dohh). We use RedHat Linux and qmail for this,
> > > because that's where we have knowledge. This is somehing we might sell to
> > > customers of ours, and it's about 2000-5000 pop-users.. Can qmail manage
> > > that much on ONE single server?
> > 
> > I can't speak for Exchange; nor can I speak for pop-users specifically.
> > However, I have no qualms about qmail scaling that high. On our network, we
> > have two qmail machines: a main relay server and an ezmlm ml server. Neither
> > machine delivers anything local, so all deliveries are "remote" (even if on
> > the same network).
> > 
> > Here is the output from `zcat qmail-19991115.gz|localtai|matchup|zoverall`:
> > 
> > [ relay server ]
> > Completed messages: 50939
> > Recipients for completed messages: 191315
> > Total delivery attempts for completed messages: 200494
> > Average delivery attempts per completed message: 3.93596
> > Bytes in completed messages: 339800621
> > Bytes weighted by success: 917491749
> > Average message qtime (s): 180.223
> > 
> > Total delivery attempts: 224784
> >   success: 197167
> >   failure: 7485
> >   deferral: 20132
> > Total ddelay (s): 17580934.661599
> > Average ddelay per success (s): 89.167734
> > Total xdelay (s): 1606541.947916
> > Average xdelay per delivery attempt (s): 7.147048
> > Time span (days): 0.993594
> > Average concurrency: 18.7141
> > 
> > [ ezmlm server ]
> > Completed messages: 4786
> > Recipients for completed messages: 5319
> > Total delivery attempts for completed messages: 5415
> > Average delivery attempts per completed message: 1.13142
> > Bytes in completed messages: 26064596
> > Bytes weighted by success: 27721323
> > Average message qtime (s): 112.261
> > 
> > Total delivery attempts: 74849
> >   success: 62120
> >   failure: 1960
> >   deferral: 10769
> > Total ddelay (s): 19233264.798056
> > Average ddelay per success (s): 309.614694
> > Total xdelay (s): 661400.438022
> > Average xdelay per delivery attempt (s): 8.836463
> > Time span (days): 0.983027
> > Average concurrency: 7.78727
> > 
> > The hardware/software for each:
> > 
> > [ relay ]
> > AMD K6-2 333
> > 384MB RAM
> > UW SCSI disk on Buslogic controller
> > True tulip 100bTX NIC on 3com 10/100 switch, full-dup
> > RH6 w/ 2.2.13 kernel
> > qmail-1.03 + jbuce.diff + newlines.patch
> > 
> > [ ezmlm ]
> > Dual P90 EISA
> > 128MB RAM
> > FW SCSI disk on Adaptec 2940
> > 3com 3c509 10bT on 3com 10/100 switch
> > RH6 w/ 2.2.10 SMP kernel
> > qmail-1.03 + jbuce.diff + newlines.patch
> > ezmlm+idx-0.322
> > 
> > The relay machine is also our primary name server; the ezmlm machine (made
> > entirely out of "junk" parts) also serves a little news with INN. I'd say a
> > couple of thousand POP accounts are not totally unheard of... :)
> > 
> > /pg
> > --
> > Peter Green
> > Gospel Communications Network, SysAdmin
> > [EMAIL PROTECTED]
> 





On Tue, Nov 16, 1999 at 09:50:25AM -0500, [EMAIL PROTECTED] wrote:
> Unless you get a bare linefeed.  At which point you need to find the
> offending smtp connection and kill it.
> 
> I average about one "broken?" MTA or two a week.  Causes logfiles to swell
> and general performance problems.
[snip] 
> > > The hardware/software for each:
> > > 
> > > [ relay ]
> > > AMD K6-2 333
> > > 384MB RAM
> > > UW SCSI disk on Buslogic controller
> > > True tulip 100bTX NIC on 3com 10/100 switch, full-dup
> > > RH6 w/ 2.2.13 kernel
> > > qmail-1.03 + jbuce.diff + newlines.patch
                                ^^^^^^^^^^^^^^

That is precisely the reason for this little patch. No more worrying about
broken MTAs. :)

(P.S. I forgot to mention that the AMD K6-2 333 maxes out with a load avg of
around 2...and that's when concurrencyremote hits max (180). Yet the machine
stays totally responsive.)

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]




Is the newlines patch available at the normal qmail sites?  I gotta get me
one if it fixes the problem!!!

Thanks.

Paul Farber
Farber Technology
[EMAIL PROTECTED]
Ph  570-628-5303
Fax 570-628-5545

On Tue, 16 Nov 1999, Peter Green wrote:

> On Tue, Nov 16, 1999 at 09:50:25AM -0500, [EMAIL PROTECTED] wrote:
> > Unless you get a bare linefeed.  At which point you need to find the
> > offending smtp connection and kill it.
> > 
> > I average about one "broken?" MTA or two a week.  Causes logfiles to swell
> > and general performance problems.
> [snip] 
> > > > The hardware/software for each:
> > > > 
> > > > [ relay ]
> > > > AMD K6-2 333
> > > > 384MB RAM
> > > > UW SCSI disk on Buslogic controller
> > > > True tulip 100bTX NIC on 3com 10/100 switch, full-dup
> > > > RH6 w/ 2.2.13 kernel
> > > > qmail-1.03 + jbuce.diff + newlines.patch
>                                 ^^^^^^^^^^^^^^
> 
> That is precisely the reason for this little patch. No more worrying about
> broken MTAs. :)
> 
> (P.S. I forgot to mention that the AMD K6-2 333 maxes out with a load avg of
> around 2...and that's when concurrencyremote hits max (180). Yet the machine
> stays totally responsive.)
> 
> /pg
> -- 
> Peter Green
> Gospel Communications Network, SysAdmin
> [EMAIL PROTECTED]
> 





On Tue, Nov 16, 1999 at 11:09:08AM -0500, [EMAIL PROTECTED] wrote:
> Is the newlines patch available at the normal qmail sites?  I gotta get me
> one if it fixes the problem!!!

A precursory search didn't find it. I've included it below (it's only 27
lines):

--- cut here ---
--- qmail-smtpd.c.orig  Mon Jun 15 20:53:16 1998
+++ qmail-smtpd.c       Thu Sep 24 13:33:25 1998
@@ -300,13 +300,23 @@
   int flagmaybex; /* 1 if this line might match RECEIVED, if fih */
   int flagmaybey; /* 1 if this line might match \r\n, if fih */
   int flagmaybez; /* 1 if this line might match DELIVERED, if fih */
+  int seencr;
  
   state = 1;
   *hops = 0;
   flaginheader = 1;
-  pos = 0; flagmaybex = flagmaybey = flagmaybez = 1;
+  pos = 0; flagmaybex = flagmaybey = flagmaybez = 1; seencr = 0;
   for (;;) {
     substdio_get(&ssin,&ch,1);
+    if (ch == '\n')
+     {
+      if (seencr == 0)
+       {
+        substdio_seek(ssin,-1);
+        ch = '\r';
+       }
+     }
+    if (ch == '\r') seencr = 1; else seencr = 0;
     if (flaginheader) {
       if (pos < 9) {
         if (ch != "delivered"[pos]) if (ch != "DELIVERED"[pos]) flagmaybez = 0;
--- cut here ---

HTH,

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]




On Tue, Nov 16, 1999 at 11:56:26AM -0500, Peter Green wrote:
> On Tue, Nov 16, 1999 at 11:09:08AM -0500, [EMAIL PROTECTED] wrote:
> > Is the newlines patch available at the normal qmail sites?  I gotta get me
> > one if it fixes the problem!!!
> A precursory search didn't find it. I've included it below (it's only 27
> lines):

You can also use a pipe between addcr and qmail-smtpd to do this without
patching qmail.  This has the disadvantage of not dropping the
connection after a "quit" is sent, so I wrote a tiny C wrapper to run
the two together.  Use it as:
        tcpserver ... qmail-pipe addcr -- qmail-smtpd
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/

#include <signal.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>

int splitargs(argc,argv)
int argc;
char** argv;
{
  int i;
  for(i = 1; i < argc; i++) {
    if(argv[i][0] == '-' &&
       argv[i][1] == '-' &&
       argv[i][2] == 0) {
      argv[i] = 0;
      break;
    }
  }
  if(i == 1 || i >= argc-1)
    return -1;
  return i+1;
}

int writer_pid;
int reader_pid;

int fork_writer(argv,pipefd)
char** argv;
int* pipefd;
{
  switch(writer_pid = fork()) {
    case -1:
      return 1;
    case 0:
      close(pipefd[0]);
      if(dup2(pipefd[1], 1) == -1 || close(pipefd[1]) == -1) exit(1);
      execvp(argv[0], argv);
      exit(1);
  }
  return 0;
}

int fork_reader(argv,pipefd)
char** argv;
int* pipefd;
{
  switch(reader_pid = fork()) {
    case -1:
      return 1;
    case 0:
      close(pipefd[1]);
      if(dup2(pipefd[0], 0) == -1 || close(pipefd[0]) == -1) exit(1);
      execvp(argv[0], argv);
      exit(1);
  }
  return 0;
}

int main(argc,argv)
int argc;
char** argv;
{
  int pid;
  int status;
  int p[2];
  int cmd2 = splitargs(argc, argv);
  if(cmd2 < 0) return 1;
  if(pipe(p) == -1) return 1;
  if(fork_writer(argv+1, p)) return 1;
  if(fork_reader(argv+cmd2, p)) {
    kill(writer_pid, SIGTERM);
    return 1;
  }
  for(;;) {
    pid = wait(&status);
    if(pid == writer_pid) {
      writer_pid = -1;
      kill(reader_pid, SIGTERM);
    } else {
      reader_pid = -1;
      if(writer_pid > 0)
        kill(writer_pid, SIGTERM);
      return WIFEXITED(status) ? WEXITSTATUS(status) : 1;
    }
  }
}




On Tue, 16 Nov 1999 [EMAIL PROTECTED] wrote:

> Unless you get a bare linefeed.  At which point you need to find the
> offending smtp connection and kill it.
> 
> I average about one "broken?" MTA or two a week.  Causes logfiles to swell
> and general performance problems.

I would suggest changing one byte in qmail-smtpd.c, bouncing such mail
immediately, instead of deferring it.

--
Sam





And that one byte would be?

Paul Farber
Farber Technology
[EMAIL PROTECTED]
Ph  570-628-5303
Fax 570-628-5545

On Tue, 16 Nov 1999, Sam wrote:

> On Tue, 16 Nov 1999 [EMAIL PROTECTED] wrote:
> 
> > Unless you get a bare linefeed.  At which point you need to find the
> > offending smtp connection and kill it.
> > 
> > I average about one "broken?" MTA or two a week.  Causes logfiles to swell
> > and general performance problems.
> 
> I would suggest changing one byte in qmail-smtpd.c, bouncing such mail
> immediately, instead of deferring it.
> 
> --
> Sam
> 
> 





void straynewline() { out("451 See
http://pobox.com/~djb/docs/smtplf.html.\r\n"); flush(); _exit(1); }

my guess would be making that 451 a 551.

Michael Boyiazis -----
[EMAIL PROTECTED]

NetZero
Mail/Sys/Network Admin

>
> And that one byte would be?
>
> Paul Farber
> Farber Technology
> [EMAIL PROTECTED]
> Ph  570-628-5303
> Fax 570-628-5545
>
> On Tue, 16 Nov 1999, Sam wrote:
>
> > On Tue, 16 Nov 1999 [EMAIL PROTECTED] wrote:
> >
> > > Unless you get a bare linefeed.  At which point you need
> to find the
> > > offending smtp connection and kill it.
> > >
> > > I average about one "broken?" MTA or two a week.  Causes
> logfiles to swell
> > > and general performance problems.
> >
> > I would suggest changing one byte in qmail-smtpd.c,
> bouncing such mail
> > immediately, instead of deferring it.
> >
> > --
> > Sam
>


__________________________________________
NetZero - Defenders of the Free World
Get your FREE Internet Access and Email at
http://www.netzero.net/download/index.html




On Tue, 16 Nov 1999, Michael Boyiazis wrote:

> void straynewline() { out("451 See
> http://pobox.com/~djb/docs/smtplf.html.\r\n"); flush(); _exit(1); }
> 
> my guess would be making that 451 a 551.

Ding!  You win a cigar.

Technically, it is still possible for huge mails to loop nevertheless, due
to the sender getting a socket reset and (correctly) handling it as a
transient error.  It will not happen for average messages, due to network
buffering, but it'll still happen for large mails.

So, to cover all the bases, stick something like this just before
_exit(1);

{ char buf[512]; while (read(0, buf, 512) > 0); }


--
Sam





[EMAIL PROTECTED] wrote/schrieb/scribsit:
> And that one byte would be?
> On Tue, 16 Nov 1999, Sam wrote:
> > I would suggest changing one byte in qmail-smtpd.c, bouncing such mail
> > immediately, instead of deferring it.

diff attached.

Stefan

-- 
I have a new PGP/GPG DSA key, please update your keyrings.
1024D/7EBE9100 1999-10-25 "Stefan Paletta" <[EMAIL PROTECTED]>
02C5 A03B 8088 D4E0 57D0  D44D C1E2 D360 7EBE 9100
--- qmail-smtpd.c.orig  Mon Jun 15 12:53:16 1998
+++ qmail-smtpd.c       Wed Nov 17 01:06:14 1999
@@ -47,7 +47,7 @@
 void die_nomem() { out("421 out of memory (#4.3.0)\r\n"); flush(); _exit(1); }
 void die_control() { out("421 unable to read controls (#4.3.0)\r\n"); flush(); 
_exit(1); }
 void die_ipme() { out("421 unable to figure out my IP addresses (#4.3.0)\r\n"); 
flush(); _exit(1); }
-void straynewline() { out("451 See http://pobox.com/~djb/docs/smtplf.html.\r\n"); 
flush(); _exit(1); }
+void straynewline() { out("551 See http://pobox.com/~djb/docs/smtplf.html.\r\n"); 
+flush(); _exit(1); }
 
 void err_bmf() { out("553 sorry, your envelope sender is in my badmailfrom list 
(#5.7.1)\r\n"); }
 void err_nogateway() { out("553 sorry, that domain isn't in my list of allowed 
rcpthosts (#5.7.1)\r\n"); }




On Tue, 16 Nov 1999, Sam wrote:

> On Tue, 16 Nov 1999, Michael Boyiazis wrote:
> 
> > void straynewline() { out("451 See
> > http://pobox.com/~djb/docs/smtplf.html.\r\n"); flush(); _exit(1); }
> > 
> > my guess would be making that 451 a 551.
> 
> Ding!  You win a cigar.
> 
> Technically, it is still possible for huge mails to loop nevertheless, due
> to the sender getting a socket reset and (correctly) handling it as a
> transient error.  It will not happen for average messages, due to network
> buffering, but it'll still happen for large mails.
> 
> So, to cover all the bases, stick something like this just before
> _exit(1);
> 
> { char buf[512]; while (read(0, buf, 512) > 0); }


Oops.  I just realized that this will not work very well.

After getting a 551, the sender will send at least one SMTP command, for
which it will await a response.  Eventually it'll timeout, but you don't
want to have qmail-smtpd twisting in the wind, all along.

Hmmm...  I'd say stick in "alarm (60);" just before the while loop.
That'll be good enough for most people.


--
Sam





At 08:56 PM 11/16/99 -0500, you wrote:
>On Tue, 16 Nov 1999, Sam wrote:
>
>> 
>> { char buf[512]; while (read(0, buf, 512) > 0); }
>
>
>Oops.  I just realized that this will not work very well.
>
>After getting a 551, the sender will send at least one SMTP command, for
>which it will await a response.  Eventually it'll timeout, but you don't
>want to have qmail-smtpd twisting in the wind, all along.
>
>Hmmm...  I'd say stick in "alarm (60);" just before the while loop.
>That'll be good enough for most people.
>
I re-compiled, but when I try to copy over the file, I get an error which
says the following:

cp: cannot create regular file `/var/qmail/bin/qmail-smtpd': Text file busy

What does one do now? :)

-Bill






On Tue, Nov 16, 1999 at 06:36:34PM -0800, Bill Parker wrote:
> cp: cannot create regular file `/var/qmail/bin/qmail-smtpd': Text file busy

qmail-smtpd is running, so the system doesn't allow you to overwrite the
file. Just move it to e.g.  qmail-smtpd.todelete  then copy.
After some time the running qmail-smtpd(s) will finish accepting the email
an no "old" copy of the file will be running and the system will let you
delete the file (qmail-smtpd.todelete).

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Yeah, yo mama dresses
Research & Development    | mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | a mouse to delete files
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  |




On Wed, Nov 17, 1999 at 03:42:59AM +0100, Markus Stumpf wrote:
> > cp: cannot create regular file `/var/qmail/bin/qmail-smtpd': Text file busy
> qmail-smtpd is running, so the system doesn't allow you to overwrite the
> file. Just move it to e.g.  qmail-smtpd.todelete  then copy.
> After some time the running qmail-smtpd(s) will finish accepting the email
> an no "old" copy of the file will be running and the system will let you
> delete the file (qmail-smtpd.todelete).

In fact, you can delete the file even while the program is executing,
since the inode won't actually be removed from disk until all references
to it (including executing processes) are dropped.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/




On Tue, 16 Nov 1999, Bill Parker wrote:

> At 08:56 PM 11/16/99 -0500, you wrote:
> >On Tue, 16 Nov 1999, Sam wrote:
> >
> >> 
> >> { char buf[512]; while (read(0, buf, 512) > 0); }
> >
> >
> >Oops.  I just realized that this will not work very well.
> >
> >After getting a 551, the sender will send at least one SMTP command, for
> >which it will await a response.  Eventually it'll timeout, but you don't
> >want to have qmail-smtpd twisting in the wind, all along.
> >
> >Hmmm...  I'd say stick in "alarm (60);" just before the while loop.
> >That'll be good enough for most people.
> >
> I re-compiled, but when I try to copy over the file, I get an error which
> says the following:
> 
> cp: cannot create regular file `/var/qmail/bin/qmail-smtpd': Text file busy
> 
> What does one do now? :)

Don't worry.  Have a cup of coffee, come back, try again.  The system
won't let you copy over a file if it's currently being used.  Try again a
few minutes later, when the system isn't busy.


--
Sam





On 16 Nov 1999, Joe Kelsey wrote:

> Sam writes:
>  > On 16 Nov 1999, Joe Kelsey wrote:
>  > 
>  > > Sam writes:
>  > >  > On Mon, 15 Nov 1999, Mark Evans wrote:
>  > >  > 
>  > >  > > This assumes that the recieving MTA will process multiple RCPT messages
>  > >  > > in exactly the same way as those with a single RCPT. e.g. the MTA might
>  > >  > > impose progressive delays in the transaction for every RCPT given to it
>  > >  > > or attempt to deliver a message with multiple RCPT's at a lower priority.
>  > >  > 
>  > >  > This is silly.  Originally, batching multiple RCPTs for the same domain
>  > >  > WAS the default behavior of all the MTAs on the Internet.
>  > > 
>  > > And just exactly what evidence do you base this unfounded conclusion on?
>  > 
>  > A little program called "sendmail".  Perhaps you've heard of it.
> 
> When sendmail was first written it did *not* do RCPT aggregation.

When sendmail was first written, SMTP did not exist.  As SMTP became
established, sendmail was written to support it, in such a fashion.

--
Sam





Sam writes:
 > On 16 Nov 1999, Joe Kelsey wrote:
 > 
 > > Sam writes:
 > >  > On 16 Nov 1999, Joe Kelsey wrote:
 > >  > 
 > >  > > Sam writes:
 > >  > >  > On Mon, 15 Nov 1999, Mark Evans wrote:
 > >  > >  >
 > >  > >  > > This assumes that the recieving MTA will process multiple
 > >  > >  > > RCPT messages in exactly the same way as those with a
 > >  > >  > > single RCPT. e.g. the MTA might impose progressive delays
 > >  > >  > > in the transaction for every RCPT given to it or attempt
 > >  > >  > > to deliver a message with multiple RCPT's at a lower
 > >  > >  > > priority.
 > >  > >  >
 > >  > >  > This is silly.  Originally, batching multiple RCPTs for the
 > >  > >  > same domain WAS the default behavior of all the MTAs on the
 > >  > >  > Internet.
 > >  > > 
 > >  > > And just exactly what evidence do you base this unfounded
 > >  > > conclusion on?
 > >  > 
 > >  > A little program called "sendmail".  Perhaps you've heard of it.
 > > 
 > > When sendmail was first written it did *not* do RCPT aggregation.
 > 
 > When sendmail was first written, SMTP did not exist.  As SMTP became
 > established, sendmail was written to support it, in such a fashion.

Sorry Sam.  Check your facts again.  Once again, you are wrong.

Based on Eric Allman's statements in "A Quarter Century of UNIX" by
Peter Salus, (referred to to aid me in my recollections of the time),
delivermail originally was written to bridge between uucp-mail,
berknet-mail and ARPANET mail.  When 4.2BSD was being released (i.e.,
4.1a, 4.1b, 4.1c, and certainly after the conversion of the ARPANET to
TCP/IP), Eric wrote the next version of delivermail, renaming to
sendmail and providing SMTP support.  I worked at an installation
supporting each of these interim BSD releases and distinctly remember
that the first version of sendmail did *not* do RCPT aggregation.
delivermail certainly never did, since it never actually delivered the
mail, only handed it off to other programs for transport.

Remember, 4.0BSD and 4.1BSD came with delivermail and BerkNet.  TCP/IP
wasn't put in until 4.1a.  Somewhere along the way to 4.2, delivermail
was replaced by sendmail.

So, when delivermail was written, Berkeley was struggling with multiple
network protocols (ARPANET, BerkNet, uucp) and also struggling with the
conversion of the ARPANET from NCP to TCP/IP.  It is unknown (without
asking Eric for exact dates) whether or not SMTP existed when
delivermail was written.  SMTP was *very* well established when
delivermail was renamed sendmail, since, by fiat, SMTP was the *only*
mail transport protocol on the ARPANET.  Remember also that the RFC
process proceeds by first defining preliminary protocols which are
implemented at least twice before the protocol can be signed off.  Just
because the date on the RFC says 1982 doesn't mean that the protocol
wasn't in use for multiple years prior to that date!  I personally
recall sending mail via telnet to port 25 well before the advent of
sendmail (obviously, I typed the SMTP protocol commands by hand, reading
from the RFC, again prior to the final release of the document.)

/Joe




 Has anyone setup procmail to work with qmail and maildir ? If so, are
there any resources I should look to for ideas on how to do this ?

 I'll be working from a .procmailrc that I had from my sendmail system.

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen




[EMAIL PROTECTED] wrote:

> Has anyone setup procmail to work with qmail and maildir ? If so, are
>there any resources I should look to for ideas on how to do this ?

Check out:

    http://Web.InfoAve.Net/~dsill/lwq.html#safecat

-Dave




On Tue, Nov 16, 1999 at 09:13:42AM -0500, Dave Sill mentioned:
> > Has anyone setup procmail to work with qmail and maildir ? If so, are
> >there any resources I should look to for ideas on how to do this ?
> Check out:
> 
>     http://Web.InfoAve.Net/~dsill/lwq.html#safecat

 Nice one. I also had a look at:
    http://Web.InfoAve.Net/~dsill/lwq.html#procmail
 Smeg, but this is going to be an evil one to get working. Seems I have to
install the qmail-procmail error number, translation software, safecat, and
then add a line to .qmail. Oh, and procmail has to be recompiled, with a
patch so it doesn't dump temporary files into /var/spool/mail, instead of
~/Maildir. Aaaarg.

Kate

-- 
Microsoft. The best reason in the world to drink beer.
http://www.redbrick.dcu.ie/~valen





On Tue, 16 Nov 1999 15:59:27 +0000  "John P . Looney" wrote:

>  Nice one. I also had a look at:
>     http://Web.InfoAve.Net/~dsill/lwq.html#procmail
>  Smeg, but this is going to be an evil one to get working. Seems I have to
> install the qmail-procmail error number, translation software, safecat, and
> then add a line to .qmail. Oh, and procmail has to be recompiled, with a
> patch so it doesn't dump temporary files into /var/spool/mail, instead of
> ~/Maildir. Aaaarg.

You're wanting to use procmail, and you care about ugly??

Bemused,

Giles




Rohit Khamkar <[EMAIL PROTECTED]> wrote:

>I have sendmail working on my system but qmail wont work. Could you possibly
>tell me why. When I do a ./config , the name of the machine is not a fully
>qualified domain name but the sendmail works on that. Can anyone tell how and
>what to configure for this?

Try:

    ./config-fast the.full.hostname

-Dave




> Andy Bradford writes:
>  > Is it possible to configure qmail to not send multiple copies of the
same
>  > message if your name appears in two sets of aliases in /etc/aliases?
> 
> Yes: http://www.qmail.org/eliminate-dups .


Does this tool work on both Mailbox and ./Maildir user mail storage
mechanisms?




-----Original Message-----
From: Andy Bradford [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 15, 1999 10:30 PM
To: Russell Nelson
Cc: [EMAIL PROTECTED]
Subject: Re: Duplicate messages. 


Thus said Russell Nelson on Mon, 15 Nov 1999 22:12:42 EST:

> Andy Bradford writes:
>  > Is it possible to configure qmail to not send multiple copies of the
same
>  > message if your name appears in two sets of aliases in /etc/aliases?
> 
> Yes: http://www.qmail.org/eliminate-dups .
Excellent... thanks.  I initially thought that it would be part of the 
fastforward package.
Andy
-- 
        +====== Andy ====== TiK: garbaglio ======+
        |    Linux is about freedom of choice    |
        +== http://www.xmission.com/~bradipo/ ===+





"Patrick, Robert" <[EMAIL PROTECTED]> wrote:

>> Yes: http://www.qmail.org/eliminate-dups .
>
>Does this tool work on both Mailbox and ./Maildir user mail storage
>mechanisms?

It works with all forms of delivery. You just specify the name of a
file that will contain a database of message hashes. If the current
message matches one in the database, eliminate-dups returns exit code
99, which causes qmail-local to ignore further delivery instructions
in the .qmail file. E.g.:

  | eliminate-dups inbox
  ./Maildir/

keeps a database in "inbox" for a maildir mailbox called "Maildir". If 
the message is a duplicate, the Maildir delivery won't happen.

The entries following the "| eliminate-dups" line can be anything
qmail-local supports: maildirs, mboxes, programs, or forwards.

-Dave




Patrick, Robert writes:
 > > Yes: http://www.qmail.org/eliminate-dups .
 > 
 > Does this tool work on both Mailbox and ./Maildir user mail storage
 > mechanisms?

Yes.  It's a filter that runs before the ./Mailbox or ./Maildir/ line.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!




dd <[EMAIL PROTECTED]> wrote:

>god, this was the question of the year. thx Steve <:}} this is sth
>which isn't explained anywhere (if it was, i wasn't able to see it)

Well, it's explained in "Life with qmail":

    http://Web.InfoAve.Net/~dsill/lwq.html#man-pages

-Dave




dd writes:
 > > What command is supposed to install the man pages for qmail?
 > > 
 > > After setup, all the .0 files are in my source dir, but they have not been
 > > moved to the man dirs or added to the indexes.
 > 
 > god, this was the question of the year. thx Steve <:}} this is sth
 > which isn't explained anywhere (if it was, i wasn't able to see it) and 
 > also i'd like to know which ones the right directories are. "make
 > setup check" or sth else should copy them to their proper places, i think.

Their proper place is /var/qmail/man.  Add it to your MANPATH.  That's 
why MANPATH exists.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!




Well.. exporting MANPATH did not work well for me, something just didn't
work right.  However, editing /etc/man.config and putting an extra MANPATH
line in there for qmail did.

So for any rh6.1 users, directly putting a MANPATH line in /etc/man.config
is also an option.

Why does qmail use its own dir tho?  Every other app I install drops to the
overall /usr/man dirs.

-Steve

-----Original Message-----
From: Russell Nelson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 16, 1999 10:13 AM
To: [EMAIL PROTECTED]
Subject: Re: Man pages


dd writes:
 > > What command is supposed to install the man pages for qmail?
 > >
 > > After setup, all the .0 files are in my source dir, but they have not
been
 > > moved to the man dirs or added to the indexes.
 >
 > god, this was the question of the year. thx Steve <:}} this is sth
 > which isn't explained anywhere (if it was, i wasn't able to see it) and
 > also i'd like to know which ones the right directories are. "make
 > setup check" or sth else should copy them to their proper places, i
think.

Their proper place is /var/qmail/man.  Add it to your MANPATH.  That's
why MANPATH exists.

--
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them.
Homeschool!





"Steve Kapinos" <[EMAIL PROTECTED]> wrote:

>Why does qmail use its own dir tho?  Every other app I install drops to the
>overall /usr/man dirs.

"Why doesn't qmail crap all over my system like every other app I
install?"

Hmm...

-Dave




On Tue, Nov 16, 1999 at 03:29:27PM -0500, Dave Sill wrote:
> "Steve Kapinos" <[EMAIL PROTECTED]> wrote:
> 
> >Why does qmail use its own dir tho?  Every other app I install drops to the
> >overall /usr/man dirs.
> 
> "Why doesn't qmail crap all over my system like every other app I
> install?"

Bruce Guenter's qmail rpms do "crap" all over my RH6 system...and I LIKE it.
:)

If anyone has such a hard time adding to your PATH and MANPATH variables,
I'd suggest building the RPM and installing that. It does things in a
distinctly RedHat way...

/pg
-- 
Peter Green
Gospel Communications Network, SysAdmin
[EMAIL PROTECTED]




On Nov 16 1999, dd wrote:
> god, this was the question of the year. thx Steve <:}} this is sth
> which isn't explained anywhere (if it was, i wasn't able to see it)
> and also i'd like to know which ones the right directories
> are. "make setup check" or sth else should copy them to their proper
> places, i think.

        Humm... Are you *really* sure that they weren't copied to
        /var/qmail/man/cat{1,5,7,8}???

        In the source tree of qmail, please read the file hier.c. Its
        last lines consist of a batch of c function calls which
        actually copy many files, including the preformatted man
        pages.


        []s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
     Nectar homepage: http://www.linux.ime.usp.br/~rbrito/opeth/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=




On Nov 16 1999, Russell Nelson wrote:
> Their proper place is /var/qmail/man.  Add it to your MANPATH.
> That's why MANPATH exists.

        Actually, in systems that support it (Debian's slink has it
        broken, Debian's potato has got it right), the cleanest way of
        using /var/qmail/man that I know of is to just let the users
        update their PATH variable and tell the mandb suite to map
        /var/qmail/bin to /var/qmail/man, for purposes of manpages.

        Here is an excerpt from my system's manpath.config:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MANPATH_MAP     /var/qmail/bin          /var/qmail/man
MANDB_MAP       /var/qmail/man          /var/qmail/man
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

        Also, under Debian, the files with .0 extensions (catmans
        built by Dan's make) are completely ignored by man.

        Now, here is a question: is Debian broken in this respect?


        []s, Roger...

-- 
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
  Rogerio Brito - [EMAIL PROTECTED] - http://www.ime.usp.br/~rbrito/
     Nectar homepage: http://www.linux.ime.usp.br/~rbrito/opeth/
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=





Hi!

I just need to know the syntax on how to log tcpserver activities.
I already installed the tcpserver software on my qmail server.
There is already a /var/qmail/smtp directory. I'm already logging qmail's
activities on /var/log/qmail without any problem.
Thanks and more power to the list!


Regards,

Edward Castillo Jakosalem





Edward Castillo-Jakosalem <[EMAIL PROTECTED]> wrote:

>I just need to know the syntax on how to log tcpserver activities.

Add the "-v" flag to tcpserver, if you don't have it already.
Tcpserver logs to standard output, so you can pipe to splogger or
cyclog, or redirect to a file. Whatever is consistent with the rest of 
your logging.

-Dave





Hi all,

Possibly a simple question for most of you.

Can I reject messages destined to certain domains ? I seem to be dealing
with somebody that's got too much time on their hands, and my send queue
gets filled with messages for some strange domain. I will look into it
further, but for now, I would like to simply reject all mail addressed to
that specific domain.

Can it be done quickly ?

Thanks in advance.
Jean





Jean Caron writes:
 > Can I reject messages destined to certain domains ? I seem to be dealing
 > with somebody that's got too much time on their hands, and my send queue
 > gets filled with messages for some strange domain.

Sounds like you don't have a /var/qmail/control/rcpthosts.  Create it, 
and read FAQ 5.4, and your problem will go away.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!





> Jean Caron writes:
>  > Can I reject messages destined to certain domains ? I seem to be dealing
>  > with somebody that's got too much time on their hands, and my send queue
>  > gets filled with messages for some strange domain.
> 
> Sounds like you don't have a /var/qmail/control/rcpthosts.  Create it, 
> and read FAQ 5.4, and your problem will go away.
> 
I do have a rcpthosts file containing only hosts from my domain. I re-read
the FAQ 5.4, and I am using tcpserver with the following;

mail:/etc# cat tcp.smtp
206.191.36.30:allow,RELAYCLIENT=""
127.:allow,RELAYCLIENT=""
:allow

Invoking tcpserver from rc.M as follow;
/usr/local/bin/tcpserver -R -x/etc/tcp.smtp.cdb -c100 -u1002 -g101 0 smtp
/var/qmail/bin/qmail-smtpd &

Looking at this now, I'm wondering if the last line of my tcp.smtp file is
creating this situation...?

Jean






Jean Caron <[EMAIL PROTECTED]> wrote:

>Russ Nelson wrote:
>> Jean Caron writes:
>>  > Can I reject messages destined to certain domains ? I seem to be dealing
>>  > with somebody that's got too much time on their hands, and my send queue
>>  > gets filled with messages for some strange domain.
>> 
>> Sounds like you don't have a /var/qmail/control/rcpthosts.  Create it, 
>> and read FAQ 5.4, and your problem will go away.
>> 
>I do have a rcpthosts file containing only hosts from my domain. I re-read
>the FAQ 5.4, and I am using tcpserver with the following;
>
>mail:/etc# cat tcp.smtp
>206.191.36.30:allow,RELAYCLIENT=""
>127.:allow,RELAYCLIENT=""
>:allow

Are the messages to the "strange" domain coming from local users? If
so, rcpthosts won't help because the RELAYCLIENT setting says to
ignore it. What you can do is catch the strange domain with a
virtualdomains entry and bounce or bitbucket it.

>Looking at this now, I'm wondering if the last line of my tcp.smtp file is
>creating this situation...?

No, that just says that any host on the Internet can talk to your
qmail via port 25, which is normal. If it had the ``RELAYCLIENT=""''
part, that would be bad: you'd be an open relay.

-Dave




Jean Caron writes:
 > 
 > > Jean Caron writes:
 > >  > Can I reject messages destined to certain domains ? I seem to be dealing
 > >  > with somebody that's got too much time on their hands, and my send queue
 > >  > gets filled with messages for some strange domain.
 > > 
 > > Sounds like you don't have a /var/qmail/control/rcpthosts.  Create it, 
 > > and read FAQ 5.4, and your problem will go away.
 > > 
 > I do have a rcpthosts file containing only hosts from my domain. I re-read
 > the FAQ 5.4, and I am using tcpserver with the following;

Okay, then it's got to be one of your authorized users who is
injecting this mail.  Tell them to stop, and if they do not, remove
their authorization.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!




On Tue, 16 Nov 1999, Russell Nelson wrote:

> Jean Caron writes:
>  > 
>  > > Jean Caron writes:
>  > >  > Can I reject messages destined to certain domains ? I seem to be dealing
>  > >  > with somebody that's got too much time on their hands, and my send queue
>  > >  > gets filled with messages for some strange domain.
>  > > 
>  > > Sounds like you don't have a /var/qmail/control/rcpthosts.  Create it, 
>  > > and read FAQ 5.4, and your problem will go away.
>  > > 
>  > I do have a rcpthosts file containing only hosts from my domain. I re-read
>  > the FAQ 5.4, and I am using tcpserver with the following;
> 
> Okay, then it's got to be one of your authorized users who is
> injecting this mail.  Tell them to stop, and if they do not, remove
> their authorization.
> 

Now that's just it, I don't have "authorized users". The system is solely
used by myself (as far as I know !?). I have two more questions for you
then;
1) Could those emails somehow be injected from some tricky incoming mail
message ? I have recently been receiving junk mail which seems like an odd
coincidence. Maybe a flaw in my configuration somewhere...?

2) Out of curiosity, how would I authorize or remove authorization from
users ?

I guess at this point, I need to track the origin of those messages. My
logs don't say much. Is there a debug/verbose mode I could turn on ?

Thanks again.
Jean



> -- 
> -russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
> Crynwr sells support for free software  | PGPok | Government schools are so
> 521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
> Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!
> 





Jean Caron writes:
 > On Tue, 16 Nov 1999, Russell Nelson wrote:
 > 
 > > Jean Caron writes:
 > >  > 
 > >  > > Jean Caron writes:
 > >  > >  > Can I reject messages destined to certain domains ? I seem to be dealing
 > >  > >  > with somebody that's got too much time on their hands, and my send queue
 > >  > >  > gets filled with messages for some strange domain.
 > >  > > 
 > >  > > Sounds like you don't have a /var/qmail/control/rcpthosts.  Create it, 
 > >  > > and read FAQ 5.4, and your problem will go away.
 > >  > > 
 > >  > I do have a rcpthosts file containing only hosts from my domain. I re-read
 > >  > the FAQ 5.4, and I am using tcpserver with the following;
 > > 
 > > Okay, then it's got to be one of your authorized users who is
 > > injecting this mail.  Tell them to stop, and if they do not, remove
 > > their authorization.
 > > 
 > 
 > Now that's just it, I don't have "authorized users". The system is solely
 > used by myself (as far as I know !?). I have two more questions for you
 > then;
 > 1) Could those emails somehow be injected from some tricky incoming mail
 > message ? I have recently been receiving junk mail which seems like an odd
 > coincidence. Maybe a flaw in my configuration somewhere...?

Not too likely.

 > 2) Out of curiosity, how would I authorize or remove authorization from
 > users ?

If they have accounts, remove the accounts.  If their machine is
authorized to relay (because of an entry in /etc/smtp.txt which allows 
them to relay, e.g. your entire local network), then insert an entry
which does not set RELAYCLIENT.

 > I guess at this point, I need to track the origin of those messages. My
 > logs don't say much. Is there a debug/verbose mode I could turn on ?

Look at the Received: headers of the messages.  They'll say how they
got into your queue.

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!




Peter Cavender <[EMAIL PROTECTED]> wrote:

>When I try to check my mail, my MUA gives me the following error:
>
>$-ERR this user has no $HOME/Maildir
>
>What privs should the user's home and maildir have (not group or 
>world writable..?)?  What else needs to be in the user's home 
>directory, just .qmail containing "./Maildir/" ?  Thanks.

Your problem is with qmail-pop3d and reading from a maildir, not with
delivering messages to the maildir, right? I.e., there are files under 
the user's Maildir/new and/or Maildir/cur?

If so, you need to concentrate your debugging on the POP side of the
equation. How are you starting qmail-pop3d? Show us the command.

-Dave




Geoff Roberts <[EMAIL PROTECTED]> wrote:

>>The "commands" in the dot-qmail are delivery instructions.
>>qmail-local follows each instruction in turn.
>>
>>The lines are not chained together in some sort of pipe, so each line gets
>>THE SAME MESSAGE.
>>
>>If you want to do piping, then do everything on one single line with pipes.
>
>   So that means I can't do:
>   |command .... |./Maildir/

What the heck is that supposed to do? Have you hacked Maildir support
into your shell so a pipe to a Maildir does a delivery? :-)

>   to write out to a maildir after some commands as the ./Maildir/ needs to
>be on a line by itself.
>
>   How could I do this instead?

Give us an example of what you'd like to do, and we'll show you how to 
do it. Depending upon what you're trying to do, something like:

    |command ... exit 99 ...
    ./Maildir

or

    |command ... | safecat Maildir/tmp Maildir/new

should do the trick.

-Dave




At 09:54 16.11.99 -0500, you wrote:
>Geoff Roberts <[EMAIL PROTECTED]> wrote:
>Give us an example of what you'd like to do, and we'll show you how to 
>do it. Depending upon what you're trying to do, something like:
>
>    |command ... exit 99 ...
>    ./Maildir
>
>or
>
>    |command ... | safecat Maildir/tmp Maildir/new
>
>should do the trick.
>
I suppose he tries to do the same things as me : renaming user e mail address
from internal name to external
I have tried
|preline sed "s/local\.intranet\.net/my_company\.com/" |
/usr/local/bin/safecat
/var/qmail/alias/pppdir/tmp /var/qmail/alias/pppdir/new  
It is creating  files but maildirsmtp ignores them if I do not put Maildir
If I add it, I am sending the internal address :(

-- Christian Dubettier
-- mailto       [EMAIL PROTECTED]
--              [EMAIL PROTECTED]




D. J. Bernstein writes:
 > > http://www.ietf.org/internet-drafts/draft-ietf-drums-smtpupd-10.txt
 > 
 > See http://cr.yp.to/smtp/klensin.html for a list of problems with
 > smtpupd-10, including some serious interoperability failures.

That's not a very modular document.  There's duplicated sentences all
throughout it.  Couldn't you have used a subroutine?

-- 
-russ nelson <[EMAIL PROTECTED]>  http://russnelson.com
Crynwr sells support for free software  | PGPok | Government schools are so
521 Pleasant Valley Rd. | +1 315 268 1925 voice | bad that any rank amateur
Potsdam, NY 13676-3213  | +1 315 268 9201 FAX   | can outdo them. Homeschool!




On Mon, 15 Nov 1999 22:31:52 -0600, Bruce Guenter wrote:

>> > > 2a. if -l: compare host name of envelope recipients. If same as local host
>> > > name, deliver locally with qmail-local.
>> > > 2b. deliver multi-recipient message remotely (concurrent with 2a). If -l:
>> > > remove all recipients with host part matching the local host (me).
>
>Any suggestions on how to do concurrent deliveries correctly (ie even
>under error conditions)?

I think the easiest is to use a scheme like QMQP. One message per
connection and all recipients are accepted. The smarthost does all the
bounce generation, etc, so there are 3 possible outcomes:  message
accepted, message not accepted (malformatted addresses -checked already
by qmail-queue if used, so very unusual and probable should be treated
as a temp error in this type of system), or time-out (deferral).
qmail-qmqpc already has failover for QMQP servers.

So, identify and mark local recipients. Concurrent {dispatch local
delivery agent for each local recipient - mark result; send remote
recipients via QMQP to smarthost - mark all remote recipient records
with result; }, redeliver until all recipients done (bounce or success)
or message exceeds queue life (bounce remaining).

>> > > 3. Generate one bounce message per local recipient. Generate pre-VERP
>> > > bounce if one of more remote recipients are not accepted.
>
>What do you mean by "pre-VERP"?

When the SENDER looks like .....-@[]

qmail-remote and qmail-local will adjust SENDER to put in the encoded
recipient address. This does not have to be done for qmail-qmqpc, since
the smarthost will always run qmail and there will always be a
qmail-remote or a qmail-local before final delivery.

I don't know if there is an advantage to using QMTP for this. One
problem is that qmail-qmqpc has a 60 s read time out. For the final
"OK" this means that if it takes longer than 60 s the client will think
that the message was not accepted resulting in duplication (for all
recipients, of course). This is ok for the intended use of qmail-qmqpc,
but should be increased to e.g. 300/600. Time-out happened a few times
with list messages from Brasil over ISDN to an underdimensioned list
exploder here in St. Louis. Increasing the time-out t e.g. 300 solved
this. QMQP over local LAN has been 100% reliable with default settings.

>And nobody should bet their business on something that doesn't exist
>yet, no matter how good the reputation.

Agreed. Also, no reason to believe that DJB will address this
particular issue.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)






On Mon, 15 Nov 1999 22:31:52 -0600, Bruce Guenter wrote:

>> > > 2a. if -l: compare host name of envelope recipients. If same as local host
>> > > name, deliver locally with qmail-local.
>> > > 2b. deliver multi-recipient message remotely (concurrent with 2a). If -l:
>> > > remove all recipients with host part matching the local host (me).
>
>Any suggestions on how to do concurrent deliveries correctly (ie even
>under error conditions)?

I think the easiest is to use a scheme like QMQP. One message per
connection and all recipients are accepted. The smarthost does all the
bounce generation, etc, so there are 3 possible outcomes:  message
accepted, message not accepted (malformatted addresses -checked already
by qmail-queue if used, so very unusual and probable should be treated
as a temp error in this type of system), or time-out (deferral).
qmail-qmqpc already has failover for QMQP servers.

So, identify and mark local recipients. Concurrent {dispatch local
delivery agent for each local recipient - mark result; send remote
recipients via QMQP to smarthost - mark all remote recipient records
with result; }, redeliver until all recipients done (bounce or success)
or message exceeds queue life (bounce remaining).

>> > > 3. Generate one bounce message per local recipient. Generate pre-VERP
>> > > bounce if one of more remote recipients are not accepted.
>
>What do you mean by "pre-VERP"?

When the SENDER looks like .....-@[]

qmail-remote and qmail-local will adjust SENDER to put in the encoded
recipient address. This does not have to be done for qmail-qmqpc, since
the smarthost will always run qmail and there will always be a
qmail-remote or a qmail-local before final delivery.

I don't know if there is an advantage to using QMTP for this. One
problem is that qmail-qmqpc has a 60 s read time out. For the final
"OK" this means that if it takes longer than 60 s the client will think
that the message was not accepted resulting in duplication (for all
recipients, of course). This is ok for the intended use of qmail-qmqpc,
but should be increased to e.g. 300/600. Time-out happened a few times
with list messages from Brasil over ISDN to an underdimensioned list
exploder here in St. Louis. Increasing the time-out t e.g. 300 solved
this. QMQP over local LAN has been 100% reliable with default settings.

>And nobody should bet their business on something that doesn't exist
>yet, no matter how good the reputation.

Agreed. Also, no reason to believe that DJB will address this
particular issue.


-Sincerely, Fred

(Frederik Lindberg, Infectious Diseases, WashU, St. Louis, MO, USA)






On Tue, Nov 16, 1999 at 01:09:43PM +0200,
  dd <[EMAIL PROTECTED]> wrote:
> 
> errm, again "generally" mail sent to root is fwd'ed to admin's account.
> if not, this is a sign of carelessness to me.

On various unix systems. However not all systems are unix systems.
The RFC defined contact address is postmaster. Recently some other
contact addresses have been defined for dealing with specific topics
(such as abuse). If a mail server administrator isn't reading their
postmaster mail, they shouldn't be running a mail server.




Probably sendmail got installed.  Stop it, remove it, then restore the
links in /usr/sbin and /usr/lib to /var/qmail/bin/sendmail.

Mate




At 10:03 AM 11/16/99 , Mate Wierdl wrote:
>Probably sendmail got installed.  Stop it, remove it, then restore the
>links in /usr/sbin and /usr/lib to /var/qmail/bin/sendmail.
>
>Mate

Good suggestion! but got those first thing...
 [root@to log]# cd /usr/sbin
 [root@to sbin]# ls -al sendmail
 lrwxrwxrwx   1 root     root           23 Nov 13 11:59 sendmail ->
/var/qmail/bi
 n/sendmail
 [root@to sbin]# cd /usr/lib
 [root@to lib]# ls -al sendmail
 lrwxrwxrwx   1 root     root           23 Nov 13 11:58 sendmail ->
/var/qmail/bi
 n/sendmail
 [root@to lib]#

I have since changed my /etc/syslog.conf to just a few lines, so it looks
like this...
 [root@to /etc]# more syslog.conf
 mail.*  /var/log/maillogx
 *.info;mail.none;authpriv.none  /var/log/messages
 authpriv.*      /var/log/secure
 *.emerg *
 uucp,news.crit  /var/log/spooler
 local7.* /var/log/boot.log
 [root@to /etc]#

I changed the name of the output file to maillogx, and it is getting the
ipop3d messages, but not the qmail messages.

I wonder if I have an ownership problem - are all of the files in
/var/qmail/bin owned by root, in the group qmail, except qmail-queue owned
by qmailq?

Troy.
#





At 12:24 PM +0200 11/16/99, Georgi Kupenov wrote:
>"D. J. Bernstein" wrote:
>
>> [EMAIL PROTECTED] writes:
>> > Some of our clients use ETRN to get their mail. I'm wondering what are
>> > my choices of solutions to implement this feature into qmail.
>>
>> Install serialmail, and enable AutoTURN for authorized clients. An ETRN
>> client will receive its mail after it makes a connection.
>>
>> ---Dan
>
>So, if the ETRN client connects to the ISP and forces its queue
>via the ISP's mail server (relaying allowed),
>the AutoTURN will "wake up" and force all the mail for it.
>Is that correct?

Sort oif. AutoTURN will automatically start sending them ail as soon 
as the remote sender (coming from the designated IP) makes a 
connection on port 25. No commands need be send.

Jon




Hi!
I have a strange problem with the qmail-pop3d. It is started over the
tcpserver. Whenever customers try to download a big messages (size > 1
Meg) over a slow link the connection times out after about 3 min.
This is reproduceable. Why would the tcpserver drop the connection after
that time though not all data has been transmitted yet or why would the 
qmail-pop3d do that? 
  

Markus Wuebben
Products & Development
 
* ID-PRO GmbH 
* Tel.: 02932 916 136  
* Fax: 02932 916 236 
* mailto:[EMAIL PROTECTED]
* http://open-for-the-better.com







On Tue, 16 Nov 1999, Markus Wuebben wrote:

> Hi!
> I have a strange problem with the qmail-pop3d. It is started over the
> tcpserver. Whenever customers try to download a big messages (size > 1
> Meg) over a slow link the connection times out after about 3 min.
> This is reproduceable. Why would the tcpserver drop the connection after
> that time though not all data has been transmitted yet or why would the 
> qmail-pop3d do that? 

Are you sure that it's something on the server that's dropping the
connection?  Something that sounds very much like this happened to us and
it was usually fixed by increasing the timeout set by the client; it
appears that some (all?) clients will drop the connection if they haven't
received a command in whatever their timeout setting is, even if data is
being sent.  (This is just a guess, however, based on observed behaviour, 
and I also don't know if this is the "approved" behaviour for mail
clients.)

In any event, you might want to increase the timeout setting on the
client, if possible.

-AM





I have a qmail server sitting on two networks.  The machines
on the private network can't address, directly, the internet.
I have some scripts running on a server on the private network
that send email to users on LOCALHOST. What I'd like to do is
setup the machine running the scripts to send all out going 
email through the qmail server that has access to the internet.
Currently the SCRIPT machine is running sendmail. I have no
problem with putting qmail on that machine as well.


Any help is greatly appreciated.

--
G. Clifford Williams
Graphic Rezidew
[EMAIL PROTECTED]
http://graphic.rezidew.net




In the course of engineering a new mail solution, we are looking at a
Maildir only setup utilizing qmail, pop3d, courier-imap, and a custom
authentication mechanism (to be dropped in in the form of checkpasswd and
the appropriate module for courier-imap.

Anyway, what I'm wondering if there is a way that I'm not seeing, thru the
use of qmail-users or some other mechanism to avoid creating $HOME/Maildir
for every last mailbox, and just having $MAILSTORE/Maildir, eg, one
big-honkin directory (or a couple, hashed on lusername), or, since I'm still
only having Maildir within each user directory if I'm wasting my time?

On another note, has anyone had any success with courier-imap in a really
large (200k+) mailbox environment?

-- 
--Matt Schnierle
--mgs at stargate dot net
--Stargate Industries, LLC
--#include <std/disclaimer.h>
--"It's not that simple."






Is courier-imap the easiest and/or best solution for an IMAP service
supported by qmail using ./Maildir/ delivery?  I'd like to hear any comments
on this, as I'm looking for a good IMAP solution for a new box running qmail
we're setting up.

In regards to Matt's issue with $MAILSTORE/Maildir/ folders, what's wrong
with /home?

Could a symlink pick up the slack here, if you really want to place the mail
in a different dir?

Thanks


-----Original Message-----
From: Matt Schnierle -- Stargate [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 16, 1999 1:20 PM
To: [EMAIL PROTECTED]
Subject: qmail-users and directory depth


In the course of engineering a new mail solution, we are looking at a
Maildir only setup utilizing qmail, pop3d, courier-imap, and a custom
authentication mechanism (to be dropped in in the form of checkpasswd and
the appropriate module for courier-imap.

Anyway, what I'm wondering if there is a way that I'm not seeing, thru the
use of qmail-users or some other mechanism to avoid creating $HOME/Maildir
for every last mailbox, and just having $MAILSTORE/Maildir, eg, one
big-honkin directory (or a couple, hashed on lusername), or, since I'm still
only having Maildir within each user directory if I'm wasting my time?




I start tcpserver with the following command lines (in /etc/rc.d/rc.qmail
[slackware 4])

tcpserver -v -u 1001 -g 101 webmail smtp /var/qmail/bin/qmail-smtpd 2>&1 |
/var/qmail/bin/splogger smtpd 3 &
tcpserver webmail pop-3 /var/qmail/bin/qmail-popup webmail
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &

but I get following error:

webmail:~# tcpserver -v -u 1001 -g 101 webmail smtp
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
[1] 19391
[1]+  Done                    tcpserver -v -u 1001 -g 101 webmail smtp
/var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3
webmail:~# tcpserver webmail pop-3 /var/qmail/bin/qmail-popup webmail
/bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
[1] 19392
webmail:~# tcpserver: fatal: unable to bind: address not available

What is wrong? I want to change from inetd to tcpserver ASAP because I have
to restart rinetd every 120 seconds at the moment... Please help.

Regards
Michael Boman

--
Michael Boman, Systems Engineer
WizOffice.Com Pte Ltd - 16 Tannery Lane, #06-00
Crystal Time Building, Singapore. 347778
Your Online Office Wizard - http://www.wizoffice.com/

BEGIN:VCARD
VERSION:2.1
N:Boman;Michael
FN:Michael Boman
NICKNAME:Michael
ORG:WizOffice.com
TITLE:Systems Engineer
TEL;PAGER;VOICE:(65) 92932949
ADR;WORK:;;;;;;Singapore
LABEL;WORK:Singapore
URL:
URL:http://www.wizoffice.com
EMAIL;PREF;INTERNET:[EMAIL PROTECTED]
REV:19990922T094837Z
END:VCARD





On 16-Nov-99 Michael Boman wrote:
> I start tcpserver with the following command lines (in /etc/rc.d/rc.qmail
> [slackware 4])
> 
> tcpserver -v -u 1001 -g 101 webmail smtp /var/qmail/bin/qmail-smtpd 2>&1 |
> /var/qmail/bin/splogger smtpd 3 &
> tcpserver webmail pop-3 /var/qmail/bin/qmail-popup webmail
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
> 
> but I get following error:
> 
> webmail:~# tcpserver -v -u 1001 -g 101 webmail smtp
> /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
> [1] 19391
> [1]+  Done                    tcpserver -v -u 1001 -g 101 webmail smtp
> /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3
> webmail:~# tcpserver webmail pop-3 /var/qmail/bin/qmail-popup webmail
> /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
> [1] 19392
> webmail:~# tcpserver: fatal: unable to bind: address not available
> 
> What is wrong? I want to change from inetd to tcpserver ASAP because I have
> to restart rinetd every 120 seconds at the moment... Please help.

Is something else listening on the port?  Are you doing this as root?

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
  # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================






No. When I try that I have removed my POP3 and SMTP line from inetd and
'killall -HUP inetd'. I run 'netstat -an' to make sure it is not listening
any more. I am running it as root.


Regards,
Michael Boman

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Vince Vielhaber
> Sent: Wednesday, 17 November, 1999 4:02 AM
> To: Michael Boman
> Cc: Qmail
> Subject: RE: tcpserver dont want to run =(
>
>
>
> On 16-Nov-99 Michael Boman wrote:
> > I start tcpserver with the following command lines (in
> /etc/rc.d/rc.qmail
> > [slackware 4])
> >
> > tcpserver -v -u 1001 -g 101 webmail smtp
> /var/qmail/bin/qmail-smtpd 2>&1 |
> > /var/qmail/bin/splogger smtpd 3 &
> > tcpserver webmail pop-3 /var/qmail/bin/qmail-popup webmail
> > /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
> >
> > but I get following error:
> >
> > webmail:~# tcpserver -v -u 1001 -g 101 webmail smtp
> > /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3 &
> > [1] 19391
> > [1]+  Done                    tcpserver -v -u 1001 -g 101 webmail smtp
> > /var/qmail/bin/qmail-smtpd 2>&1 | /var/qmail/bin/splogger smtpd 3
> > webmail:~# tcpserver webmail pop-3 /var/qmail/bin/qmail-popup webmail
> > /bin/checkpassword /var/qmail/bin/qmail-pop3d Maildir &
> > [1] 19392
> > webmail:~# tcpserver: fatal: unable to bind: address not available
> >
> > What is wrong? I want to change from inetd to tcpserver ASAP
> because I have
> > to restart rinetd every 120 seconds at the moment... Please help.
>
> Is something else listening on the port?  Are you doing this as root?
>
> Vince.
> --
> ==========================================================================
> Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
>   # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
>         Online Campground Directory    http://www.camping-usa.com
>        Online Giftshop Superstore    http://www.cloudninegifts.com
> ==========================================================================
>
>
>






On 17-Nov-99 Michael Boman wrote:
> No. When I try that I have removed my POP3 and SMTP line from inetd and
> 'killall -HUP inetd'. I run 'netstat -an' to make sure it is not listening
> any more. I am running it as root.

Did you try to telnet to those ports to see if something's there?

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
  # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================






Just tried. Connection refused.

Regards,
Michael Boman

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Vince Vielhaber
> Sent: Wednesday, 17 November, 1999 10:46 AM
> To: Michael Boman
> Cc: Qmail
> Subject: RE: tcpserver dont want to run =(
>
>
>
> On 17-Nov-99 Michael Boman wrote:
> > No. When I try that I have removed my POP3 and SMTP line from inetd and
> > 'killall -HUP inetd'. I run 'netstat -an' to make sure it is
> not listening
> > any more. I am running it as root.
>
> Did you try to telnet to those ports to see if something's there?
>
> Vince.
> --
> ==========================================================================
> Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
>   # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
>         Online Campground Directory    http://www.camping-usa.com
>        Online Giftshop Superstore    http://www.cloudninegifts.com
> ==========================================================================
>
>
>






On 17-Nov-99 Michael Boman wrote:
> Just tried. Connection refused.

Try this:  /usr/local/bin/tcpserver 0 25 /bin/ls 
then telnet to port 25 on that machine.

Then...
Try:  /usr/local/bin/tcpserver 0 119 /bin/ls
and telnet to port 119 on that port.

Both times you should get a directory listing.

Vince.
-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
  # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================






Yes, I did get the listings. What can be wrong then? Please advice.

Regards,
Michael Boman

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Vince Vielhaber
> Sent: Wednesday, 17 November, 1999 10:59 AM
> To: Michael Boman
> Cc: Qmail
> Subject: RE: tcpserver dont want to run =(
>
>
>
> On 17-Nov-99 Michael Boman wrote:
> > Just tried. Connection refused.
>
> Try this:  /usr/local/bin/tcpserver 0 25 /bin/ls
> then telnet to port 25 on that machine.
>
> Then...
> Try:  /usr/local/bin/tcpserver 0 119 /bin/ls
> and telnet to port 119 on that port.
>
> Both times you should get a directory listing.
>
> Vince.
> --
> ==========================================================================
> Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
>   # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
>         Online Campground Directory    http://www.camping-usa.com
>        Online Giftshop Superstore    http://www.cloudninegifts.com
> ==========================================================================
>
>
>






On 17-Nov-99 Michael Boman wrote:
> Yes, I did get the listings. What can be wrong then? Please advice.

Try running the programs from the command line.   Tcpserver's doing
it's thing, it's now up to what needs to be run.

Vince.



> 
> Regards,
> Michael Boman
> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
>> Of Vince Vielhaber
>> Sent: Wednesday, 17 November, 1999 10:59 AM
>> To: Michael Boman
>> Cc: Qmail
>> Subject: RE: tcpserver dont want to run =(
>>
>>
>>
>> On 17-Nov-99 Michael Boman wrote:
>> > Just tried. Connection refused.
>>
>> Try this:  /usr/local/bin/tcpserver 0 25 /bin/ls
>> then telnet to port 25 on that machine.
>>
>> Then...
>> Try:  /usr/local/bin/tcpserver 0 119 /bin/ls
>> and telnet to port 119 on that port.
>>
>> Both times you should get a directory listing.
>>
>> Vince.
>> --
>> ==========================================================================
>> Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
>>   # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
>>         Online Campground Directory    http://www.camping-usa.com
>>        Online Giftshop Superstore    http://www.cloudninegifts.com
>> ==========================================================================
>>
>>
>>
> 

-- 
==========================================================================
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
  # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================






I found the error.. I replace my hostname with a '0' then it works like a
charm.. Why do the documentation say that you should put your hostname
there?

Regards
Michael Boman

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> Of Vince Vielhaber
> Sent: Wednesday, 17 November, 1999 11:27 AM
> To: Michael Boman
> Cc: Qmail
> Subject: RE: tcpserver dont want to run =(
>
>
>
> On 17-Nov-99 Michael Boman wrote:
> > Yes, I did get the listings. What can be wrong then? Please advice.
>
> Try running the programs from the command line.   Tcpserver's doing
> it's thing, it's now up to what needs to be run.
>
> Vince.
>
>
>
> >
> > Regards,
> > Michael Boman
> >
> >> -----Original Message-----
> >> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf
> >> Of Vince Vielhaber
> >> Sent: Wednesday, 17 November, 1999 10:59 AM
> >> To: Michael Boman
> >> Cc: Qmail
> >> Subject: RE: tcpserver dont want to run =(
> >>
> >>
> >>
> >> On 17-Nov-99 Michael Boman wrote:
> >> > Just tried. Connection refused.
> >>
> >> Try this:  /usr/local/bin/tcpserver 0 25 /bin/ls
> >> then telnet to port 25 on that machine.
> >>
> >> Then...
> >> Try:  /usr/local/bin/tcpserver 0 119 /bin/ls
> >> and telnet to port 119 on that port.
> >>
> >> Both times you should get a directory listing.
> >>
> >> Vince.
> >> --
> >>
> ==========================================================================
> >> Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]
> flame-mail: /dev/null
> >>   # include <std/disclaimers.h>       Have you seen
http://www.pop4.net?
>>         Online Campground Directory    http://www.camping-usa.com
>>        Online Giftshop Superstore    http://www.cloudninegifts.com
>>
==========================================================================
>>
>>
>>
>

--
==========================================================================
Vince Vielhaber -- KA8CSH   email: [EMAIL PROTECTED]   flame-mail: /dev/null
  # include <std/disclaimers.h>       Have you seen http://www.pop4.net?
        Online Campground Directory    http://www.camping-usa.com
       Online Giftshop Superstore    http://www.cloudninegifts.com
==========================================================================







At 10:28 AM 11/16/99 -0500, you wrote:
>On Tue, Nov 16, 1999 at 09:50:25AM -0500, [EMAIL PROTECTED] wrote:
>> > > AMD K6-2 333
>> > > 384MB RAM
>> > > UW SCSI disk on Buslogic controller
>> > > True tulip 100bTX NIC on 3com 10/100 switch, full-dup
>> > > RH6 w/ 2.2.13 kernel
>> > > qmail-1.03 + jbuce.diff + newlines.patch
>                                ^^^^^^^^^^^^^^

Where does one obtain this patch, and how hard is it to apply?  Every time
I try patching a kernel, it never seems to work, so I download a whole
tarball :-)...In addition, will qmail need to be re-compiled, and is it a
difficult process (I did it when I installed from a tarball, but I guess
I need practice).

-Bill






I received this bounced mail in my mail this morning. I am concerned
that someone is trying to use my qmail server as a relay or something.
Can anyone tell from this mail what is going on?
Any help would be appreciated, I want to know what is going on.

My Qmail server is at ns.datafree.com,
this mail appeared to be sent to one of my domains and an old email
address: [EMAIL PROTECTED]
The mail is listed below:
____________________________________________________________________________________


Subject: 
          DELIVERY FAILURE: Error transferring to
CABLINGSPECIALISTS.COM; Maximum hop count exceeded. Message probably in
a routing loop.
     Date: 
          15 Nov 1999 21:17:35 -0000
     From: 
          [EMAIL PROTECTED], [EMAIL PROTECTED]
 Reply-To: 
          [EMAIL PROTECTED]
       To: 
          [EMAIL PROTECTED]




Your message

  Subject: failure notice

was not delivered to:

  [EMAIL PROTECTED]

because:

  Error transferring to CABLINGSPECIALISTS.COM; Maximum hop count
exceeded.  Message probably in a routing loop. 




Reporting-MTA: dns;www.remotemgmt.com

Final-Recipient: rfc822;[EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Remote-MTA: smtp;CABLINGSPECIALISTS.COM
Diagnostic-Code: X-Notes; Error transferring to CABLINGSPECIALISTS.COM;
Maximum hop count exceeded.  Message probably in a routing loop. 


   Subject: 
          failure notice
     Date: 
          15 Nov 1999 21:17:35 -0000
     From: 
          [EMAIL PROTECTED]
 Reply-To: 
          [EMAIL PROTECTED]
       To: 
          [EMAIL PROTECTED]



Hi. This is the qmail-send program at relay07.indigo.ie.
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)

--- Enclosed is a copy of the message.


   Subject: 
          Mail System Error - Returned Mail
     Date: 
          Mon, 15 Nov 1999 15:13:29 -0600
     From: 
          Mail Administrator<[EMAIL PROTECTED]>
 Reply-To: 
          [EMAIL PROTECTED]
       To: 
          [EMAIL PROTECTED]



This Message was undeliverable due to the following reason:

The following destination addresses were unknown (please check
the addresses and re-mail the message):

SMTP <[EMAIL PROTECTED]>

Please reply to [EMAIL PROTECTED]
if you feel this message to be in error.



   Subject: 
          Returned mail: User unknown
     Date: 
          Mon, 15 Nov 1999 13:09:41 -0800 (PST)
     From: 
          Mail Delivery Subsystem <[EMAIL PROTECTED]>
 Reply-To: 
          [EMAIL PROTECTED]
       To: 
          <[EMAIL PROTECTED]>



The original message was received at Mon, 15 Nov 1999 13:09:39 -0800
(PST)
from [209.10.84.9]

   ----- The following addresses had permanent fatal errors -----
<[EMAIL PROTECTED]>
    (expanded from: <[EMAIL PROTECTED]>)

   ----- Transcript of session follows -----
... while talking to enaila.nidlink.com.:
>>> RCPT To:<[EMAIL PROTECTED]>
<<< 550 <[EMAIL PROTECTED]>... User unknown
550 <[EMAIL PROTECTED]>... User unknown




Reporting-MTA: dns; lanfear.nidlink.com
Received-From-MTA: DNS; [209.10.84.9]
Arrival-Date: Mon, 15 Nov 1999 13:09:39 -0800 (PST)

Final-Recipient: RFC822; <[EMAIL PROTECTED]>
X-Actual-Recipient: RFC822; [EMAIL PROTECTED]
Action: failed
Status: 5.1.1
Remote-MTA: DNS; enaila.nidlink.com
Diagnostic-Code: SMTP; 550 <[EMAIL PROTECTED]>... User unknown
Last-Attempt-Date: Mon, 15 Nov 1999 13:09:41 -0800 (PST)




Return-Path: <[EMAIL PROTECTED]>
Received: from bazaare.com ([209.10.84.9])
        by lanfear.nidlink.com (8.9.0/8.9.0) with ESMTP id NAA06153
        for <[EMAIL PROTECTED]>; Mon, 15 Nov 1999 13:09:39 -0800
(PST)
Received: from pro1 [209.10.84.12] by bazaare.com
  (SMTPD32-5.05) id AF35392800EC; Mon, 15 Nov 1999 16:05:09 +0000
Message-ID: <001101bf2fac$322921a0$[EMAIL PROTECTED]>
From: "Welcome to BazaarE!" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Welcome to www.BazaarE.com --- An all new way to shop online!
Date: Mon, 15 Nov 1999 15:58:41 -0500
MIME-Version: 1.0
Content-Type: multipart/alternative;
        boundary="----=_NextPart_000_000E_01BF2F82.494250C0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Precedence: bulk
Sender: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]




Suddenly, my qmail died with the following in /var/log/qmail:

<timestamp> status: local 0/10 remote 25/50 exitasap
blah.. blah.... blah...

<timestamp> status: local 0/10 remote 0/50 exitasap
blah....blah....blah...

<timestamp> status: exiting

Does anybody, knows how to fix it?
any tip?

--
ADA, n.:
        Something you need only know the name of to be an Expert in
Computing.  Useful in sentences like, "We had better develop an ADA
awareness."





"Gustavo Rios" <[EMAIL PROTECTED]> wrote:

>Suddenly, my qmail died with the following in /var/log/qmail:
>
><timestamp> status: local 0/10 remote 25/50 exitasap
>blah.. blah.... blah...
>
>Does anybody, knows how to fix it?
>any tip?

Stop doing "kill [PID of qmail-send]"?

qmail is dying because somebody's telling it to die.

-Dave




I wrote:
>"Gustavo Rios" <[EMAIL PROTECTED]> wrote:
>
>>Suddenly, my qmail died with the following in /var/log/qmail:
>>
>><timestamp> status: local 0/10 remote 25/50 exitasap
>>blah.. blah.... blah...
>>
>>Does anybody, knows how to fix it?
>>any tip?
>
>Stop doing "kill [PID of qmail-send]"?
>
>qmail is dying because somebody's telling it to die.

Actually, there are other ways that "exitasap" exits can happen, but
qmail-send will log the reason, e.g.:

  alert: oh no! lost qmail-clean connection! dying...
  alert: oh no! lost spawn connection! dying...

-Dave




Very strange!
i just killall -HUP qmail-send.

According to man pages, it is supposed to re-read locals/virtualdomains!

--
ADA, n.:
        Something you need only know the name of to be an Expert in
Computing.  Useful in sentences like, "We had better develop an ADA
awareness."

On Tue, 16 Nov 1999, Dave Sill wrote:

> "Gustavo Rios" <[EMAIL PROTECTED]> wrote:
> 
> >Suddenly, my qmail died with the following in /var/log/qmail:
> >
> ><timestamp> status: local 0/10 remote 25/50 exitasap
> >blah.. blah.... blah...
> >
> >Does anybody, knows how to fix it?
> >any tip?
> 
> Stop doing "kill [PID of qmail-send]"?
> 
> qmail is dying because somebody's telling it to die.
> 
> -Dave
> 





Yeah, just before every all remote deliveries ( remote 26/50, remote
25/50, remote 0/50), it happend.

So, i got just a exitasap after each ".....status: local 0/10 remote
x/50" line.

Seems crasy, isn't it?

PS: Again, i just killall -HUP qmail-send.

Thanks.

--
ADA, n.:
        Something you need only know the name of to be an Expert in
Computing.  Useful in sentences like, "We had better develop an ADA
awareness."

On Tue, 16 Nov 1999, Dave Sill wrote:

> I wrote:
> >"Gustavo Rios" <[EMAIL PROTECTED]> wrote:
> >
> >>Suddenly, my qmail died with the following in /var/log/qmail:
> >>
> >><timestamp> status: local 0/10 remote 25/50 exitasap
> >>blah.. blah.... blah...
> >>
> >>Does anybody, knows how to fix it?
> >>any tip?
> >
> >Stop doing "kill [PID of qmail-send]"?
> >
> >qmail is dying because somebody's telling it to die.
> 
> Actually, there are other ways that "exitasap" exits can happen, but
> qmail-send will log the reason, e.g.:
> 
>   alert: oh no! lost qmail-clean connection! dying...
>   alert: oh no! lost spawn connection! dying...
> 
> -Dave
> 





On Tue, Nov 16, 1999 at 09:09:54AM -0000, Alex at Star wrote:
> Davids patch was for a web site where you could control the 
> format of the mail sent. It will add a plain footer text directly to the end of 
>emails, 
> so its only appropriate for mails that aren't using multipart mime,
> are encoded using 7 (and perhaps 8) bit mime, and are of type text/plain.
> (and probably some other restrictions as well).

Yes, you are of course completely right there. 
But, how would you otherwise do it? Reparse all mail or hack all clients? 
I'm not too fond of reformatting the mailbody anyway.

It's ok if you do webmailing, but otherwise NOT. As you said.

/magnus

-----------------------------------------------------
This message has not been checked for any known virus
MOST useless 1998 * http://x42.com/




> But, how would you otherwise do it?
If you don't have control of the sender, the only way is to reparse the
mail.
However, don't expect this to be easy!
In any case, you can't do this to signed or encrypted mail.

Alex
:(

________________________________________________________________________________
This message has been checked for all known viruses by the Star Screening System
http://academy.star.co.uk/public/virustats.htm




I'm planning on migrating my system from Maildir to Mbox. (I'm tired of
having to find Maildir-aware tools, and I don't really need Maildir since
my mail delivery volume is low and none of my filesystems involve NFS.)

Are there any particular issues I should be aware of? Having read the
maildir2mbox man page, it looks like running that for each of my users
(probably through a Perl script wrapper) should be sufficient. Obviously,
I'll need to stop local deliveries first, then restart Qmail with an mbox
delivery instruction instead of Maildir. So, my proposed plan of action
looks like:

1) Write Perl wrapper to run maildir2mbox for each user.
2) Set concurrencylocal to 0; restart Qmail (to continue accept-
   ing mail during changeover).
3) Run Perl wrapper script.
4) Set Qmail's new delivery instruction, remove zero setting on
   concurrencylocal, restart Qmail.
5) Enjoy life with no more Maildirs.

Is there anything I'm missing that's likely to bite me? Is there a
preferred canonical filename for mbox files in users' home dirs? If I make
the file .mbox or some other hidden name, will this cause trouble?

In particular, since some of my users are clamoring for Pine, does Pine
expect some particular mbox filename? And is there anything else I should
be asking or worrying about that I'm not?

Thanks very much.

-----------------------------------------------------------------
                             Kai MacTane
                         System Administrator
                      Online Partners.com, Inc.
-----------------------------------------------------------------
>From the Jargon File: (v4.0.0, 25 Jul 1996)

die horribly /v./ 

The software equivalent of crash and burn, and the preferred emphatic
form of die. "The converter choked on an FF in its input and died
horribly". 





On Tue, Nov 16, 1999 at 12:41:58PM -0800, Kai MacTane wrote:
> 2) Set concurrencylocal to 0; restart Qmail (to continue accept-
>    ing mail during changeover).

Accepting mail is independent from running qmail-send. However if you
want remote deliveries still to happen, this is the right way.

> 4) Set Qmail's new delivery instruction, remove zero setting on
>    concurrencylocal, restart Qmail.

Before that step you should set (in login.conf, /etc/profile, ...) the
environment variable MAIL to whatever the location of the incoming Mailbox
file is.
On some systems we use
    MAIL=$HOME/Mailbox; export MAIL

> Is there anything I'm missing that's likely to bite me? Is there a
> preferred canonical filename for mbox files in users' home dirs? If I make
> the file .mbox or some other hidden name, will this cause trouble?

Not that I know of. Any name should be fine, als long as the MAIL
variable points to it. We don't have any problems with /bin/mail, pine,
mutt or elm with the above setup.

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Yeah, yo mama dresses
Research & Development    | mailto:[EMAIL PROTECTED] | you funny and you need
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | a mouse to delete files
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  |




Does anyone have any resources (mailing list, docs, advice, etc..) on 
getting the Imap server with Maildir Support to create SubFolders of
SubFolders?

It seems that even after adding this as a local preference, the user
still cannot create folders unless in the top level directory.

Thanks.





Hello,
 
Just a few questions.
 
1. I do not want ANY delivery attempts on mail over 24 hours old.  What is the best way to accomplish this?
 
2. Where is the best documentation on qmail-analog?
 
I thought I would be able to find both of these answers in the archive, but I couldn't.
 
Thanks,
Mike
 





Hi!

I have qmail server in my intranet. The server also has a modem and does IpMasq.
I have a script to send out the outgoing mail to the nearest smtp server and
fetches new mail from internet via POP3:

------------- This is the script that does Mail exchange ----------------

#!/bin/bash

export PATH="/sbin:/bin:/usr/sbin:/usr/bin:/opt/serialmail/bin:/opt/ucspi-tcp/bin"

#get the IP of ppp0!
MyIp=`/opt/iflib/ifinf ip ppp0`

#receive mail
su <user1> -c "fetchmail -a " > /tmp/named.pipe.httpdial &
su <user2> -c "fetchmail -a " > /tmp/named.pipe.httpdial &
<... and so on ... for every user>

#SEND mail
/opt/serialmail/bin/maildirsmtp ~alias/pppdir alias-ppp- <smtp server> $MyIp
-----------------------------------------------------------

This script works just fine when run from a telnet.

So other users (non Linux users) can establish ppp connection I've made a http
dialer daemon (http://www.kiss.uni-lj.si/~k4f0058/httpdial.html) with 3 buttons.
One runs conect, second disconnect and third "mail exchange" scripts. The tool
is still a bit unreliable (read beta), but the connect/disconnect scripts run
just fine. 
The problem is with the "mail exchange script". Fetchmail works just fine, but
maildirsmtp never runs :(((. I looked thru the logs but found no error; I've
tried a lot of things (exec, ...) but nothing worked.
What does maildirsmtp want ??

Some technical details:
----------------
std* is redirected to /dev/null (it is actualy the same fd, dupe2()d 3 times -
I suspect this to be the problem). 
The script is executed by this code fragment:

global.pidScriptMx=fork();
switch(global.pidScriptMx) {
case 0:
execlp(defMxScript,NULL);
syslog(LOG_ERR,"-> Unable to run the mailex script - execlp() failed.\n"); // this 
code should never be executed.
exit(-255);
break;

-- 
best regards,
Rok Papez.





Dear qmail gurus,

I am experiencing this very scary crash every once in a while in my system
and I have no idea on what it could be. All I know is that it always
happened when we are sending e-mails to the subscribers of our
announcement list which accounts to about 20,000 addresses using Ezmlm.

On the bright side, after the system roboots, it gets back to work and
finishes the job. 
 
It is the third time this happens to me in the past month I could sure
use any kind of help.  

I have checked the archives but the only mention to a similar problem I
could find was from 1996! And the conclusion appears to be a hardware
error!

http://www.ornl.gov/its/archives/mailing-lists/qmail/1996/12/msg01526.html

Thanks in advance,

Wozz,

What was your final conclusion on an error similar to this?
Just ignore if you don't even remember...

Thanks again,
 
Daniel

The logs:

BAD TRAP: type=7 rp=f09e6b8c addr=0 mmu_fsr=0 rw=0
qmail-remote: Memory address alignment
pid=8804, pc=0xfc1bd930, sp=0xf09e6bd8, psr=0x48000c6, context=0
g1-g7: 6, 0, f007655c, 60, fd00ba60, 1, fcb806e0
Begin traceback... sp = f09e6bd8
Called from fc048e70, fp=f09e6c38,
args=fcd7e270 fc468a80 fc468ac8 fc046eac 0 fc468ac9
Called from f0068b58, fp=f09e6c98, args=fcd7e270 fc468a80 fcf02ef8 10001
fc468ac8 fcf9f060
Called from f00c0eb0, fp=f09e6cf8, args=fcd7edb8 83 fd0e2908 0 fc226c78
fc468a80
Called from f00b7de4, fp=f09e6d58, args=fcd7edb8 1 83 fc53cba8 fffffffe
fcd7ee10
Called from fc074c68, fp=f09e6dd0, args=a fcd7e78e fcf02f08 fcd7edb8
fcd7e754 fcf02f44
Called from fc075afc, fp=f09e6e30, args=fc3b0794 83 fc53cba8 4 fc3b0c5c
a81d32
Called from f008a190, fp=f09e6e90, args=fc3b0794 83 fc3b0ccc fc3b0cd4
fc3b0ccc fc53cba8
Called from f00765c8, fp=f09e6ef0, args=fc53fa90 f09e6f50 28ae0 3828ab3e
1c fc3b0794
Called from f0076aa0, fp=f09e6f58, args=3 1 91 3c f00ddc10 fd00ba60
Called from 1123c, fp=effffe68, args=0 2838c effffee0 26848 0 0
End traceback...
panic: Memory address alignment
syncing file systems... 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 5 done
 6935 static and sysmap kernel pages
   60 dynamic kernel data pages
  326 kernel-pageable pages
    0 segkmap kernel pages
    0 segvn kernel pages
  230 current user process pages
 7551 total pages (7551 chunks) dumping to vp fc212d0c, offset 71808
panic: asynchronous memory fault: MFSR=81002040 MFAR=5e79280


                                    ----------------------------------
 Daniel Mattos                        Tribeca Internet Initiatives Inc.
 [EMAIL PROTECTED]                                   http://www.tiii.com
-----------------








On Tue, 16 Nov 1999, Daniel Mattos wrote:

> 
> Dear qmail gurus,
> 
> I am experiencing this very scary crash every once in a while in my system
> and I have no idea on what it could be. All I know is that it always
> happened when we are sending e-mails to the subscribers of our
> announcement list which accounts to about 20,000 addresses using Ezmlm.
> 
> On the bright side, after the system roboots, it gets back to work and
> finishes the job. 

If a nonprivileged process can crash your entire OS, you have bigger
problems than just having a flaky mail server.

> It is the third time this happens to me in the past month I could sure
> use any kind of help.  
> 
> I have checked the archives but the only mention to a similar problem I
> could find was from 1996! And the conclusion appears to be a hardware
> error!

I'll buy that.  This is very plausible.  When you push the load that high
up, it's entirely possible that some flaky chip is going to barf all over
the place, causing all sorts of trouble.

If you have a maintenance or a support contract with Sun, send them the
crash dump, and ask them what it means.

--
Sam





Hello Qmail community,

   I have some architecture questions:

1) qmail_smtpd send (via pipe) to qmail_queue in the following
      order:

     - email message

     - "F" (from string)

     - list if "T" (To) strings

     Is this true??  (In qmail_queue.main, I see where it is checking
               "syntax" for "F" and "T".)

2) I am looking at Pictures/PIC.rem2local. It describes flow from
      qmail_smtpd -> qmail_queue -> .... qmail-local.

   - It says that qmail_send checks domain, e.g. heaven.af.mil.
       Where is this in the code??

   - It says in qmail-lspawn that we check whether "joe" has an
        acoount. Again where is this check???


Regards,

Vasili N Galchin


______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com




:      - list if "T" (To) strings

"T" prefixes each recipient address, be there one or many.  This is
also described in the qmail-queue man page.

: 2) I am looking at Pictures/PIC.rem2local. It describes flow from
:       qmail_smtpd -> qmail_queue -> .... qmail-local.

:    - It says that qmail_send checks domain, e.g. heaven.af.mil.
:        Where is this in the code??

qmail-send.c, line 143, constmap maplocals

:    - It says in qmail-lspawn that we check whether "joe" has an
:         acoount. Again where is this check???

qmail-lspawn.c, line 189, nughde_get() (name, uid, gid, home, dash,
extension).

-harold





On Mon, Nov 15, 1999 at 11:35:06AM +1300, Jason Haar wrote:
> On Sun, Nov 14, 1999 at 08:35:18PM +0000, Florian G. Pflug wrote:
> > Well, 10MB Message for 15 Users makes 150MB vs. 16MB Ram + 50 MB Swap makes
> > 64MB. So if qmail tried to deliver all the messages simultaniously, it will
> > run into trouble, and could make the machine *seem* to be crashed, while it
> 
> ??? Are you sure? Are you saying that Qmail has to deal with every message
> been loaded into memory first? 
was kind of worst-case-scenariao - don´t know enough about qmail internals,
but I guess it just copies that message around - which essentially means,
that 1 byte/megabyte/... ist read, than 1 byte/megabyte/... is written - no
matter if this happens on userspace or os level.

> I hope not... More likely it just does I/O when needed. Chances are this is
> a hardware problem of some description. 10Mb mail to 15 users is absolutely
> nothing Linux or Qmail or even IDE harddisks should be having problems with. 
Well - still there are 150MB to be transfered... and with 16MB, after
loading linux & some daemons, you don´t have too much memory left, probably
meaning that data has to be copied in smaller chunks, thus making _more_
load.

And again - IDE-Transfers take up a lot of cpu-time on older motherbords
(with no DMA for IDA) - e.g. my notebook used to just stop for some seconds,
when I did a lot of IO (using dd...).

Greetings, Florian Pflug




OK,

I have qmail-pop3d set up in inetd.conf (as per LWQ, pg 40, thanks, 
D.S.!!), and I installed checkpassword, but when I try to check my 
mail via POP3, I still get an error:

-ERR Authorization failed

I have disabled shaddow passwords, but still have MD5 passwords 
enabled on my system (RH Linux 6.1/intel, all the latest qmail 
components).  SMTP seems to work fine for incoming mail.

/var/log/qmail/qmail-pop3d  is empty...where do authentication errors 
get logged?

What are the proper privs for ~/Maildir/ ?

Thanks all..

------------------------------------------------------------------
I have been working on a one-honkin-big-bash-script that installs 
qmail (and apache and wu-ftpd) for a multi-domain server on top of RH 
Linux, with all the .tar.gz files on one floppy.  If anyone is 
curious or interested....





Hi again!
I just started to use qmail's virtual domains feature and wanted to know
why an email I send to a virt dom user doesn't arrive where I intended it.

I have this entry on my virtualdomains file:

test@<virtdomain>:ecj

ecj is my username so I understand that if I send mails to
test@<virtdomain>, they will fall on my mailbox. It doesn't. I already
added virtdomain on my rcpthosts file.

Do I have to restart qmail and add an instruction for it to read virtual
domains? Do I also have to add a .qmail-??? on my homedir?

I also read somewhere that a file called 'users' can also be used when
using virtual domains. Where can I find docs on this?

Thanks once again for any help and more power!


Regards,

Edward Castillo Jakosalem






you may use the link below for a really well done how-to. you will 
find handling of virt. domains, userasignments etc. here. yes, it is 
for pop3 user setup, but IMHO the principals are well described here 
too. but be carefull with the users/assign file. put the '-' for ext 
(6th field) into the record if you want to do nice things with 
.qmail-xy as was discussed here not long ago.

http://www.tibus.net/pgregg/projects/qmail/single-uid-howto.txt

btw: as far as i know, you have to put only the domain-part into the 
virtualdomains file and not the name-part. like myvirt.org:userhere . 
and don't forget to SIGHUP qmail-send.

greetings 
Alexander
-- 
Alexander Jernejcic, E-Mail: [EMAIL PROTECTED]
IntelliNet EDV-Dienstleistungsges.m.b.H., Mariahilferstraße 103, 1060 
Wien
Tel.: 595 23 88, Fax: 595 23 90

>>>>>>>>>>>>>>>>>> Ursprüngliche Nachricht <<<<<<<<<<<<<<<<<<

Am 11/17/99, 9:24:52 AM, schrieb Edward Castillo-Jakosalem 
<[EMAIL PROTECTED]> zum Thema virtual domains...:


> Hi again!
> I just started to use qmail's virtual domains feature and wanted to 
know
> why an email I send to a virt dom user doesn't arrive where I intended 
it.

> I have this entry on my virtualdomains file:

> test@<virtdomain>:ecj

> ecj is my username so I understand that if I send mails to
> test@<virtdomain>, they will fall on my mailbox. It doesn't. I already
> added virtdomain on my rcpthosts file.

> Do I have to restart qmail and add an instruction for it to read 
virtual
> domains? Do I also have to add a .qmail-??? on my homedir?

> I also read somewhere that a file called 'users' can also be used when
> using virtual domains. Where can I find docs on this?

> Thanks once again for any help and more power!


> Regards,

> Edward Castillo Jakosalem







Hi All !

It seems that the ETRN command is not implemented in Qmail. How can I force the 
dequeing of messages for a domain ?

Regards,

Antonio Navarro Navarro
BemarNet Management
[EMAIL PROTECTED]
http://www.bemarnet.es




What should be the uid/gid of dot-forward?  It installs as root/root but I 
am wondering if this is correct?
Andy
-- 
        +====== Andy ====== TiK: garbaglio ======+
        |    Linux is about freedom of choice    |
        +== http://www.xmission.com/~bradipo/ ===+






According to Pedro Melo:
> 
> big mail systems have two classic archs:
>  - single (or multiple) nfs store with multiple frontends: in this case all the
>    frontends view all the mailboxes, and the client can use any one to access
>    his mail. the botleneck here (assuming bandwith is no problem nor is horse
>    power) is the cdb/database to store the user info. It get's big. Ldap is the
>    solutiong here. So, Netapps (two with the mirroring option), gigabit
>    interconnnection with jumbo frames, alteons to loadbalence the frontends,
>    and ldap to store the user info (use several ldap boxes and loadbalance them
>    with alteon gear also) should get you to 1m users no probs.

Since you have described pretty much exactly my configuration here,
have anyone tried to run Solaris's CACHFS in conjunction with the
NetApps filers which are used to store the user's $MAILDIR files to
increase NFS cache performance.

I would like to know if there are any gotcha's.
Thanks

--curtis




On Mon, Nov 15, 1999 at 01:54:32PM +0100, Nagy Balazs wrote:

Hi,

Thank you for having a look at my problem.

> > >  The only record in the internet DNS
> > > zone have to be an MX record for your autoturn server.
> > Could you kindly give an example
 
> It seems the problem is solved now:
> ;; ANSWER SECTION:
> col7.metta.lk.                17h46m59s IN MX  10 metta.lk.
> col7.metta.lk.                16h53m38s IN NS  server1.tradenetsl.lk.
> col7.metta.lk.                16h53m38s IN NS  dhamma.metta.lk.

I still get messages returned but not the error cannot route to sender 
I think I gave the below error also.
I cannot understand what I should do to correct this.

I thank you for your help
Jacob

---------------------------------------------------------
Hi. This is the qmail-send program at metta.lk.
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]>:
Connected to 194.138.37.40 but sender was rejected.
Remote host said: 501 <[EMAIL PROTECTED]>... Sender domain must exist

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


Return-Path: <[EMAIL PROTECTED]>
Received: (qmail 16316 invoked from network); 17 Nov 1999 01:52:25 -0000
Received: from col7.metta.lk (HELO metta.lk) ([EMAIL PROTECTED])
  by dhamma.metta.lk with SMTP; 17 Nov 1999 01:52:25 -0000
Received: (qmail 5562 invoked by uid 523); 17 Nov 1999 01:14:13 -0000
Date: Wed, 17 Nov 1999 07:14:13 +0600
From: [EMAIL PROTECTED]
To: Rainer Klier <[EMAIL PROTECTED]>
Subject: Re: Docu ?
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.95.4us
In-Reply-To: <[EMAIL PROTECTED]>; from Rainer Klier on Tue, Nov
16,
+1999 at 10:15:45AM +0100

On Tue, Nov 16, 1999 at 10:15:45AM +0100, Rainer Klier wrote:

Hi there ...





-----------------------------------------------------------




Hello,

I want to deliver some messages locally and some other messages for the
same domain should be directed to another mail server without changing
the domain-component.

Example:
[EMAIL PROTECTED] should be delivered locally
and
[EMAIL PROTECTED] should be directed to another server

using the workaround with |forward "$LOCAL"@yourorg" (refer to FAQ 4.1) is
not suiteable, because it changes the domain-component from myorg.com to
yourorg.com.

I found the following working solution:
I insert the following line in ~/alias/.qmail-default
|/var/qmail/bin/qmail-remote "$HOST" "$SENDER" "$RECIPIENT"

Am I running in any trouble using this solution??

Bye Thomas




Reply via email to