qmail Digest 9 Dec 1999 11:00:01 -0000 Issue 844

Topics (messages 34084 through 34125):

Re: Problems receiving mail
        34084 by: Tony Wade

Re: Virtual domains stuff
        34085 by: Adam D . McKenna
        34086 by: Adam D . McKenna
        34121 by: 'Michael Boman'
        34122 by: Markus Stumpf

Selective rejection
        34087 by: Jose G. Dinuncio F.

Re: THANK YOU EVERYONE!!!!!
        34088 by: thomas.erskine-dated-3b62142540175ead.crc.ca
        34094 by: craig.jcb-sc.com
        34096 by: Simon Rae
        34100 by: Julian L.C. Brown
        34119 by: Markus Stumpf

maxrcpt.patch
        34089 by: Jorge Rocha

Re: Attachments]
        34090 by: petervd.vuurwerk.nl
        34091 by: petervd.vuurwerk.nl
        34102 by: Bill Hults

Amavis and Q-Mail
        34092 by: Dustin Miller

Question/Summary of qmail UCE filtering capabilities; "what my perfect MTA does"
        34093 by: Lorens Kockum
        34117 by: Sam

when does qmail-local add the Deliverd-To line?
        34095 by: Markus Wuebben
        34099 by: Jos Backus
        34105 by: Dave Sill

Re: How to get your qmail server into ORBS
        34097 by: petervd.vuurwerk.nl
        34098 by: Dave Sill

can nott telnet to port 25
        34101 by: Ning Wu
        34103 by: Fred Backman
        34107 by: Ning Wu
        34108 by: Dave Sill

Re: Filtering on "MAIL FROM:"
        34104 by: Bruno Wolff III
        34118 by: Markus Stumpf
        34120 by: Sam

Re: secondary mail relay: rcpthosts AND SMTPROUTES
        34106 by: David L. Nicol
        34112 by: David L. Nicol

Re: Sendmail Virtusertable equivalent?
        34109 by: David L. Nicol

Error compiling Qmail on AIX 4.3.2 with GNU gcc v2.95 and GNU mak e v3.74
        34110 by: Shields Michael

tcpserver error
        34111 by: Jennifer Tippens
        34113 by: Vince Vielhaber

Re: qmail-1.03+patches-8.src.rpm
        34114 by: Bruce Guenter

qmail & anti-virus
        34115 by: Carsten Witt

POP3
        34116 by: Chris

How to set up a null server ?
        34123 by: John Grant (Concordant Networks)
        34124 by: Markus Stumpf

delivery 805: deferral: Connected_to_202.54.1.230_but_connection_died._(#4.4.2)/
        34125 by: Thomas Foerster

Administrivia:

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

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

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

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


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


Paul, 

I would suggest using tcpserver. http://cr.yp.to/ucspi-tcp.html


alternativly, ensure that you have the right comment in /etc/inetd.conf

Tony Wade 
The Internet Solution
Tel:    (+27 11) 283 5000
E-mail:      [EMAIL PROTECTED]
#include <std/disclaimer.h>
I wouldn't be so paranoid if you weren't all out to get me !!


> -----Original Message-----
> From: Paul Charsley [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 07, 1999 10:03 PM
> To: 'qmail'
> Subject: Problems receiving mail
> 
> 
> I have installed qmail and can successfully send mail both 
> locally and to
> remote addresses. However, I am unable to receive messages 
> from a remote
> address. I do not use Fetchmail since my linux server is permanently
> connected. When I do the first test in TEST.receive (forge 
> some mail locally
> via SMTP) I get the following:
> 
>  #telnet localhost 25
>  Trying 127.0.0.1...
>  Connected to localhost.
>  Escape character is '^]'.
>  Connection closed by foreign host.
> 
> I have enabled smtp in /etc/inetd.conf and the command 
> "netstat -a |grep
> LISTEN" shows smtp as listening for requests.
> 
> When I send a message from a remote machine it is not 
> received and nothing
> appears in the log file. Is there something I'm missing or is 
> there some
> extra configuration I have to do in order to get smtp to work 
> with qmail.
> 
> Any help will be gratefully received.
> 
> Paul
> 




On Wed, Dec 08, 1999 at 03:55:46PM +0800, 'Michael Boman' wrote:
> On Wed, Dec 08, 1999 at 08:47:53AM +0100, Häffelin Holger wrote:
> > Hi Michael!
> > 
> > > I am still a bit new qmail user and I am wondering how this 
> > > with virtual
> > > domains are working. The this is that the comapany has 2 domain names
> > > (foo.com and foo.bar.com for an example). Can I use the virtual domain
> > > stuff to redirect all mail from foo.bar.com to foo.com ? How is it
> > > done? 
> > You put in your virtualdomains:
> > foo.bar.com:virtualuser
> > foo.com:virtualuser
> > 
> > where virtualuser is a shell user. All the mail for both domains are
> > delivered into virtualuser's homedir. There you can go on with .qmail-files
> > to distribute mail.
> > 
> 
> That is not something I want to do as I have right now 10k users to
> take care of.. (only 70 of them are affected of this, but I like to keep
> things simple and put everything in the mySQL databse.
> 
> What I want to do is to tell qmail that if the domain is foo.bar.com
> change it to foo.com and THEN deliver the mail.

Put the following in virtualdomains:

foo.bar.com:alias-foo

then, in ~alias/.qmail-foo, put:

|forward "$[EMAIL PROTECTED]"

--Adam




On Wed, Dec 08, 1999 at 08:48:10AM -0500, Adam D . McKenna wrote:
> then, in ~alias/.qmail-foo, put:

Sorry, this should be ~alias/.qmail-foo-default

--Adam




On Wed, Dec 08, 1999 at 08:49:55AM -0500, Adam D . McKenna wrote:
> On Wed, Dec 08, 1999 at 08:48:10AM -0500, Adam D . McKenna wrote:
> > then, in ~alias/.qmail-foo, put:
> 
> Sorry, this should be ~alias/.qmail-foo-default
> 
> --Adam

It doesnt work. My files looks like this:

cat /var/qmail/control/virtualdomains
wizoffice.com.sg:alias-wizoffice.com.sg

cat ~alias/.qmail-wizoffice.com.sg-default
|forward "$[EMAIL PROTECTED]"

Please advice

Michael Boman
-- 
W I Z O F F I C E . C O M  -  Your Online Wizard 
16 Tannery Lane, Cristal Time Building, #06-00, Singapore 347778
Ring  : (65) 844 3228 [ext 118]  Fax : (65) 842 7228
email : [EMAIL PROTECTED]    URL : http://www.wizoffice.com




On Thu, Dec 09, 1999 at 09:39:07AM +0800, 'Michael Boman' wrote:
> cat ~alias/.qmail-wizoffice.com.sg-default
> |forward "$[EMAIL PROTECTED]"

$ man 5 dot-qmail
       [ ... ]
       WARNING: For security, qmail-local replaces  any  dots  in
       ext  with  colons  before checking .qmail-ext.  For conve-
       nience, qmail-local converts any uppercase letters in  ext
       to lowercase.
       [ ... ]

So you should probably rename your file to
    .qmail-wizoffice:com:sg-default

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Stress is when you wake
Research & Development    | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | realize you haven't
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  | fallen asleep yet.




I'm developing a filtering script to decide if a (valid) mail should be
accepted by qmail or not. It takes its decision mainly based on the
number of RCPTs (but it could consider other info too).

My questions are:

*) How can I integrate this script whit qmail? I'm thinking in making
the script a wrapper of an element of qmail
*) Where is the best point to place the filter: before qmail-queue,
before qmail-send?

Thanks
JD





On Tue, 7 Dec 1999, Dustin Miller wrote:

> I guess I'm just on a crusade to get people to be a little more
> compassionate and considerate of others.  Whether it's jammering on a
> cellular phone in the middle of a movie, or insulting someone for their
> behavior, there are always situations that really shouldn't come into play.

Like the drunk at the bus stop said about his "revelation from God":

        The world would be a lot better if people weren't such pricks.

I'm *not* saying you're all pricks, but being nice doesn't cost anyone
that much and it does make life more pleasant for everyone.  The guy was
clearly lost and was trying; thanks for helping him.

> That's my ever-so-humble opinion, and I hope that I can affect maybe ONE
> person with this crusade.

Has to start somewhere.

> Dustin
>   _____
> 
> Dustin Miller, President
> WebFusionDevelopmentIncorporated
> 
> 
> -----Original Message-----
> From: Diego A. Puertas F. [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 07, 1999 5:37 PM
> To: Dustin Miller
> Cc: Chris Santerre; Lista: qmail-info
> Subject: RE: THANK YOU EVERYONE!!!!!
> 
> 
> 
> El 07/12/99, Dustin Miller escribió:
> > Why would you say something so mean, and then make sure to include him on
> > the reply.
> > That's not nice!
> > Why can't we all just get along?
> 
> You must be a saint, that guy was a pest! and the nature of the problem
> was ...
> 
> 
> 
> 
> 
> 

-- 
"Life is much too important to be taken seriously."
Thomas Erskine        <[EMAIL PROTECTED]>        (613) 998-2836





>When someone makes a snide, demeaning, or insulting comment, does it truly
>make them feel better?  Does it better the situation?

Rarely.  But, just as you took it upon yourself to tell others, who were
complaining about the guy posting off-topic material to the list, that
*they* were misbehaving, *they* were telling *him* that *he* was misbehaving.

Yes, some of them were too "rude".  But he (and others) can delete and
ignore such mail just as easily as they're expected to do so for mail
from people asking "how can I get off this list".

In a large meeting-room full of earnest people, quietly discussing issues
they consider quite important, it would be considered *very* rude if
someone started repeatedly yelling "I CAN'T FIGURE OUT HOW TO OPERATE THESE
EXIT DOORS SO I CAN LEAVE THE ROOM" because they weren't reading whatever
instructions were available.

Such an individual should, instead, look for one or two particularly
knowledgeable people and quietly ask them for assistance, after having
exhausted the "read the instructions" phase of problem-solving.

In such a case, people in the meeting-room yelling back "STOP ALL THAT
YELLING YOU IDIOT" also would be considered rude, but to some people they'd
at least have some hope of preventing *others* from thinking the meeting
is "fair game" for *any* issue somebody wants to yell about.

Fortunately, off-topic email is easier to ignore than off-topic yelling
in a meeting-room.

However, one of the ways people handle off-topic email is to leave the
forum where it's being permitted.  (I've done so several times.)  Once
it becomes clear that many participants prefer to yell at people for
*complaining* about off-topic mail or other rude behavior over (politely)
indicating that off-topic mail and rude behavior are not welcome, people
who might have been substantial contributors to the forum often decide
on their own to leave.

After all, that, too, is easier to do in email than leaving a meeting-room,
especially one joined by virtue of a substantial investment in the room,
a hotel, travel, etc.

And once enough *contributors* leave a meeting-room or email forum, it
loses its value.

In short, it's become fashionable in some societies (e.g. the USA) to
vociferously complain about "intolerance" and other such behaviors
while studiously ignoring the society-eroding activities that trigger
such behaviors in others.  That fashion has had at least one general effect:
of causing many to no longer risk telling others when they *are*
behaving badly, lest they be upbraided for daring to "judge".

So I don't disagree with you that some of the responses here were rude.
But they were in response to some pretty rude behavior (although, I think
the originator did make a good attempt to redeem himself by posting
useful info on what he found to be the problem, and probably learned
his lesson -- not just how to unsubscribe -- anyway).

        tq vm, (burley)




Fair comment.

However, would it not be an idea to remove Chris from being a recipient on this
thread.

After all, that's what all the fuss was about to begin with :)

Si





Hrmm, that's a fairly lengthy response my qmail compatriot.  Recently I have
seen a lot of these "get me off the list" or "help me because I say so" kind
of messages and quite frankly my fuse ran out so I felt it necessary to say
something perhaps to make myself feel better :) Forgive me, but you must
admit it is becoming a problem!

Julian

> >When someone makes a snide, demeaning, or insulting comment, does it
truly
> >make them feel better?  Does it better the situation?
>
> Rarely.  But, just as you took it upon yourself to tell others, who were
> complaining about the guy posting off-topic material to the list, that
> *they* were misbehaving, *they* were telling *him* that *he* was
misbehaving.
>
> Yes, some of them were too "rude".  But he (and others) can delete and
> ignore such mail just as easily as they're expected to do so for mail
> from people asking "how can I get off this list".
>
> In a large meeting-room full of earnest people, quietly discussing issues
> they consider quite important, it would be considered *very* rude if
> someone started repeatedly yelling "I CAN'T FIGURE OUT HOW TO OPERATE
THESE
> EXIT DOORS SO I CAN LEAVE THE ROOM" because they weren't reading whatever
> instructions were available.
>
> Such an individual should, instead, look for one or two particularly
> knowledgeable people and quietly ask them for assistance, after having
> exhausted the "read the instructions" phase of problem-solving.
>
> In such a case, people in the meeting-room yelling back "STOP ALL THAT
> YELLING YOU IDIOT" also would be considered rude, but to some people
they'd
> at least have some hope of preventing *others* from thinking the meeting
> is "fair game" for *any* issue somebody wants to yell about.
>
> Fortunately, off-topic email is easier to ignore than off-topic yelling
> in a meeting-room.
>
> However, one of the ways people handle off-topic email is to leave the
> forum where it's being permitted.  (I've done so several times.)  Once
> it becomes clear that many participants prefer to yell at people for
> *complaining* about off-topic mail or other rude behavior over (politely)
> indicating that off-topic mail and rude behavior are not welcome, people
> who might have been substantial contributors to the forum often decide
> on their own to leave.
>
> After all, that, too, is easier to do in email than leaving a
meeting-room,
> especially one joined by virtue of a substantial investment in the room,
> a hotel, travel, etc.
>
> And once enough *contributors* leave a meeting-room or email forum, it
> loses its value.
>
> In short, it's become fashionable in some societies (e.g. the USA) to
> vociferously complain about "intolerance" and other such behaviors
> while studiously ignoring the society-eroding activities that trigger
> such behaviors in others.  That fashion has had at least one general
effect:
> of causing many to no longer risk telling others when they *are*
> behaving badly, lest they be upbraided for daring to "judge".
>
> So I don't disagree with you that some of the responses here were rude.
> But they were in response to some pretty rude behavior (although, I think
> the originator did make a good attempt to redeem himself by posting
> useful info on what he found to be the problem, and probably learned
> his lesson -- not just how to unsubscribe -- anyway).
>
>         tq vm, (burley)





And to take this (offtopic) thread even further ...
(Cc:, To: adjusted)

On Wed, Dec 08, 1999 at 11:17:57AM -0500, Julian L.C. Brown wrote:
> of messages and quite frankly my fuse ran out so I felt it necessary to say
> something perhaps to make myself feel better :) Forgive me, but you must
> admit it is becoming a problem!

I think there is also a problem with people not being able to properly handle
their email client and keeping all the 65 quoted lines of a mail, we've
all read just 10 seconds ago.

Can we please stop this thread now?

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Stress is when you wake
Research & Development    | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | realize you haven't
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  | fallen asleep yet.






        Where i can find maxrcpt.patch for qmail 1.03?
        I have look in list history, and i can't find it!


Thanks,
--
Jorge Rocha
[EMAIL PROTECTED]
ICQ#: 2017297
www.pagenet.com.br - Pager 61914





On Mon, Dec 06, 1999 at 06:18:35AM -0500, Bill Hults wrote:
> 
> Hi
> The file doesn't exist.

Then that's not the problem.

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++




On Tue, Dec 07, 1999 at 08:44:32PM -0500, Bill Hults wrote:
> Hi
> I created it & put 2000000 in it. I get UNABLE_TO_WRITE ./Mailbox
> DISK_QUOTA_EXCEEDED.
> Any thoughts anyone.

Ehm... quota?

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++




Hi
I've checked the quota situation since quotas are assigned to most users
but this user is exempt & I just copied a 3 MB file into his directory
locally.

[EMAIL PROTECTED] wrote:

> On Tue, Dec 07, 1999 at 08:44:32PM -0500, Bill Hults wrote:
> > Hi
> > I created it & put 2000000 in it. I get UNABLE_TO_WRITE ./Mailbox
> > DISK_QUOTA_EXCEEDED.
> > Any thoughts anyone.
>
> Ehm... quota?
>
> Greetz, Peter.
> --
> Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder
> |
> | 'C makes it easy to shoot yourself in the foot;
> |  C++ makes it harder, but when you do it blows your whole leg off.'
> |                             Bjarne Stroustrup, Inventor of C++





I know it was being discussed (briefly), but I do not recall a resolution
being made.

How can we get Amavis running under QMail?  I want to screen these incoming
messages for Virii, and I do not believe we reached a consensus on how to do
it.

Anyone else running Amavis?



Dustin Miller, President
WebFusionDevelopmentIncorporated
http://www.wfdevelopment.com





I have a list of things I want from an MTA.  Today, as I see it,
none will do all I want, so I have to compromise.

My question is about the qmail filtering capabilities, I think
I'm up to date on the rest.

What I would want as an MTA would be

- simple configuration for simple cases (I like qmail
  configuration).

Qmail is obviously OK there AFAIAC.

- user-controllable aliases, like in qmail, but optionally in
  procmail format (I think there's a patch somewhere that makes
  qmail do that, but I'm not sure)

I believe Qmail is OK there.

- sendmail-style and qmail-style remote delivery, choice
  triggered by admin configuration, message size, number of
  recipients, or maybe even user invocation style.  Failing
  that, "normal" bandwith-conservative delivery.

Will qmail one day support emitting multiple-RCPT mails?  Just
sorting per domain would be nice, no need to do MX lookups ...

- per-domain, per-user, and per-alias incoming mail filtering on
  remote IP, MAIL FROM, RCPT TO, which would reject before DATA
  (hmmm... size and things like that in an ESMTP session would
  probably be good too, though I wouldn't have the use for it
  myself)

Are there patches for qmail to do this?  Emphasis on per-user
and per-alias ...

- per-domain, per-user, and per-alias incoming mail filtering on
  message DATA, which would reject after the <CRLF>.<CRLF> (Does
  this happen often enough for one to be able to expect X.Random
  MTA to handle it correctly?  There might be a problem in that
  the only permitted error codes are for transaction error and
  storage exceeded, but well. I can uphold that storage space on
  my system is 0 for spam :-))  If multiple RCPT, then reject
  after DATA if all the RCPTs reject in the same way!

Are there patches for qmail to do this?  Emphasis on per-user
and per-alias ...

Are ther other mail servers out there which would do what I
want?

In fact, for incoming mail, I would be happy with:

  a frontend which takes the HELO and MAIL FROM, sets them in
  environment variables along with originating IP, and for each
  RCPT TO opens a pipe to the delivery command.  Said delivery
  command should exit without opening stdin if the origination
  info is not to its liking, putting the reason on stdout.

I realize that there are potentially a lot of problems with
implementing this exactly as stated, that's not what I want.
For example, loops between two servers using this would be
really devastating ... I can think of workarounds to most of the
problems I can think of, though.

But I really want something that acts like this. User config
files that can filter and deny during the original SMTP session,
it would be just marvelous.  A dream?  A pipe dream?

Anyone been thinking of this in qmail?  Anyone been thinking of
this anywhere else?





On 8 Dec 1999, (Lorens Kockum) wrote:

> - per-domain, per-user, and per-alias incoming mail filtering on
>   remote IP, MAIL FROM, RCPT TO, which would reject before DATA
>   (hmmm... size and things like that in an ESMTP session would
>   probably be good too, though I wouldn't have the use for it
>   myself)
> 
> Are there patches for qmail to do this?  Emphasis on per-user
> and per-alias ...
> 
> - per-domain, per-user, and per-alias incoming mail filtering on
>   message DATA, which would reject after the <CRLF>.<CRLF> (Does
>   this happen often enough for one to be able to expect X.Random
>   MTA to handle it correctly?  There might be a problem in that
>   the only permitted error codes are for transaction error and
>   storage exceeded, but well. I can uphold that storage space on
>   my system is 0 for spam :-))  If multiple RCPT, then reject
>   after DATA if all the RCPTs reject in the same way!
> 
> Are there patches for qmail to do this?  Emphasis on per-user
> and per-alias ...

I have an old patch for Qmail 1.03 that does exactly that, however I will
not be updating it for any future revisions of Qmail.  If you'd like to,
you're welcome to take over its maintenance and support, contact me off
the list.

> Are ther other mail servers out there which would do what I
> want?
> 
> In fact, for incoming mail, I would be happy with:
> 
>   a frontend which takes the HELO and MAIL FROM, sets them in
>   environment variables along with originating IP, and for each
>   RCPT TO opens a pipe to the delivery command.  Said delivery
>   command should exit without opening stdin if the origination
>   info is not to its liking, putting the reason on stdout.

<sigh>  Except for the HELO part (which I never considered to be any worth
filtering on), I'm really having a lot of deja-vu here, with flashbacks
going back to 1997...

> Anyone been thinking of this in qmail?

Was.

>                                         Anyone been thinking of
> this anywhere else?

Am.


--
Sam





Hi!
I have a strange problem. 
I am piping so of my mails through a script which does some stuff on the
mails and then safecats the mails into a maildir.

This is how the .qmail-file looks like.
| /usr/local/bin/myScript.pl 

Problem is now that I am missing the Delivered-To line, qmail normally
adds. Why? For success, my script returns 0 and for failure 100.
Not using my script and having qmail-local deliver the mail to a maildir
itself works nicely of course. 

Thanks,




Markus Wuebben
 
* ID-PRO GmbH 
* Tel.: +49 (0) 2932 - 916 - 136  
* Fax: +49 (0) 2932 - 916 - 236 
* mailto:[EMAIL PROTECTED]
* http://open-for-the-better.com





On Wed, Dec 08, 1999 at 04:41:13PM +0100, Markus Wuebben wrote:
> Problem is now that I am missing the Delivered-To line, qmail normally
> adds.

You can add it yourself by prepending $ENV{'DTLINE'} to the safecat input.

-- 
Jos Backus                          _/ _/_/_/  "Reliability means never
                                   _/ _/   _/   having to say you're sorry."
                                  _/ _/_/_/             -- D. J. Bernstein
                             _/  _/ _/    _/
[EMAIL PROTECTED]  _/_/  _/_/_/      use Std::Disclaimer;




[EMAIL PROTECTED] wrote:

>This is how the .qmail-file looks like.
>| /usr/local/bin/myScript.pl 
>
>Problem is now that I am missing the Delivered-To line, qmail normally
>adds. Why?

Because you're delivering to a pipe, not a mailbox. (See "man
qmail-command"). Try doing:

  | preline -f /usr/local/bin/myScript.pl

-Dave




On Sun, Dec 05, 1999 at 08:07:21PM -0500, John R. Levine wrote:
> >   | forward "$LOCAL"@bigbang.af.mil
> 
> > I will think of a better fix in a couple of days, hints are
> > welcome. My first urge was to just have it bounce everything with a
> > % in it,
> 
> First answer: so long as you're not relaying spam, there's no reason
> to worry about being in ORBS since almost nobody uses it.  Alan listed
> me for spite a couple of times, the amount of mail that bounced as a
> result was infinitesimal, two messages out of many thousands, other
> than to my anti-spam fanatic pals on my spamtools list.
> 
> Second answer: tell your friends who run sendmail to fig their config
> to turn off the percent hack, since it's a security hole there whether
> or not the mail is relayed from your host.  The fixes are well known,
> see www.sendmail.org for links.
> 
> Third answer: if your sendmail manager isn't up to the task of
> managing sendmail (most aren't), it's really easy to add a little bit
> to your .qmail to bounce mail with addresses that are likely to
> provoke sendmail bugs:
> 
> (put this on one line, of course)
> 
> | case "$LOCAL" in 
>       '*[%"@]*') bouncesaying 'Go away,' ;;
>        *) forward "$LOCAL"@bigbang.af.mil ;; esac

The pattern matching didn't work with the quotes around it so I removed
those, I also took care of bangpaths (!) and route-addresses (whatever those
may be but somebody hinted me to those). This is what I'm using now:

|case "$LOCAL" in *[%\"@\!:\;]*) bouncesaying 'You are evil. Get Lost(tm).' ;; *) 
|forward "$LOCAL"@haarlem-2000.vuurwerk.nl ;; esac

(Yes that is a long line and yes it's not very decent of me to post in 
long lines but I know so don't flame :)

Greetz, Peter.
-- 
Peter van Dijk - student/sysadmin/ircoper/womanizer/pretending coder 
|  
| 'C makes it easy to shoot yourself in the foot;
|  C++ makes it harder, but when you do it blows your whole leg off.'
|                             Bjarne Stroustrup, Inventor of C++




[EMAIL PROTECTED] wrote:

>|case "$LOCAL" in *[%\"@\!:\;]*) bouncesaying 'You are evil. Get Lost(tm).' ;; *) 
>forward "$LOCAL"@haarlem-2000.vuurwerk.nl ;; esac

Here's what I use:

  |if echo $LOCAL |grep -q "%" ; then \
     echo "percent hack relaying not allowed"; exit 100; fi
  |if echo $LOCAL |grep -q "!" ; then \
     echo "bang path relaying not allowed"; exit 100; fi
  |forward "$LOCAL"@ornl.gov

(lines broken for readability)

-Dave




Hi.

I am a newbie of Mail world. I am trying to install Qmail on my Red Hat
box. I installed qmail and can telnet localhost 25 and everything looks
fine.

But when I try to connect from other host.
$telnet myhost 25
trying 24.12.XX.XX...

It just hangs there. I can't figure out what's wrong. I don't have special
settings of TCP Wrapper.

Thanks.

Ning





Can you reach your Linux host on any other port? If you have access to tools
such as traceroute or ping, try these and see if you can reach your mail host
from the external host. Also try the reverse, e.g. try reaching the external
host from inside the mail host.


Ning Wu wrote:

> Hi.
>
> I am a newbie of Mail world. I am trying to install Qmail on my Red Hat
> box. I installed qmail and can telnet localhost 25 and everything looks
> fine.
>
> But when I try to connect from other host.
> $telnet myhost 25
> trying 24.12.XX.XX...
>
> It just hangs there. I can't figure out what's wrong. I don't have special
> settings of TCP Wrapper.
>
> Thanks.
>
> Ning





All the other ports work normally. FTP, Telnet, etc

Here is my /etc/inetd.conf
ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -L -i
-o
telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
#gopher stream  tcp     nowait  root    /usr/sbin/tcpd  gn
 
# do not uncomment smtp unless you *really* know what you are doing.
# smtp is handled by the sendmail daemon now, not smtpd.  It does NOT
# run from here, it is started at boot time from /etc/rc.d/rc#.d.
smtp    stream  tcp     nowait  qmaild  /var/qmail/bin/tcp-env tcp-env
/var/qmail/bin/qmail-smtpd
#nntp   stream  tcp     nowait  root    /usr/sbin/tcpd  in.nntpd



On Wed, 8 Dec 1999, Fred Backman wrote:

> Can you reach your Linux host on any other port? If you have access to tools
> such as traceroute or ping, try these and see if you can reach your mail host
> from the external host. Also try the reverse, e.g. try reaching the external
> host from inside the mail host.
> 
> 
> Ning Wu wrote:
> 
> > Hi.
> >
> > I am a newbie of Mail world. I am trying to install Qmail on my Red Hat
> > box. I installed qmail and can telnet localhost 25 and everything looks
> > fine.
> >
> > But when I try to connect from other host.
> > $telnet myhost 25
> > trying 24.12.XX.XX...
> >
> > It just hangs there. I can't figure out what's wrong. I don't have special
> > settings of TCP Wrapper.
> >
> > Thanks.
> >
> > Ning
> 
> 





Ning Wu <[EMAIL PROTECTED]> wrote:

>All the other ports work normally. FTP, Telnet, etc
>
>> > But when I try to connect from other host.
>> > $telnet myhost 25
>> > trying 24.12.XX.XX...
>> >
>> > It just hangs there. I can't figure out what's wrong. I don't have special
>> > settings of TCP Wrapper.

You're probably behind a firewall that block port 25. Check with your
network managers.

-Dave




On Tue, Dec 07, 1999 at 11:59:19PM +0100,
  Stefaan A Eeckels <[EMAIL PROTECTED]> wrote:
> 
> I've got a colleague who claims that many ISPs (he lives in
> Canada, so probably Canadian ISPs) refuse mail based on the
> MAIL FROM: command. To me, that seems inane and futile, but
> as I'm not an ISP, and don't work for one either, I'm 
> solliciting the views of people in the know. 

I think the theory is that (by rejecting mail with unresolvable names)
spammers will be forced to use real domains and the domains belonging
to spammers can be blocked, and spammers that use other people's domains
can get sued.

While there have been some successful suits, using domains belonging to
others is still popular.

Another problem is that some places have started blocking messages with
empty envelope sender addresses, because some spammers use them to get
past the domain blocking.




On Wed, Dec 08, 1999 at 11:02:16AM -0600, Bruno Wolff III wrote:
> Another problem is that some places have started blocking messages with
> empty envelope sender addresses, because some spammers use them to get
> past the domain blocking.

Yeah, but one must be really a stupid sysadmin to do this.
Bounce messages have empty envelope sender addresses and with blocking
bounce messages the senders will never know that they had e.g. a typo
in the recipients address and that the email never reached its
destination.

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Stress is when you wake
Research & Development    | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | realize you haven't
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  | fallen asleep yet.




Markus Stumpf writes:

> On Wed, Dec 08, 1999 at 11:02:16AM -0600, Bruno Wolff III wrote:
> > Another problem is that some places have started blocking messages with
> > empty envelope sender addresses, because some spammers use them to get
> > past the domain blocking.
> 
> Yeah, but one must be really a stupid sysadmin to do this.

Right.  So, what else is new.



-- 
Sam





Steve Vertigan wrote:
> 
> if it was really a lower priority why did the error
> message begin "I am listed as the *primary mx* for this host"?

Because there's a bug in the way the determination of "primary MX"
is made.  I have not looked at the source code of how the determination
is made.


$ dig mx umkc.edu

; <<>> DiG 2.2 <<>> mx umkc.edu 
...
;; ANSWERS:
umkc.edu.       86400   MX      5 email.exchange.umkc.edu.
umkc.edu.       86400   MX      20 umx.missouri.edu.
umkc.edu.       86400   MX      200 134.193.4.60.


I suppose that now someone is going to try and tell me that 200 < 5 ?


______________________________________________________________
                      David Nicol 816.235.1187 [EMAIL PROTECTED]




"Timothy L. Mayo" wrote:

> > domain.tld.       86400   MX      200 nnn.nn.nn.nnn
>                                         ^^^^^^^^^^^^^
>                                         This is your problem.
> 
> An MX record may ONLY point to a A record machine name.  Fix your DNS and
> I can guarantee that the rcpthosts-only entry will work.

Hmm.  having readjusted the dns to serve a name instead of a number
on a test domain, it does not appear to bounce.  I am not
removing my smtproutes entries, to reduce dns load, and to prevent
messages getting forwarded around between multiple secondaries.

I would like to see qmail-remote.c adjusted to account for this
particular flavor of misconfiguration, which is clear enough to
enough MTAs to cause the machine at nnn.nn.nn.nnn to receive
plenty of e-mails, yet which causes qmail-remote.c to mistakenly
determine that the local machine is the best-choice server for
a domain, in release 2.0.




Peter Gradwell wrote:

> [1] Which is why, if your mail server is the best MX preference host


How does qmail make this determination?  Does it get the preference
fields from the dns and choose the lowest one, or does it rely on
a system call? qmail-remote.c refers to subroutined defined in dns.c,
but the comments are sparse




I'm a newbie @ compiling and don't know where to begin fixing this.
I'm not even sure this is the correct list to post to, apologies if not!
Any help greatly appreciated!

(When I tried using IBM's make & cc I got different errors)
The error reads:
#.....
#./compile auto-str.c
#auto-str.c: In function `main':
#auto-str.c:15: warning: return type of `main' is not `int'
#./load auto-str substdio.a error.a str.a
#ld: 0711-317 ERROR: Undefined symbol: .__main
#ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
#make: *** [auto-str] Error 8

When I use the -bnoquiet option this is the result:

#$ /qmail-1.03> ./load  auto-str substdio.a error.a str.a  -bnoquiet
#(ld): halt 4
#(ld): setopt strip
#(ld): savename auto-str
#(ld): filelist 6 1
#(ld): i /lib/crt0.o
#(ld): i auto-str.o
#(ld): i substdio.a
#(ld): i error.a
#(ld): i str.a
#(ld): lib /usr/lib/libc.a
#LIBRARY: Shared object libc.a[shr.o]: 2138 symbols imported.
#LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
#LIBRARY: Shared object libc.a[aio.o]: 10 symbols imported.
#LIBRARY: Shared object libc.a[pse.o]: 78 symbols imported.
#LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
#FILELIST: Number of previously inserted files processed: 6
#(ld): resolve
#RESOLVE: 48 of 2755 symbols were kept.
#(ld): addgl /usr/lib/glink.o
#ADDGL: Glink code added for 4 symbols.
#(ld): er full
#ld: 0711-318 ERROR: Undefined symbols were found.
#        The following symbols are in error:
# Symbol                    Inpndx  TY CL Source-File(Object-File) OR
Import-File{Shared-object}
#                              RLD: Address  Section  Rld-type Referencing
Symbol
#
----------------------------------------------------------------------------
------------------
# .__main                   [20]    ER PR auto-str.c(auto-str.o)
#                                   0000007c .text    R_RBR    [28]    .main
#ER: The return code is 8.


Here's the complete output:

$ /qmail-1.03> make setup check
( cat warn-auto.sh; \
echo CC=\'`head -1 conf-cc`\'; \
echo LD=\'`head -1 conf-ld`\' \
) > auto-ccld.sh
cat auto-ccld.sh make-load.sh > make-load
chmod 755 make-load
cat auto-ccld.sh find-systype.sh > find-systype
chmod 755 find-systype
./find-systype > systype
( cat warn-auto.sh; ./make-load "`cat systype`" ) > load
chmod 755 load
cat auto-ccld.sh make-compile.sh > make-compile
chmod 755 make-compile
( cat warn-auto.sh; ./make-compile "`cat systype`" ) > \
compile
chmod 755 compile
( ( ./compile tryvfork.c && ./load tryvfork ) >/dev/null \
2>&1 \
&& cat fork.h2 || cat fork.h1 ) > fork.h
rm -f tryvfork.o tryvfork
./compile qmail-local.c
qmail-local.c: In function `main':
qmail-local.c:448: warning: return type of `main' is not `int'
./compile qmail.c
./compile quote.c
./compile now.c
now.c: In function `now':
now.c:7: warning: passing arg 1 of `time' from incompatible pointer type
./compile gfrom.c
./compile myctime.c
./compile slurpclose.c
cat auto-ccld.sh make-makelib.sh > make-makelib
chmod 755 make-makelib
( cat warn-auto.sh; ./make-makelib "`cat systype`" ) > \
makelib
chmod 755 makelib
./compile case_diffb.c
./compile case_diffs.c
./compile case_lowerb.c
./compile case_lowers.c
./compile case_starts.c
./makelib case.a case_diffb.o case_diffs.o case_lowerb.o \
case_lowers.o case_starts.o
./compile getln.c
./compile getln2.c
./makelib getln.a getln.o getln2.o
./compile subgetopt.c
./compile sgetopt.c
./makelib getopt.a subgetopt.o sgetopt.o
./compile sig_alarm.c
( ( ./compile trysgprm.c && ./load trysgprm ) >/dev/null \
2>&1 \
&& echo \#define HASSIGPROCMASK 1 || exit 0 ) > hassgprm.h
rm -f trysgprm.o trysgprm
./compile sig_block.c
( ( ./compile trysgact.c && ./load trysgact ) >/dev/null \
2>&1 \
&& echo \#define HASSIGACTION 1 || exit 0 ) > hassgact.h
rm -f trysgact.o trysgact
./compile sig_catch.c
./compile sig_pause.c
./compile sig_pipe.c
./compile sig_child.c
./compile sig_hup.c
./compile sig_term.c
./compile sig_bug.c
./compile sig_misc.c
./makelib sig.a sig_alarm.o sig_block.o sig_catch.o \
sig_pause.o sig_pipe.o sig_child.o sig_hup.o sig_term.o \
sig_bug.o sig_misc.o
./compile open_append.c
./compile open_excl.c
./compile open_read.c
./compile open_trunc.c
./compile open_write.c
./makelib open.a open_append.o open_excl.o open_read.o \
open_trunc.o open_write.o
./compile seek_cur.c
./compile seek_end.c
./compile seek_set.c
./compile seek_trunc.c
./makelib seek.a seek_cur.o seek_end.o seek_set.o \
seek_trunc.o
( ( ./compile tryflock.c && ./load tryflock ) >/dev/null \
2>&1 \
&& echo \#define HASFLOCK 1 || exit 0 ) > hasflock.h
rm -f tryflock.o tryflock
./compile lock_ex.c
./compile lock_exnb.c
./compile lock_un.c
./makelib lock.a lock_ex.o lock_exnb.o lock_un.o
./compile fd_copy.c
./compile fd_move.c
./makelib fd.a fd_copy.o fd_move.o
( ( ./compile trywaitp.c && ./load trywaitp ) >/dev/null \
2>&1 \
&& echo \#define HASWAITPID 1 || exit 0 ) > haswaitp.h
rm -f trywaitp.o trywaitp
./compile wait_pid.c
./compile wait_nohang.c
./makelib wait.a wait_pid.o wait_nohang.o
./compile env.c
./compile envread.c
./makelib env.a env.o envread.o
./compile stralloc_eady.c
./compile stralloc_pend.c
./compile stralloc_copy.c
./compile stralloc_opys.c
./compile stralloc_opyb.c
./compile stralloc_cat.c
./compile stralloc_cats.c
./compile stralloc_catb.c
./compile stralloc_arts.c
./makelib stralloc.a stralloc_eady.o stralloc_pend.o \
stralloc_copy.o stralloc_opys.o stralloc_opyb.o \
stralloc_cat.o stralloc_cats.o stralloc_catb.o \
stralloc_arts.o
./compile alloc.c
./compile alloc_re.c
./makelib alloc.a alloc.o alloc_re.o
./compile strerr_sys.c
./compile strerr_die.c
./makelib strerr.a strerr_sys.o strerr_die.o
./compile substdio.c
./compile substdi.c
./compile substdo.c
./compile subfderr.c
./compile subfdout.c
./compile subfdouts.c
./compile subfdin.c
./compile subfdins.c
./compile substdio_copy.c
./makelib substdio.a substdio.o substdi.o substdo.o \
subfderr.o subfdout.o subfdouts.o subfdin.o subfdins.o \
substdio_copy.o
./compile error.c
./compile error_str.c
./compile error_temp.c
./makelib error.a error.o error_str.o error_temp.o
./compile str_len.c
./compile str_diff.c
./compile str_diffn.c
./compile str_cpy.c
./compile str_chr.c
./compile str_rchr.c
./compile str_start.c
./compile byte_chr.c
./compile byte_rchr.c
./compile byte_diff.c
./compile byte_copy.c
./compile byte_cr.c
./compile byte_zero.c
./makelib str.a str_len.o str_diff.o str_diffn.o str_cpy.o \
str_chr.o str_rchr.o str_start.o byte_chr.o byte_rchr.o \
byte_diff.o byte_copy.o byte_cr.o byte_zero.o
./compile fmt_str.c
./compile fmt_strn.c
./compile fmt_uint.c
./compile fmt_uint0.c
./compile fmt_ulong.c
./compile scan_ulong.c
./compile scan_8long.c
./makelib fs.a fmt_str.o fmt_strn.o fmt_uint.o fmt_uint0.o \
fmt_ulong.o scan_ulong.o scan_8long.o
./compile datetime.c
./compile datetime_un.c
./makelib datetime.a datetime.o datetime_un.o
./compile auto-str.c
auto-str.c: In function `main':
auto-str.c:15: warning: return type of `main' is not `int'
./load auto-str substdio.a error.a str.a
ld: 0711-317 ERROR: Undefined symbol: .__main
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
make: *** [auto-str] Error 8

$ /qmail-1.03> ./load  auto-str substdio.a error.a str.a  -bnoquiet
(ld): halt 4
(ld): setopt strip
(ld): savename auto-str
(ld): filelist 6 1
(ld): i /lib/crt0.o
(ld): i auto-str.o
(ld): i substdio.a
(ld): i error.a
(ld): i str.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libc.a[shr.o]: 2138 symbols imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols imported.
LIBRARY: Shared object libc.a[aio.o]: 10 symbols imported.
LIBRARY: Shared object libc.a[pse.o]: 78 symbols imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols imported.
FILELIST: Number of previously inserted files processed: 6
(ld): resolve
RESOLVE: 48 of 2755 symbols were kept.
(ld): addgl /usr/lib/glink.o
ADDGL: Glink code added for 4 symbols.
(ld): er full
ld: 0711-318 ERROR: Undefined symbols were found.
        The following symbols are in error:
 Symbol                    Inpndx  TY CL Source-File(Object-File) OR
Import-File{Shared-object}
                              RLD: Address  Section  Rld-type Referencing
Symbol
 
----------------------------------------------------------------------------
------------------
 .__main                   [20]    ER PR auto-str.c(auto-str.o)
                                   0000007c .text    R_RBR    [28]    .main
ER: The return code is 8.





Hi List!
I have configured something incorrectly.  I just can't figure out where.

I tried to test my installation by sending a message locally and it did
not work.
In var/log/qmail/smtpd/current I get the following repeating error:
biglongnumber tcpserver: fatal: unable to figure out IP address for 2108

What I can figure out is that the number 2108 is the nofiles GID.

The qmail-related entries in /etc/group is:
qmail:x:2107:
nofiles:x:2108:

and in /etc/passwd:
alias :x:7790:2108::/var/qmail/alias:/bin/true
qmaild :x:7791:2108::/var/qmail:/bin/true
qmaill :x:7792:2108::/var/qmail:/bin/true
qmailp :x:7793:2108::/var/qmail:/bin/true
qmailq :x:7794:2107::/var/qmail:/bin/true
qmailr :x:7794:2107::/var/qmail:/bin/true
qmails :x:7794:2107::/var/qmail:/bin/true

Does anyone have any ideas as to why this is happening?
Thank you so much for your time.

-Jennifer






On 08-Dec-99 Jennifer Tippens wrote:
> Hi List!
> I have configured something incorrectly.  I just can't figure out where.
> 
> I tried to test my installation by sending a message locally and it did
> not work.
> In var/log/qmail/smtpd/current I get the following repeating error:
> biglongnumber tcpserver: fatal: unable to figure out IP address for 2108
> 
> What I can figure out is that the number 2108 is the nofiles GID.
> 
> The qmail-related entries in /etc/group is:
> qmail:x:2107:
> nofiles:x:2108:
> 
> and in /etc/passwd:
> alias :x:7790:2108::/var/qmail/alias:/bin/true
> qmaild :x:7791:2108::/var/qmail:/bin/true
> qmaill :x:7792:2108::/var/qmail:/bin/true
> qmailp :x:7793:2108::/var/qmail:/bin/true
> qmailq :x:7794:2107::/var/qmail:/bin/true
> qmailr :x:7794:2107::/var/qmail:/bin/true
> qmails :x:7794:2107::/var/qmail:/bin/true
> 
> Does anyone have any ideas as to why this is happening?
> Thank you so much for your time.
> 
> -Jennifer
> 

Look at the line you use to invoke tcpserver.  You probably missed the -g
before the 2108.  If not, post the line you used.

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 Thu, Dec 02, 1999 at 09:31:32AM +0100, Hans Sandsdalen wrote:
> when I run "rpm --rebuild qmail-1.03+patches-8.src.rpm"
> the process stops with:
> 
> + PATH=/sbin:/usr/sbin:/bin:/usr/bin
> /var/tmp/rpm-tmp.99992: line 168: syntax error: unexpected end of file
> Bad exit status from /var/tmp/rpm-tmp.99992 (%install)

I have just put release 10 of the above SRPM onto my web site at:
        http://em.ca/~bruceg/qmail+patches/
It fixes this syntax error along with adding integration with the new
daemontools package.
-- 
Bruce Guenter <[EMAIL PROTECTED]>                       http://em.ca/~bruceg/




Hello there,

Have anybody any virus-scanner with qmail installed. 
Like amavis on linux ?

I must know how to installed it on my system.

CU
     Carsten






Hello fellow qmail users,

I'm new to qmail and need a bit of help, i have access to a system
with qmail/vpopmail and i would like to create several pop3 accounts
for mydomain.com. does anyone have a set of step by step(e.g.
1,2,3,4...) command list to do this, i'm ok with technical stuff but i
prefer non technical/jargon help.

the users i'm trying to create are joe1 and joe2.

Please, Please Help and thanks for any help in advance.


Best regards,
 Chris                            mailto:[EMAIL PROTECTED]






I need to build a server that receives all email for a domain and forwards it all
to another mail server.

If I put:

relay_me.com:relay_server.some_other_domain.com

in smtproutes, is that all I need ? I need to receive all mail destined for 
relay_me.com and just foward it along...



---

                                      John 




On Wed, Dec 08, 1999 at 06:17:39PM -0800, John Grant (Concordant Networks) wrote:
> I need to build a server that receives all email for a domain and forwards it all
> to another mail server.
> 
> relay_me.com:relay_server.some_other_domain.com
> in smtproutes, is that all I need ?

That should do it.
Don't forget to add "relay_me.com" to your rcpthosts file.

If you also want "host.relay_me.com" handled add

.relay_me.com:relay_server.some_other_domain.com        to smtproutes and
.relay_me.com                                           to rcpthosts, too

        \Maex

-- 
SpaceNet GmbH             |   http://www.Space.Net/   | Stress is when you wake
Research & Development    | mailto:[EMAIL PROTECTED] | up screaming and you
Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0    | realize you haven't
D-80807 Muenchen          |  Fax: +49 (89) 32356-299  | fallen asleep yet.




Hi there,

qmail complains :
delivery 805: deferral: Connected_to_202.54.1.230_but_connection_died._(#4.4.2)/

But when i try to connect there via telnet on port 25, everything works fine ..
What can i do ?


Sometimes, qmail says :
deferral: Sorry,_I_wasn't_able_to_establish_an_SMTP_connection._(#4.4.1)/

But telnetting on port 25 works (from the same machine) ... i don't know what this
could be.

Thanks for your help !

Thomas



Reply via email to