qmail Digest 14 Oct 2000 10:00:01 -0000 Issue 1153

Topics (messages 50524 through 50594):

RELAYCLIENT Problems - SOLVED
        50524 by: Leonard Tulipan

Relaying test on abuse.net postive!?
        50525 by: Leonard Tulipan
        50529 by: Martin Jespersen
        50530 by: Thomas Arnold
        50557 by: Aaron L. Meehan

Unknown user forward and some other questions?
        50526 by: Deon Bredenhann
        50533 by: Petr Novotny

ralayclient and specific domain
        50527 by: Mauro Tablo'
        50534 by: Leonard Tulipan

web - autoresponder
        50528 by: Martin Kos
        50531 by: Olivier M.
        50532 by: Martin Kos

Using qmail with other MTA
        50535 by: Sebastian Paul Avarvarei
        50553 by: Brian Reichert

tcpserver
        50536 by: cliffc.zero.innerx.net
        50537 by: Leonard Tulipan
        50538 by: cliffc.zero.innerx.net
        50547 by: cliffc.zero.innerx.net
        50550 by: Frank Tegtmeyer
        50551 by: Timothy L. Mayo

statistics
        50539 by: Austad, Jay
        50540 by: Robin S. Socha
        50541 by: Andy Abshagen
        50542 by: Peter Green
        50545 by: Austad, Jay
        50548 by: Peter Green
        50549 by: Robin S. Socha
        50552 by: Scott D. Yelich

plusdomain
        50543 by: Chris Moore
        50544 by: Greg Owen
        50546 by: Justin Bell

qmail-mrtg HELP plz
        50554 by: Alex Khanin
        50555 by: Robin S. Socha
        50574 by: Tony Publiski
        50585 by: Chris Scheller
        50586 by: Tony Publiski

Problems sending Mail
        50556 by: Oliver Stosberg

Re: qmail and procmail
        50558 by: Chris Thorman

A bug or am I being daft?
        50559 by: Ben Cody Houston
        50560 by: Kai MacTane
        50561 by: Peter Samuel
        50562 by: Austad, Jay
        50563 by: Greg Owen
        50566 by: Chris Garrigues
        50567 by: Dave Sill
        50568 by: Timothy L. Mayo

Re: virtuser for locals?
        50564 by: Dave Sill

Re: Problem with qmail 1.03
        50565 by: Dave Sill

MTA and \r\n problems
        50569 by: Rich Feather
        50571 by: Chris Johnson
        50573 by: Austad, Jay

vpopmail support for qmail-local
        50570 by: Ondrej Sury

Re: 'Bot qmail [2]
        50572 by: MaD dUCK

that domain isn't in my list of allowed rcpthosts
        50575 by: Robert Eric Pearse
        50576 by: MaD dUCK
        50578 by: Ronny Haryanto
        50581 by: Robert Eric Pearse

multilog (not working)
        50577 by: Alex Khanin
        50579 by: Ihnen, David
        50580 by: Brett Randall

qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
        50582 by: Robert Eric Pearse
        50583 by: Robert Eric Pearse
        50584 by: Robert Eric Pearse

Bogus MAIL FROM (SPAM)
        50587 by: Aaron Newcomb
        50588 by: Tony Publiski
        50589 by: Aaron Newcomb
        50591 by: Andy Bradford
        50592 by: Adam McKenna

Checkpassword / Plaintext
        50590 by: Mike  A. Sauvain

Re: [suse-security] XXX a suggestion
        50593 by: MaD dUCK

[suse-security] qmail read this.
        50594 by: MaD dUCK

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]


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



So here's my little story.

I have to relay mail from our MS Exchange Server to the qmail-server (This
server also beeing the firewall).
I did setup everything with tcp-env according to point 5.4 in the FAQ

But this doesn't work (at least not with my RedHat Linux)
The RELAYCLIENT variable just doesn't get set.
Martin Jespersen was a great help in finding the problem.

My simple solution:

Use tcpserver.

This was actually a no-brainer. Now (nearly) everything works fine.

So, why not update this in the FAQ?

instead of using tcp-env I now have a /etc/tcp.smtp file in which I have the
IP-adresses of the servers who are allowed to relay.

I wrote a little startup-script for tcpserver and that was it.
I already moved one other service from inetd to tcpserver.
I'll probably shutdown my xinetd alltogether.

Ciao
Leo





So, after my hassle with RELAYCLIENT, and us beeing used as a spam relay, I
tested the new setup with
http://www.abuse.net/relay.html

Now the thing ist, that relay test number six still goes thru. Is this some
issue? Did I do something wrong?

citing abuse.net:

Relay test 6

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<spamtest@[193.154.31.82]>
<<< 250 ok
>>> RCPT TO:<relaytest%abuse.net@[193.154.31.82]>
<<< 250 ok

Relay test result
Hmmn, at first glance, host appeared to accept a message for relay.
end cite

Any help/info appreciated
Leo




don't worry about test nr. 6, it is testing a known weakness in old
sendmail versions that qmail is not subject to (sendmail would treat %
as a special sign).

The reason why it appears to fail is that qmail interprets the RCPT
address correctly and thus the mail is for a localy controled domain,
for which relaying is allowed :)

If you are in doubt see the output of the test i did below.

Ofcause the server accepts the RCPT since it is for localhost (the
message might bounce though, but that is another issue :)

/Martin

------------------------------------SNIP--------------------------------
Connecting to mother.mbj.dk for anonymous test ...

<<< 220 Lets send some mail :) ESMTP
>>> HELO www.abuse.net
<<< 250 Lets send some mail :)

Relay test 1

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<[EMAIL PROTECTED]>
<<< 250 ok
>>> RCPT TO:<[EMAIL PROTECTED]>
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts
(#5.7.1)

Relay test 2

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<spamtest>
<<< 250 ok
>>> RCPT TO:<[EMAIL PROTECTED]>
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts
(#5.7.1)

Relay test 3

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<>
<<< 250 ok
>>> RCPT TO:<[EMAIL PROTECTED]>
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts
(#5.7.1)

Relay test 4

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<[EMAIL PROTECTED]>
<<< 250 ok
>>> RCPT TO:<[EMAIL PROTECTED]>
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts
(#5.7.1)

Relay test 5

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<spamtest@[195.215.112.237]>
<<< 250 ok
>>> RCPT TO:<[EMAIL PROTECTED]>
<<< 553 sorry, that domain isn't in my list of allowed rcpthosts
(#5.7.1)

Relay test 6

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<[EMAIL PROTECTED]>
<<< 250 ok
>>> RCPT TO:<[EMAIL PROTECTED]>
<<< 250 ok
------------------------------------SNIP--------------------------------


Leonard Tulipan wrote:
> 
> So, after my hassle with RELAYCLIENT, and us beeing used as a spam relay, I
> tested the new setup with
> http://www.abuse.net/relay.html
> 
> Now the thing ist, that relay test number six still goes thru. Is this some
> issue? Did I do something wrong?
> 
> citing abuse.net:
> 
> Relay test 6
> 
> >>> RSET
> <<< 250 flushed
> >>> MAIL FROM:<spamtest@[193.154.31.82]>
> <<< 250 ok
> >>> RCPT TO:<relaytest%abuse.net@[193.154.31.82]>
> <<< 250 ok
> 
> Relay test result
> Hmmn, at first glance, host appeared to accept a message for relay.
> end cite
> 
> Any help/info appreciated
> Leo




No this is not an issue. Qmail bounces the mail later but the check quits
because qmail doesnt send an error to it. ORBS for example checks the whole
thing (if the mail bounces or not)

Mit freundlichen Gr�ssen

Thomas Arnold
Chief Management Application Services


          #              Ihre Xmedia Agentur:            #
          #          http://www.alea-active.com          #
 
      alea active GmbH            |         fon: 06201 - 90 20 4-0
      Hauptstr. 97-99             |         fax: 06201 - 90 20 4-17
      69 469 Weinheim             |    Leonardo: 06201 - 90 20 4-27
      mail: [EMAIL PROTECTED]  |  Fritz-Data: 06201 - 90 20 4-26
      =============================================================

-----Urspr�ngliche Nachricht-----
Von: Leonard Tulipan [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 13. Oktober 2000 12:47
An: '[EMAIL PROTECTED]'
Betreff: Relaying test on abuse.net postive!?



So, after my hassle with RELAYCLIENT, and us beeing used as a spam relay, I
tested the new setup with
http://www.abuse.net/relay.html

Now the thing ist, that relay test number six still goes thru. Is this some
issue? Did I do something wrong?

citing abuse.net:

Relay test 6

>>> RSET
<<< 250 flushed
>>> MAIL FROM:<spamtest@[193.154.31.82]>
<<< 250 ok
>>> RCPT TO:<relaytest%abuse.net@[193.154.31.82]>
<<< 250 ok

Relay test result
Hmmn, at first glance, host appeared to accept a message for relay.
end cite

Any help/info appreciated
Leo




Quoting Leonard Tulipan ([EMAIL PROTECTED]):
> Now the thing ist, that relay test number six still goes thru. Is this some
> issue? Did I do something wrong?

Yes, you did.  You failed to read the web page, especially the bold
blinking text.

Aaron

-----------------
THIS MAY OR MAY NOT MEAN THAT IT'S AN OPEN RELAY.

Some systems appear to accept relay mail, but then reject messages internally rather 
than delivering them, but you cannot tell at this point whether the
message will be relayed or not.

If it is really an open relay, the test message will be delivered to you. If you do 
not receive the test message in your e-mail in the next few hours, it IS
NOT an open relay.




Hi there Brainiacs

I'm going up the walls on this side.

I want to send all mail with an unknown user in qmail to another server wich
can have the email account.

According to the qmail FAQ.
put  | forward "$[EMAIL PROTECTED]"  into .qmail-default

so I tried | forward "$[EMAIL PROTECTED]"

I send mail to [EMAIL PROTECTED]
now there is two mail servers mail.domain.com(10.10.10.10) and
pop.domain.com (pop is primary MX)
When I try it, qmail tries to forward the mail to

@4000000039e6da613109e6d4 delivery 9: failure:
10.10.10.10_does_not_like_reci
pient./Remote_host_said:_550_unknown_user_<[EMAIL PROTECTED]
>/Giving_up_on_10.10.10.10./

Why is it trying to forward to [EMAIL PROTECTED] and not
[EMAIL PROTECTED]

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

Next question

Figured this one out. :)

Thanx a mil

Deon Bredenhann
Network Manager
CompuScan Information Technologies
http://www.compuscan.co.za





-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 13 Oct 2000, at 13:22, Deon Bredenhann wrote:

> According to the qmail FAQ.
> put  | forward "$[EMAIL PROTECTED]"  into .qmail-default

That's fine for locals, not for virtual domains.

> so I tried | forward "$[EMAIL PROTECTED]"
[snip]
> Why is it trying to forward to [EMAIL PROTECTED] and not
> [EMAIL PROTECTED]

Because $LOCAL is domain-user, obviously :-) Try
|forward "$DEFAULT"@mail.domain.com


-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.2 -- QDPGP 2.61a
Comment: http://community.wow.net/grt/qdpgp.html

iQA/AwUBOeblN1MwP8g7qbw/EQI7IwCdF4dBV/DKeaZl4lojSuZZ61j7DnAAn2fd
6rUSGkEXnF+oajW4LvHwcmlu
=HusR
-----END PGP SIGNATURE-----
--
Petr Novotny, ANTEK CS
[EMAIL PROTECTED]
http://www.antek.cz
PGP key ID: 0x3BA9BC3F
-- Don't you know there ain't no devil there's just God when he's drunk.
                                                             [Tom Waits]




How can i tell to to qmail to allow relay only from "mydomain.it",
regardless ip address?
I put "mydomain.it" in rcpthosts, but I think the rule

mydomain.it:allow,RELAYCLIENT=""

in tcp.smtp file isn't correct.






Well, i don't know about that. I use the IP adresses of our hosts (there are
just two).

Have you "compiled" /etc/tcp.smtp with tcprules?
have you given option -x/etc/tcp.smtp.cdb to your tcpserver startup?

Ciao
Leo

> -----Original Message-----
> From: Mauro Tablo' [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 1:14 PM
> To:   [EMAIL PROTECTED]
> Subject:      ralayclient and specific domain
> 
> How can i tell to to qmail to allow relay only from "mydomain.it",
> regardless ip address?
> I put "mydomain.it" in rcpthosts, but I think the rule
> 
> mydomain.it:allow,RELAYCLIENT=""
> 
> in tcp.smtp file isn't correct.
> 




hi

is there a good web-solution, so that every mail-user can set his
autoresponder himself ? thanks for help.

greets
 Martin

-- 
 http://www.kos.li/     [EMAIL PROTECTED]      +41-76-384-93-33
   ICQ# 13556143
                          Say NO to HTML in mail and news
  Proudly running Debian GNU/Linux. See http://www.debian.org/





On Fri, Oct 13, 2000 at 01:14:23PM +0200, Martin Kos wrote:
> hi
> is there a good web-solution, so that every mail-user can set his
> autoresponder himself ? thanks for help.

for qmail only, I don't know, but if you are using vmailmgr,
you can try omail-admin at http://omail.omnis.ch .

Regards,
Olivier
-- 
_________________________________________________________________
 Olivier Mueller - [EMAIL PROTECTED] - PGPkeyID: 0E84D2EA - Switzerland





> is there a good web-solution, so that every mail-user can set his
> autoresponder himself ? thanks for help.
    
and i'm using qmail with vpopmail.

-- 
 http://www.kos.li/     [EMAIL PROTECTED]      +41-76-384-93-33
   ICQ# 13556143
                          Say NO to HTML in mail and news
  Proudly running Debian GNU/Linux. See http://www.debian.org/ 





Hello everyone!

I am trying to find ways to use qmail with another MTA (part of a groupware package 
called Teamware Office) on the same machine (RH 6.2). One solution I found is to use 
delivery through SMTP (smtproutes to a secondary SMTP port etc.). Works perfect, but 
it's not exactly what I'm looking for.

Second method is to make qmail-local "pipe" the e-mail to the other MTA's receiver 
program, achieved by putting in ../control/.qmail-default:
| /usr/bin/torecvm -f$SENDER -r$RECEIPT.
(Of course, more specific rules than .qmail-default can be implemented, but this is 
just for testing).

The problem with this method are the delivery reports. Since qmail-local can pipe the 
message ok, it reports succesfull delivery to the sender, even if the recipient is not 
defined in the other MTA. 

My question: is there other approach, beside qmail-local, in dealing with other MTAs 
running on the same machine? Any suggestion, links to relevant documents etc. are 
greatly appreciated.

Thank you.


Best regards,
Sebastian Paul Avarvarei
E-mail: [EMAIL PROTECTED]






On Fri, Oct 13, 2000 at 04:00:00PM +0200, Sebastian Paul Avarvarei wrote:
> Hello everyone!
> 
> I am trying to find ways to use qmail with another MTA (part of a groupware package 
>called Teamware Office) on the same machine (RH 6.2). One solution I found is to use 
>delivery through SMTP (smtproutes to a secondary SMTP port etc.). Works perfect, but 
>it's not exactly what I'm looking for.

I'm confused: why are you trying to blend two MTAs?  It's easy
enough to say, use qmail for incoming and local deliveries, and
use sendmail for outgoing mail...

> Thank you.
> 
> 
> Best regards,
> Sebastian Paul Avarvarei
> E-mail: [EMAIL PROTECTED]

-- 
Brian 'you Bastard' Reichert            <[EMAIL PROTECTED]>
37 Crystal Ave. #303                    Daytime number: (603) 434-6842
Derry NH 03038-1713 USA                 Intel architecture: the left-hand path




Hello,
        Forgive me for such a stupid question, I have been having problems
with tcpserver NOT denying IP address.  I have only entered a few IP
classes into the tcp.smtp file, I have updated it using tcprules, and I
also have '-x tcp.smtp.cdb' flagged in the startup of smptd.  Yet is still
does not deny any type of IP address.  Has anyone else experienced this
problem, I have tried everything I can think of to resolve this
problem.  I have reinstalled tcpserver. remove and recreated the .cdb
file, anyone have any tips that would help?

Best Regards,
Cliff Cole





If you want tcpserver to only allow some hosts, you would do something like
this 
(Look at http://cr.yp.to/ucspi-tcp/tcprules.html for more info)

192.168.0.xxx:allow
192.168.0.yyy:allow
:deny

this has to be "compiled" by tcprules of course.

Ciao
Leo

> -----Original Message-----
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 11:49 AM
> To:   [EMAIL PROTECTED]
> Subject:      tcpserver
> 
> Hello,
>       Forgive me for such a stupid question, I have been having problems
> with tcpserver NOT denying IP address.  I have only entered a few IP
> classes into the tcp.smtp file, I have updated it using tcprules, and I
> also have '-x tcp.smtp.cdb' flagged in the startup of smptd.  Yet is still
> does not deny any type of IP address.  Has anyone else experienced this
> problem, I have tried everything I can think of to resolve this
> problem.  I have reinstalled tcpserver. remove and recreated the .cdb
> file, anyone have any tips that would help?
> 
> Best Regards,
> Cliff Cole




Hey,
        That configuration appears to work!  I was using the string for
the tcp.smtp.  '12.34.56.78:allow,RELAYCLIENT=""' I must have not got a
clear explaination for the flag RELAYCLIENT.  Thanks for your help!

Cliff

On Fri, 13 Oct 2000, Leonard Tulipan wrote:

> If you want tcpserver to only allow some hosts, you would do something like
> this 
> (Look at http://cr.yp.to/ucspi-tcp/tcprules.html for more info)
> 
> 192.168.0.xxx:allow
> 192.168.0.yyy:allow
> :deny
> 
> this has to be "compiled" by tcprules of course.
> 
> Ciao
> Leo
> 
> > -----Original Message-----
> > From:       [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:       Friday, October 13, 2000 11:49 AM
> > To: [EMAIL PROTECTED]
> > Subject:    tcpserver
> > 
> > Hello,
> >     Forgive me for such a stupid question, I have been having problems
> > with tcpserver NOT denying IP address.  I have only entered a few IP
> > classes into the tcp.smtp file, I have updated it using tcprules, and I
> > also have '-x tcp.smtp.cdb' flagged in the startup of smptd.  Yet is still
> > does not deny any type of IP address.  Has anyone else experienced this
> > problem, I have tried everything I can think of to resolve this
> > problem.  I have reinstalled tcpserver. remove and recreated the .cdb
> > file, anyone have any tips that would help?
> > 
> > Best Regards,
> > Cliff Cole
> 





Hello again,
        After some testing, it appears that adding the ':deny' string it
will deny EVERYTHING comming into port 25 even othe MTA's.  I removed
:deny and it now allows ALL IP's to relay from my server. Any other
suggestion I may try?

Thanks,
Cliff  

On Fri, 13 Oct 2000, Leonard Tulipan wrote:

> If you want tcpserver to only allow some hosts, you would do something like
> this 
> (Look at http://cr.yp.to/ucspi-tcp/tcprules.html for more info)
> 
> 192.168.0.xxx:allow
> 192.168.0.yyy:allow
> :deny
> 
> this has to be "compiled" by tcprules of course.
> 
> Ciao
> Leo
> 
> > -----Original Message-----
> > From:       [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > Sent:       Friday, October 13, 2000 11:49 AM
> > To: [EMAIL PROTECTED]
> > Subject:    tcpserver
> > 
> > Hello,
> >     Forgive me for such a stupid question, I have been having problems
> > with tcpserver NOT denying IP address.  I have only entered a few IP
> > classes into the tcp.smtp file, I have updated it using tcprules, and I
> > also have '-x tcp.smtp.cdb' flagged in the startup of smptd.  Yet is still
> > does not deny any type of IP address.  Has anyone else experienced this
> > problem, I have tried everything I can think of to resolve this
> > problem.  I have reinstalled tcpserver. remove and recreated the .cdb
> > file, anyone have any tips that would help?
> > 
> > Best Regards,
> > Cliff Cole
> 






>       After some testing, it appears that adding the ':deny' string it
> will deny EVERYTHING comming into port 25 even othe MTA's.  I removed
> :deny and it now allows ALL IP's to relay from my server. Any other

Try :allow

Frank




You are missing the /var/qmail/control/rcpthosts file.  That file MUST be
present and should contain the domains listed in locals and virtualdomains
as well as any domains for which you are acting as a secondary MX.

Then you will need to set RELAYCLIENT="" for all IPs which you wish to
allow relaying for.

This is covered in the FAQ that came with qmail as well as at
www.qmail.org and Dave Sill's excellent 'Life With qmail".

On Fri, 13 Oct 2000, Cliff Cole wrote:

> Hello again,
>       After some testing, it appears that adding the ':deny' string it
> will deny EVERYTHING comming into port 25 even othe MTA's.  I removed
> :deny and it now allows ALL IP's to relay from my server. Any other
> suggestion I may try?
> 
> Thanks,
> Cliff  
> 
> On Fri, 13 Oct 2000, Leonard Tulipan wrote:
> 
> > If you want tcpserver to only allow some hosts, you would do something like
> > this 
> > (Look at http://cr.yp.to/ucspi-tcp/tcprules.html for more info)
> > 
> > 192.168.0.xxx:allow
> > 192.168.0.yyy:allow
> > :deny
> > 
> > this has to be "compiled" by tcprules of course.
> > 
> > Ciao
> > Leo
> > 
> > > -----Original Message-----
> > > From:     [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> > > Sent:     Friday, October 13, 2000 11:49 AM
> > > To:       [EMAIL PROTECTED]
> > > Subject:  tcpserver
> > > 
> > > Hello,
> > >   Forgive me for such a stupid question, I have been having problems
> > > with tcpserver NOT denying IP address.  I have only entered a few IP
> > > classes into the tcp.smtp file, I have updated it using tcprules, and I
> > > also have '-x tcp.smtp.cdb' flagged in the startup of smptd.  Yet is still
> > > does not deny any type of IP address.  Has anyone else experienced this
> > > problem, I have tried everything I can think of to resolve this
> > > problem.  I have reinstalled tcpserver. remove and recreated the .cdb
> > > file, anyone have any tips that would help?
> > > 
> > > Best Regards,
> > > Cliff Cole
> > 
> 
> 

---------------------------------
Timothy L. Mayo                         mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.      http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810-8888 Phone
(412) 810-8886 Fax





Does anyone know of any log analyzers for qmail?  I need stats on how many
messages are going out, how many of those are bouncing, speed, and whatever
else I can find.

What about something that would offer real-time stats, like number of
concurrent connections, messages waiting in queue, current sending rate,
etc.?



---------- 
Jay Austad 
Network Administrator 
CBS Marketwatch 
612.817.1271 
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  
http://cbs.marketwatch.com 
http://www.bigcharts.com 





* Austad, Jay <[EMAIL PROTECTED]> [001013 10:36]:
> Does anyone know of any log analyzers for qmail?  I need stats on how many
> messages are going out, how many of those are bouncing, speed, and whatever
> else I can find.

qmailanalog and the mrtg packages for qmail. Remember, kids, Security is
Not My Problem if you're working with mrtg...

> What about something that would offer real-time stats, like number of
> concurrent connections, messages waiting in queue, current sending rate,
> etc.?

mrtg does nearly that. It's very, very neat.




Where are the MRTG pieces for qmail?  Also is there any SNMP options for qmail?

Thanks
Andy

-----Original Message-----
From: Robin S. Socha [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 9:59 AM
To: '[EMAIL PROTECTED]'
Subject: Re: statistics


* Austad, Jay <[EMAIL PROTECTED]> [001013 10:36]:
> Does anyone know of any log analyzers for qmail?  I need stats on how many
> messages are going out, how many of those are bouncing, speed, and whatever
> else I can find.

qmailanalog and the mrtg packages for qmail. Remember, kids, Security is
Not My Problem if you're working with mrtg...

> What about something that would offer real-time stats, like number of
> concurrent connections, messages waiting in queue, current sending rate,
> etc.?

mrtg does nearly that. It's very, very neat.





also sprach andy:
> Where are the MRTG pieces for qmail?

What Does The Archive Say(TM)? (See <http://www-archive.ornl.gov:8000/>.
Search on qmail-mrtg.)

(Hint: http://www.prodigysolutions.com/qmail-mrtg.1.0.tar.gz :)

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
/*
 * [...] Note that 120 sec is defined in the protocol as the maximum
 * possible RTT.  I guess we'll have to use something other than TCP
 * to talk to the University of Mars.
 * PAWS allows us longer timeouts and large windows, so once implemented
 * ftp to mars will work nicely.
 */
(from /usr/src/linux/net/inet/tcp.c, concerning RTT [round trip time])





Hrm, I grabbed qmail analog, I piped one of my logfiles through tai64nfrac
and into zoverall, and I get 0 for completed requests and total delivery
attempts.  If I put it through any other program that came with qmail
analog, I get no output.  Any idea why this would happen?  

tai64nfrac works just fine too.

Jay

-----Original Message-----
From: Peter Green [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 10:15 AM
To: Andy Abshagen
Cc: Qmail Mailing List
Subject: Re: statistics


also sprach andy:
> Where are the MRTG pieces for qmail?

What Does The Archive Say(TM)? (See <http://www-archive.ornl.gov:8000/>.
Search on qmail-mrtg.)

(Hint: http://www.prodigysolutions.com/qmail-mrtg.1.0.tar.gz :)

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
/*
 * [...] Note that 120 sec is defined in the protocol as the maximum
 * possible RTT.  I guess we'll have to use something other than TCP
 * to talk to the University of Mars.
 * PAWS allows us longer timeouts and large windows, so once implemented
 * ftp to mars will work nicely.
 */
(from /usr/src/linux/net/inet/tcp.c, concerning RTT [round trip time])




also sprach austad:
> Hrm, I grabbed qmail analog, I piped one of my logfiles through tai64nfrac
> and into zoverall, and I get 0 for completed requests and total delivery
> attempts.  If I put it through any other program that came with qmail
> analog, I get no output.  Any idea why this would happen?  

You haven't read the qmailanalog documentation. You need to pipe it through
matchup before any of the z* scripts. i.e.,

  tai64nfrac < /var/log/qmail/current | matchup | zoverall

/pg
-- 
Peter Green : Gospel Communications Network, SysAdmin : [EMAIL PROTECTED]
---
"...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
the Ugly)."
(By Matt Welsh)





* Austad, Jay <[EMAIL PROTECTED]> [001013 11:33]:
> Hrm, I grabbed qmail analog, I piped one of my logfiles through tai64nfrac
> and into zoverall, and I get 0 for completed requests and total delivery
> attempts.  If I put it through any other program that came with qmail
> analog, I get no output.  Any idea why this would happen?  

Because you're stupid? But that's just one reason, Jay, so there's still
hope. Anyway:

(root@purgatory):(~)# matchup < /var/log/qmail/current | zoverall

works fine with:

(root@purgatory):(~)# cat /service/qmail/run
#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./Maildir/ /usr/local/bin/multilog t /var/log/qmail qmail

Besides that, *PLEASE* fix your quoting.
-- 
Robin S. Socha <http://socha.net/>
Cc: me and I'll kill -9 you




On Fri, 13 Oct 2000, Robin S. Socha wrote:
> Because you're stupid? But that's just one reason, Jay, so there's still
> hope. Anyway:

man I love this list...

Scott
ps: cc:








Can anyone tell me what the 'plusdomain' control file is used for?
Can't find anything in the docs...thanks.




> Can anyone tell me what the 'plusdomain' control file is used for?
> Can't find anything in the docs...thanks.

        For any control file, read 'man qmail-control,' which has a table
listing which man page describes which control file.  All control files have
an entry like the following from 'man qmail-inject:'

       plusdomain
            Plus  domain name.  Default: me, if that is supplied;
            otherwise the literal name plusdomain, which is prob�
            ably  not what you want.  qmail-inject adds this name
            to any host name that ends with a plus sign,  includ�
            ing defaulthost if defaulthost ends with a plus sign.
            If a host name does not have dots  but  ends  with  a
            plus sign, qmail-inject uses plusdomain, not default�
            domain.

            The QMAILPLUSDOMAIN  environment  variable  overrides
            plusdomain.

-- 
        gowen -- Greg Owen -- [EMAIL PROTECTED]
 

 




On Fri, Oct 13, 2000 at 11:23:06AM -0400, Chris Moore wrote:
# Can anyone tell me what the 'plusdomain' control file is used for?
# Can't find anything in the docs...thanks.

man qmail-control
-- 
Justin Bell




did anyone here get qmail-mrtg to work? if so PLEASE, let me know.
i cannot get it to work, i get results full of 0's. thank you!

[ http://x42.com/qmail/mrtg ]

--
alex khanin, sysadmin -- relationalMail
205 hudson st, 7th floor, ny, ny 10013
e: [EMAIL PROTECTED] v: 646.613.2074






* Alex Khanin <[EMAIL PROTECTED]> [001013 12:27]:
> did anyone here get qmail-mrtg to work? if so PLEASE, let me know.
> i cannot get it to work, i get results full of 0's. thank you!

Did you check the mailing list archives? Some kind people solved the
problem for me 3 weeks ago.




I have looked all through the archives and I still have the same problems
with it others have.  It always come back with 0's across the board.  I must
be doing something wrong, but I used the route the INSTALL file of
qmail-mrtg.1.0...

--
Tony Publiski
World Wide Net, Inc.
+1 (734) 513-7707 x 2012 

-----Original Message-----
From: Robin S. Socha [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 12:43 PM
To: [EMAIL PROTECTED]
Subject: Re: qmail-mrtg HELP plz


* Alex Khanin <[EMAIL PROTECTED]> [001013 12:27]:
> did anyone here get qmail-mrtg to work? if so PLEASE, let me know.
> i cannot get it to work, i get results full of 0's. thank you!

Did you check the mailing list archives? Some kind people solved the
problem for me 3 weeks ago.




Are you using multilog? and did you edit the qmail.mrtg.cfg to reflect
where your log files live?

Chris Scheller
Network One Internet, inc.
http://www.networkone.net/
System/Network Administration
1-888-GOT-NET1





Title: RE: RE: qmail-mrtg HELP plz

I am using multilog.  What I actually ended up finding out the problem was was that the qmail.mrtg.cfg file wasn't piping the data from current through tai64nlocal before sending it to mrtg, and qmail-mrtg was seg faulting when it was run without tai64nlocal.  When I changed that part of the cfg file, it started working perfectly.  Thanks!

Tony

-----Original Message-----
From: Chris Scheller [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 8:15 PM
To: Tony Publiski
Cc: 'Robin S. Socha'; '[EMAIL PROTECTED]'
Subject: Re: RE: qmail-mrtg HELP plz


Are you using multilog? and did you edit the qmail.mrtg.cfg to reflect
where your log files live?

Chris Scheller
Network One Internet, inc.
http://www.networkone.net/
System/Network Administration
1-888-GOT-NET1





Hi,

i'm using qmail 1.03 with tcpserver 0.88 and i have problems with some
clients (mostly Windows/Outlook) sending mail through the qmail-MTA,
which is very slow on those client machines, but there are also
clients (the majority) with the same configuration, which operates
about 6-7 times faster.

I'm using the following tcpserver setup for qmail-smtpd:

(ulimit -d 5120 -m 2048 && /usr/local/bin/tcpserver -v -c20 -x
/home/vpopmail/etc/tcp.smtp.cdb -u 1001 -g 101 0 smtp
/var/qmail/bin/qmail-smtpd) 

i have also tried the -H and -R tcpserver options to disable dns/ident
lookups, but that did not solve the problem. The vpopmail uses the
roaming feature appending new pop3-authenticated relay ip's to
tcp.smtp.cdb

Qmail runs on a Debian GNU/Linux 2.2 system with kernel 2.2.17

Thanks for your help,

Oliver
-- 
Oliver Stosberg * [EMAIL PROTECTED] * Fon: +49 5251 930328






Hi Johan,

I stumbled onto this thread because of your earlier message in which you heartily 
recommended using qmail-queue, procmail -m, and spambouncer.

I didn't see any replies to this message.  Did you end up resolving the procmail log 
file problem?  

In light of that problem, do you still recommend this approach to spam-tagging?

(I've been trying to decide whether to go back to rblsmtpd alone, or to go for the 
kinder, gentler approach of tagging suspected spam rather than rejecting it.  I was 
all set to start using your recommended setup until I read your later message about 
it.)

-c


At 12:56 PM +0200 9/17/00, Johan Almqvist wrote:
>Hi!
>
>I've hade quite some success using qmail and procmail together,
>especially using spambouncer (http://www.spambouncer.org/),
>and, even more, |bouncesaying formail -D 8000 .foo.msgid.file
>[That's really neat...]
>
>However, my procmail logs are filled to the level of unusability
>with the following lines:
>
>procmail: Extraneous deliver-head flag ignored
>
>How can I make them go away (and go back to tail -f .procmail-log
>for biff)?
>
>-Johan
>-- 
>Johan Almqvist

At 12:45 AM +0200 7/26/00, Johan Almqvist wrote:
>On Tue, Jul 25, 2000 at 05:27:28PM -0400, Michael T. Babcock wrote:
>> I would like to offer an option similar to pobox.com's [spam: 84%]
>> "Subject:" munging for incoming messages from RBL or RSS listed sites.
>> Instead of actually bouncing the message as RBLSMTPD does, allow the
>> message but add [spam - rbl] or [spam - rss] or the like to the Subject:
>> field of the messages in question.
>> 
>> I'm wondering if anyone else has done this before I go making a
>> completely modified version of rblsmtpd to do so.
>
>I think the way to go is SpamBouncer (http://www.spambouncer.org/),
>procmail -m and the qmail-queue patch (Let spambouncer look at all
>incoming messages.) rblsmtpd basically runs INSTEAD of smtpd, and denies
>accepting the message.
>
>Okay, s/the way/one way/.
>
>-Johan
>-- 
>Johan Almqvist

------------------------------------------------------------------------
Chris Thorman                                       (413) 473-0853 e-fax
------------------------------------------------------------------------




Basically, I'm trying to deliver mail to:

[EMAIL PROTECTED]

so, I have an ~alias/.qmail-Bob:Hanson file... but it won't work. It will work 
if it's ~alias/.qmail-bob:hanson - should either one work?

-ben

-------------------------------------------------
This mail sent through IMP: mail.whitman.edu




At 10/13/00 10:47 AM , Ben Cody Houston wrote:
>Basically, I'm trying to deliver mail to:
>
>[EMAIL PROTECTED]
>
>so, I have an ~alias/.qmail-Bob:Hanson file... but it won't work. It will 
>work if it's ~alias/.qmail-bob:hanson - should either one work?

No, only the latter one should work. See 
http://cr.yp.to/qmail/faq/incominguser.html#alias-dots. As it says, "Dots 
are converted to colons, and uppercase is converted to lowercase."

                                                 --Kai MacTane
----------------------------------------------------------------------
"Uh-oh... Gravity works."
                                                 --Batty Koda, "Ferngully"
                                                   (Hey, bats are gothic.)





On Fri, 13 Oct 2000, Ben Cody Houston wrote:

> Basically, I'm trying to deliver mail to:
> 
> [EMAIL PROTECTED]
> 
> so, I have an ~alias/.qmail-Bob:Hanson file... but it won't work. It will work 
> if it's ~alias/.qmail-bob:hanson - should either one work?
> 
> -ben

You're begin daft :)

qmail-local will convert extensions to lowercase. From the dot-qmail
man page:

    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.

Therefore, qmail-local is looking for .qmail-bob:hanson rather than
.qmail-Bob:Hanson or even .qmail-BoB:hAnSoN etc.

-- 
Regards
Peter
----------
Peter Samuel                            [EMAIL PROTECTED]
http://www.e-smith.org (development)    http://www.e-smith.com (corporate)
Phone: +1 613 368 4398                  Fax: +1 613 564 7739
e-smith, inc. 1500-150 Metcalfe St, Ottawa, ON K2P 1P1 Canada

"If you kill all your unhappy customers, you'll only have happy ones left"





Doesn't the case change violate RFC821 or 822?  I seem to remember reading
that case in the user portion of the email address should never be changed
because the accounts "Bob" and "bob" are two completely different accounts
on a unix machine.

Jay

-----Original Message-----
From: Kai MacTane [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 1:07 PM
To: [EMAIL PROTECTED]
Subject: Re: A bug or am I being daft?


At 10/13/00 10:47 AM , Ben Cody Houston wrote:
>Basically, I'm trying to deliver mail to:
>
>[EMAIL PROTECTED]
>
>so, I have an ~alias/.qmail-Bob:Hanson file... but it won't work. It will 
>work if it's ~alias/.qmail-bob:hanson - should either one work?

No, only the latter one should work. See 
http://cr.yp.to/qmail/faq/incominguser.html#alias-dots. As it says, "Dots 
are converted to colons, and uppercase is converted to lowercase."

                                                 --Kai MacTane
----------------------------------------------------------------------
"Uh-oh... Gravity works."
                                                 --Batty Koda, "Ferngully"
                                                   (Hey, bats are gothic.)




> Doesn't the case change violate RFC821 or 822?

        In short, no; they govern the transmission of email between systems,
not the policies of the final delivery step.

        For mind-numbing detail, search the archives.

-- 
        gowen -- Greg Owen -- [EMAIL PROTECTED]
 






> From:  "Austad, Jay" <[EMAIL PROTECTED]>
> Date:  Fri, 13 Oct 2000 13:15:03 -0500
>
> Doesn't the case change violate RFC821 or 822?  I seem to remember reading
> that case in the user portion of the email address should never be changed
> because the accounts "Bob" and "bob" are two completely different accounts
> on a unix machine.

The rfc says not to change it on mail that a host is relaying, but it leaves 
it up the the host to do what's appropriate for local addresses.  It's really 
the only reasonable thing they could have specified in a world where some 
systems have mixed case and some don't.

Whether or not qmail should fold addresses into lower case is debatable, but 
the RFC doesn't give any guidance since it was written to be able to work on 
systems where folding case is a requirement.

Chris

-- 
Chris Garrigues                 http://www.DeepEddy.Com/~cwg/
virCIO                          http://www.virCIO.Com
4314 Avenue C                   
Austin, TX  78751-3709          +1 512 374 0500

  My email address is an experiment in SPAM elimination.  For an
  explanation of what we're doing, see http://www.DeepEddy.Com/tms.html 

    Nobody ever got fired for buying Microsoft,
      but they could get fired for relying on Microsoft.


PGP signature





"Austad, Jay" <[EMAIL PROTECTED]> wrote:

>Doesn't the case change violate RFC821 or 822?

No, neither of those RFC's require a system to use case sensitive
addresses locally.

-Dave




No.  The final system is allowed to do whatever it wants with case.  The
case preservation is only required if the MTA is NOT the final delivery
MTA.  qmail by design is case independent when it is the final delivery
MTA.

On Fri, 13 Oct 2000, Austad, Jay wrote:

> Doesn't the case change violate RFC821 or 822?  I seem to remember reading
> that case in the user portion of the email address should never be changed
> because the accounts "Bob" and "bob" are two completely different accounts
> on a unix machine.
> 
> Jay
> 
> -----Original Message-----
> From: Kai MacTane [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Re: A bug or am I being daft?
> 
> 
> At 10/13/00 10:47 AM , Ben Cody Houston wrote:
> >Basically, I'm trying to deliver mail to:
> >
> >[EMAIL PROTECTED]
> >
> >so, I have an ~alias/.qmail-Bob:Hanson file... but it won't work. It will 
> >work if it's ~alias/.qmail-bob:hanson - should either one work?
> 
> No, only the latter one should work. See 
> http://cr.yp.to/qmail/faq/incominguser.html#alias-dots. As it says, "Dots 
> are converted to colons, and uppercase is converted to lowercase."
> 
>                                                  --Kai MacTane
> ----------------------------------------------------------------------
> "Uh-oh... Gravity works."
>                                                  --Batty Koda, "Ferngully"
>                                                    (Hey, bats are gothic.)
> 

---------------------------------
Timothy L. Mayo                         mailto:[EMAIL PROTECTED]
Senior Systems Administrator
localconnect(sm)
http://www.localconnect.net/

The National Business Network Inc.      http://www.nb.net/
One Monroeville Center, Suite 850
Monroeville, PA  15146
(412) 810-8888 Phone
(412) 810-8886 Fax





"Scott D. Yelich" <[EMAIL PROTECTED]> wrote:

>How does one make a virtual user for an address at a "locals" site?

qmail-users:

  http://Web.InfoAve.Net/~dsill/lwq.html#qmail-users

>I can make them easily for virtusers.  Stupid qmail doens't say
>"which" maildir it can't cd to... so there's very little chance of
>actually using that vague error.

Hey, there's no need to call the software stupid. You'll hurt it's
feelings. And some people say s/w can tell when you don't like...

-Dave




"Michail A.Baikov" <[EMAIL PROTECTED]> wrote:

>How to set this configuration:
>
>I have local user: alex
>
>And all mail (!UNDELIVERING!) to domain.ru send to alex

echo "&alex" >/var/qmail/alias/.qmail-default

-Dave




Okay, I have inherited a legacy Active Server Pages/VB environment that
uses ASPEmail to send HTML email messages to a qmail relay server.  I
keep getting the dreaded LF bounce.  After talking to Persits Software
(the makers of the component), they're convinced that qmail is stripping
the CRLF and replacing it with simply a LF.  My questions are, is this a
reasonable behavior from qmail and, if so, how would I fix it?

Thanks.





On Fri, Oct 13, 2000 at 01:36:08PM -0600, Rich Feather wrote:
> Okay, I have inherited a legacy Active Server Pages/VB environment that
> uses ASPEmail to send HTML email messages to a qmail relay server.  I
> keep getting the dreaded LF bounce.  After talking to Persits Software
> (the makers of the component), they're convinced that qmail is stripping
> the CRLF and replacing it with simply a LF.  My questions are, is this a
> reasonable behavior from qmail and, if so, how would I fix it?

So qmail is replacing a CRLF with a bare LF, and then complaining about the
bare LF? I doubt it. qmail would bounce all mail it ever received if that were
the case.

Chris




Just had this exact same problem 2 days ago with ASPmail.  The script was
pulling some HTML from a web page and emailing it off.  There was a lone
linefeed character at the end of one of the tables on the page.  One of our
developer guys fixed the page somehow, or made the aspmail thing look for
lone <lf>'s.

Someone mentioned that you could start smtpd with something like
fixcrio | /var/qmail/bin/qmail-smtpd, but I haven't tried it yet.

Jay

-----Original Message-----
From: Rich Feather [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 2:36 PM
To: [EMAIL PROTECTED]
Subject: MTA and \r\n problems


Okay, I have inherited a legacy Active Server Pages/VB environment that
uses ASPEmail to send HTML email messages to a qmail relay server.  I
keep getting the dreaded LF bounce.  After talking to Persits Software
(the makers of the component), they're convinced that qmail is stripping
the CRLF and replacing it with simply a LF.  My questions are, is this a
reasonable behavior from qmail and, if so, how would I fix it?

Thanks.




I have decided to redesign delivery routines of vpopmail a bit.
Here is my first attempt.

Steps to test it:
1. Copy vlocal.c and vlocal.h (attached) into vpopmail src dir.
2. add vlocal into Makefile.
3. Set #define QMAILLOCALVPOPMAIL in vlocal.c
3. compile vlocal
4. Rename qmail-local to qmail-local-vpopmail.
5. Rename vlocal to qmail-local.

What it does:
This code change homedir for delivery for vpopmail users, so
it is possible to put .qmail files directly into user directories.

It should not touch real (system) users (I think).

What is does not:
Quota support, but it shouldn't be difficult to add it there
if descriptor 0 is file with something like 
fseek(0, 0, SEEK_END);
filesize = ftell(0);
fseek(0, 0, SEEK_SET);

Could you take a lot at my code and send me a comments? Thanx.

P.S.: This code is quite simple and I think it is possible to
integrate it directly into qmail-local to reduce system overhead
(execl could be wiped).

-- 
Ondřej Surý <[EMAIL PROTECTED]> Globe Internet s.r.o.http://globe.cz/
Tel: +420235365000 Fax: +420235365009  Pláničkova 1, 162 00 Praha 6
Mob: +420602667702 ICQ: 24944126      Mapa: http://globe.namape.cz/
NAJDI.TO http://najdi.to/        Chief Administrator and Developer.
GPG fingerprint: CC91 8F02 8CDE 911A 933F  AE52 F4E6 6A7C C20D F273
/*****************************************************************************
**
** Ondrej Sury <ondrej at sury.cz>, Copyright (C) Oct 2000
**
**    This program is free software; you can redistribute it and/or modify
**    it under the terms of the GNU General Public License as published by
**    the Free Software Foundation; either version 2 of the License, or
**    (at your option) any later version.
**
**    This program is distributed in the hope that it will be useful,
**    but WITHOUT ANY WARRANTY; without even the implied warranty of
**    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
**    GNU General Public License for more details.
**
**    You should have received a copy of the GNU General Public License
**    along with this program; if not, write to the Free Software
**    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
**
*****************************************************************************/

#include <errno.h>
#include <fcntl.h>
#include <pwd.h>
#include <signal.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include <dirent.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/stat.h>
#include <sys/types.h>
#include "config.h"
#include "vlocal.h"
#include "safestring.h"
#include "vpopmail.h"
#include "vauth.h"

void usage() {
        fprintf(stderr, "vmail-local: usage: qmail-local [ -nN ] user homedir local 
dash ext domain sender aliasempty");
        exit(100);
}

char *flagdoit;
char *user;
char *homedir;
char *local;
char *dash;
char *ext;
char *host;
char *sender;
char *aliasempty;

#define QMAILLOCALVPOPMAIL "/usr/sbin/qmail-local-vpopmail"

#define MAX_BUFF 512
char vuser[MAX_BUFF];
char vhost[MAX_BUFF];

int main(int argc, char *argv[])
{
        static struct passwd *pw;
        char *tmpstr;

        argv++;

        if (!(flagdoit = *argv++)) usage();
        if (!(user = *argv++)) usage();
        if (!(homedir = *argv++)) usage();
        if (!(local = *argv++)) usage();
        if (!(dash = *argv++)) usage();
        if (!(ext = *argv++)) usage();
        if (!(host = *argv++)) usage();
        if (!(sender = *argv++)) usage();
        if (!(aliasempty = *argv++)) usage();
        if (*argv) usage();

        scopy(vuser, ext, MAX_BUFF);
        scopy(vhost, host, MAX_BUFF);
        vget_real_domain(vhost,MAX_BUFF);

        pw = vauth_getpw(vuser, vhost);

        while (!pw && (tmpstr = strrchr(vuser, '-'))) {
                *tmpstr = 0;
                pw = vauth_getpw(vuser, vhost);
        }

        if (pw && (pw->pw_gid & BOUNCE_MAIL)) {
                fprintf(stderr, "Account locked and mail bounced %s (#5.1.2)\n", 
vuser);
                exit(100);
        }

        if (pw) {
                user = pw->pw_name;
                local = ext;
                ext += strlen(pw->pw_name);
                if (*ext == '-')
                        ++ext;
                if (!strlen(ext))
                        dash++;
                homedir = pw->pw_dir;
        }

//      fprintf(stderr, "execl qmail-local-vpopmail \"%s\" \"%s\" \"%s\" \"%s\" \"%s\" 
\"%s\" \"%s\" \"%s\" \"%s\"\n", flagdoit, user, homedir, local, dash, ext, host, 
sender, aliasempty);
        if (execl(QMAILLOCALVPOPMAIL, flagdoit, user, homedir, local, dash, ext, host, 
sender, aliasempty, NULL) == -1) {
                perror("running /usr/sbin/qmail-local-vpopmail failed");
                exit(111);
        }
        exit(0);
}
/*
 * vdelivermail.h
 * part of the vchkpw package
 * 
 * Copyright (C) 1999 Inter7 Internet Technologies, Inc.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
 */

int failperm(char *,...);
void usage();




[posted to [EMAIL PROTECTED]]
[continued thread from [EMAIL PROTECTED]]

hi,
sorry if i answered wrongly. i understand that only MX'd domains should be
in rcpthosts. please forgive me, i wasn't thinking...

martin

        [EMAIL PROTECTED]

(greetings from the heart of the sun)




it seems that i have to add every domain i want to send to
/var/qmail/control/rcpthosts.

that can't be right? '*' as the only entry in /var/qmail/control/rcphosts
doesn't seem to work.

thanks,

pearse





let's see if i can get it right this time.

put every domain for which the qmail server is a MX record into rcpthosts and
locals. then configure selective relaying:
        http://www.palomine.net/qmail/relaying.html

if you were to have a virtual * as rcpthosts, then everyone could relay through
that server and you'd be every spammers best friend. your isp would hate you
and your family would soon too since your system will be a mess and very busy.

martin

        [EMAIL PROTECTED]

(greetings from the heart of the sun)




On 13-Oct-2000, MaD dUCK wrote:
> let's see if i can get it right this time.

I just want to add a couple of things.

> put every domain for which the qmail server is a MX record into
> rcpthosts and locals. then configure selective relaying [...]

You have two choices, either rcpthosts or morercpthosts, to specify
what RCPT hosts to accept. You need to put the hosts in locals (or
virtualdomains, depending on what you need) only if the machine is the
final destination (i.e. don't do this on a backup MX machine).

> if you were to have a virtual * as rcpthosts, then everyone could
> relay through [...]

Note that the term wildcard does not always mean *, and vice versa.
'man qmail-smtpd' gives the exact syntax.

Ronny




or maybe i should have read 5.4 of the FAQ in the tarball. ;-)

thanks,

pearse
----- Original Message -----
From: "MaD dUCK" <[EMAIL PROTECTED]>
To: "Robert Eric Pearse" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 4:56 PM
Subject: Re: that domain isn't in my list of allowed rcpthosts


> let's see if i can get it right this time.
>
> put every domain for which the qmail server is a MX record into rcpthosts
and
> locals. then configure selective relaying:
> http://www.palomine.net/qmail/relaying.html
>
> if you were to have a virtual * as rcpthosts, then everyone could relay
through
> that server and you'd be every spammers best friend. your isp would hate
you
> and your family would soon too since your system will be a mess and very
busy.
>
> martin
>
> [EMAIL PROTECTED]
>
> (greetings from the heart of the sun)





what am i doing wrong, multilog setup accord to Life with qmail webpage,
is not working for me at all

because their rc file with start command starts the old /var/qmail/rc which
has splogger in it.
also it starts scrolling non stop "tcpserver: cannot bind to port, already
in use"

could someone PLEASE show me what i am doing wrong? dont send to another
webpage,
because they dont explain anything. please show me step by step the stuff
that i need to do
to get it to work. (ex: what files to edit, what dirs/files to make) PLEASE!
=(

this is what i have:

[root@fly supervise]# pwd
/var/qmail/supervise

[root@fly supervise]# ls -la
total 4
drwxrwxr-x    4 root     root         1024 Oct 13 17:56 .
drwxr-xr-x   11 root     qmail        1024 Oct 13 18:04 ..
drwxrwxr-t    4 root     root         1024 Oct 13 17:59 qmail-send
drwxrwxr-t    4 root     root         1024 Oct 13 17:59 qmail-smtpd

[root@fly supervise]# find .
.
./qmail-send
./qmail-send/log
./qmail-send/log/run
./qmail-send/log/supervise
./qmail-send/log/supervise/lock
./qmail-send/log/supervise/control
./qmail-send/log/supervise/ok
./qmail-send/log/supervise/status
./qmail-send/run
./qmail-send/supervise
./qmail-send/supervise/lock
./qmail-send/supervise/control
./qmail-send/supervise/ok
./qmail-send/supervise/status
./qmail-smtpd
./qmail-smtpd/log
./qmail-smtpd/log/run
./qmail-smtpd/log/supervise
./qmail-smtpd/log/supervise/lock
./qmail-smtpd/log/supervise/control
./qmail-smtpd/log/supervise/ok
./qmail-smtpd/log/supervise/status
./qmail-smtpd/run
./qmail-smtpd/supervise
./qmail-smtpd/supervise/lock
./qmail-smtpd/supervise/control
./qmail-smtpd/supervise/ok
./qmail-smtpd/supervise/status



ok inside the /var/qmail/rc:

[root@fly supervise]# cat /var/qmail/rc
export PATH="/var/qmail/bin:$PATH"
qmail-start ./Mailbox splogger qmail >/dev/null 2>&1 &


what do i do??
i did everything according to [http://web.infoave.net/~dsill/lwq.html] and
its not working.
please help me. thanks.





To stop the tcpserver error, reconfigure or terminate the other program
which is listening on port 25.  This may be another tcpserver, inetd,
sendmail, or something else I never heard of.  You know your box better than
I do.  (I hope)

As for logging, I found that I needed to make the directory in which
multilog will be writing its logs read/write/executable for at least the
qmaill user, otherwise it would not work, and the ps ax | grep multilog
would show [multilog], indicating a failed 'zombie' sort of state.  Check
the permissions.
 
And you may wish to send to us the line you are running with multilog on it,
and an ls -ld of the directory the multilog script points to.

David


> -----Original Message-----
> From: Alex Khanin [mailto:[EMAIL PROTECTED]]
> Sent: Friday, October 13, 2000 6:15 PM
> To: [EMAIL PROTECTED]
> Subject: multilog (not working)
> 
> 
> what am i doing wrong, multilog setup accord to Life with 
> qmail webpage,
> is not working for me at all
> 
> because their rc file with start command starts the old 
> /var/qmail/rc which
> has splogger in it.
> also it starts scrolling non stop "tcpserver: cannot bind to 
> port, already
> in use"
> 
> could someone PLEASE show me what i am doing wrong? dont send 
> to another
> webpage,
> because they dont explain anything. please show me step by 
> step the stuff
> that i need to do
> to get it to work. (ex: what files to edit, what dirs/files 
> to make) PLEASE!
> =(
> 
> this is what i have:
> 
> [root@fly supervise]# pwd
> /var/qmail/supervise
> 
> [root@fly supervise]# ls -la
> total 4
> drwxrwxr-x    4 root     root         1024 Oct 13 17:56 .
> drwxr-xr-x   11 root     qmail        1024 Oct 13 18:04 ..
> drwxrwxr-t    4 root     root         1024 Oct 13 17:59 qmail-send
> drwxrwxr-t    4 root     root         1024 Oct 13 17:59 qmail-smtpd
> 
> [root@fly supervise]# find .
> .
> ./qmail-send
> ./qmail-send/log
> ./qmail-send/log/run
> ./qmail-send/log/supervise
> ./qmail-send/log/supervise/lock
> ./qmail-send/log/supervise/control
> ./qmail-send/log/supervise/ok
> ./qmail-send/log/supervise/status
> ./qmail-send/run
> ./qmail-send/supervise
> ./qmail-send/supervise/lock
> ./qmail-send/supervise/control
> ./qmail-send/supervise/ok
> ./qmail-send/supervise/status
> ./qmail-smtpd
> ./qmail-smtpd/log
> ./qmail-smtpd/log/run
> ./qmail-smtpd/log/supervise
> ./qmail-smtpd/log/supervise/lock
> ./qmail-smtpd/log/supervise/control
> ./qmail-smtpd/log/supervise/ok
> ./qmail-smtpd/log/supervise/status
> ./qmail-smtpd/run
> ./qmail-smtpd/supervise
> ./qmail-smtpd/supervise/lock
> ./qmail-smtpd/supervise/control
> ./qmail-smtpd/supervise/ok
> ./qmail-smtpd/supervise/status
> 
> 
> 
> ok inside the /var/qmail/rc:
> 
> [root@fly supervise]# cat /var/qmail/rc
> export PATH="/var/qmail/bin:$PATH"
> qmail-start ./Mailbox splogger qmail >/dev/null 2>&1 &
> 
> 
> what do i do??
> i did everything according to 
[http://web.infoave.net/~dsill/lwq.html] and
its not working.
please help me. thanks.




"Alex Khanin" <[EMAIL PROTECTED]> writes:

> what am i doing wrong, multilog setup accord to Life with qmail webpage,
> is not working for me at all
> 
> because their rc file with start command starts the old /var/qmail/rc which
> has splogger in it.

Where in the hell did you find that?! Section 2.8.1, /var/qmail/rc.
There ain't no friggin splogger there. As you will soon find, we don't
explain stuff step-by-step on this list. There is always doco out
there...

Enjoy
-- 
=======================================================
|User:         |Href:                     |Status:    |
-------------------------------------------------------
|Brett Randall |<http://xbox.ipsware.com/>|Hibernating|
=======================================================
 Generated by Microsoft Ass-Watcher s/(c)/(!c)/g 2003




any help in trouble shooting this would be appreciated.

thanks,

pearse

There was a problem logging onto your mail server. Your Password was
rejected. Account: 'cliff.carorder.com', Server: 'cliff.carorder.com',
Protocol: POP3, Server Response: '-ERR unable to scan $HOME/Maildir', Port:
110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number: 0x800CCC92





oh, i see.

the "Account" part of the error message refers to the Outlook Express
account name. it's not part of the mail server's error message.
----- Original Message -----
From: "Ihnen, David" <[EMAIL PROTECTED]>
To: "'Robert Eric Pearse'" <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 6:02 PM
Subject: RE: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'


> Hm.  Maybe Account refers to 'whatever the heck you have arbitrarily named
> this account today', in this case, 'cliff.carorder.com'
>
> If so, what you actually need to do is check the username's Maildir. /home
> is system dependant, but ~rpearse/Maildir is probably where you should be
> looking for possible ownership/permissions issues.
>
> Gotta love uninformative error messages.
>
> David
>
> > -----Original Message-----
> > From: Robert Eric Pearse [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, October 13, 2000 4:03 PM
> > To: Ihnen, David
> > Subject: Re: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
> >
> >
> > well, the username is rpearse. so shouldn't it be
> > /home/rpearse/Maildir?
> >
> > are saying that i need a user named cliff.carorder.com?
> >
> >
> > ----- Original Message -----
> > From: "Ihnen, David" <[EMAIL PROTECTED]>
> > To: "'Robert Eric Pearse'" <[EMAIL PROTECTED]>
> > Sent: Friday, October 13, 2000 5:51 PM
> > Subject: RE: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
> >
> >
> > > I'm no expert on pop3d, but it looks like you have a permissions or
> > > existence problem with ~cliff.carorder.com/Maildir
> > >
> > > David
> > >
> > >
> > > > -----Original Message-----
> > > > From: Robert Eric Pearse [mailto:[EMAIL PROTECTED]]
> > > > Sent: Friday, October 13, 2000 3:54 PM
> > > > To: [EMAIL PROTECTED]
> > > > Subject: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
> > > >
> > > >
> > > > any help in trouble shooting this would be appreciated.
> > > >
> > > > thanks,
> > > >
> > > > pearse
> > > >
> > > > There was a problem logging onto your mail server. Your
> > Password was
> > > > rejected. Account: 'cliff.carorder.com', Server:
> > 'cliff.carorder.com',
> > > > Protocol: POP3, Server Response: '-ERR unable to scan
> > > > $HOME/Maildir', Port:
> > > > 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number:
> > > > 0x800CCC92
> > > >
> >





pffft. again, the answer is in the doc's. ;-)

from INSTALL.maildir

Here's how to set up qmail to use maildir for your incoming mail:

   % maildirmake $HOME/Maildir
   % echo ./Maildir/ > ~/.qmail

Make sure you include the trailing slash on Maildir/.

y'know, i'm starting to like qmail more and more. instead of finding the
answers easily and pondering them for hours (like sendmail) the answers are
right in the doc's and they're super easy to understand. ;-)

pearse

----- Original Message -----
From: "Robert Eric Pearse" <[EMAIL PROTECTED]>
To: "Ihnen, David" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Friday, October 13, 2000 6:25 PM
Subject: Re: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'


> oh, i see.
>
> the "Account" part of the error message refers to the Outlook Express
> account name. it's not part of the mail server's error message.
> ----- Original Message -----
> From: "Ihnen, David" <[EMAIL PROTECTED]>
> To: "'Robert Eric Pearse'" <[EMAIL PROTECTED]>
> Sent: Friday, October 13, 2000 6:02 PM
> Subject: RE: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
>
>
> > Hm.  Maybe Account refers to 'whatever the heck you have arbitrarily
named
> > this account today', in this case, 'cliff.carorder.com'
> >
> > If so, what you actually need to do is check the username's Maildir.
/home
> > is system dependant, but ~rpearse/Maildir is probably where you should
be
> > looking for possible ownership/permissions issues.
> >
> > Gotta love uninformative error messages.
> >
> > David
> >
> > > -----Original Message-----
> > > From: Robert Eric Pearse [mailto:[EMAIL PROTECTED]]
> > > Sent: Friday, October 13, 2000 4:03 PM
> > > To: Ihnen, David
> > > Subject: Re: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
> > >
> > >
> > > well, the username is rpearse. so shouldn't it be
> > > /home/rpearse/Maildir?
> > >
> > > are saying that i need a user named cliff.carorder.com?
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ihnen, David" <[EMAIL PROTECTED]>
> > > To: "'Robert Eric Pearse'" <[EMAIL PROTECTED]>
> > > Sent: Friday, October 13, 2000 5:51 PM
> > > Subject: RE: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
> > >
> > >
> > > > I'm no expert on pop3d, but it looks like you have a permissions or
> > > > existence problem with ~cliff.carorder.com/Maildir
> > > >
> > > > David
> > > >
> > > >
> > > > > -----Original Message-----
> > > > > From: Robert Eric Pearse [mailto:[EMAIL PROTECTED]]
> > > > > Sent: Friday, October 13, 2000 3:54 PM
> > > > > To: [EMAIL PROTECTED]
> > > > > Subject: qmail-pop3d error: '-ERR unable to scan $HOME/Maildir'
> > > > >
> > > > >
> > > > > any help in trouble shooting this would be appreciated.
> > > > >
> > > > > thanks,
> > > > >
> > > > > pearse
> > > > >
> > > > > There was a problem logging onto your mail server. Your
> > > Password was
> > > > > rejected. Account: 'cliff.carorder.com', Server:
> > > 'cliff.carorder.com',
> > > > > Protocol: POP3, Server Response: '-ERR unable to scan
> > > > > $HOME/Maildir', Port:
> > > > > 110, Secure(SSL): No, Server Error: 0x800CCC90, Error Number:
> > > > > 0x800CCC92
> > > > >
> > >
>





I am having trouble with SPAM from people who provide bogus From and To
lines when talking to my qmail server. Here is an example.

Oct 12 21:47:49 linux1 smtpd: 971401669.546402 2385 > 220 ns1.newcombnet.com
ES
Oct 12 21:47:52 linux1 smtpd: 971401672.921618 2385 < HELO
att.attsoken.co.jp?
Oct 12 21:47:52 linux1 smtpd: 971401672.922747 2385 > 250
ns1.newcombnet.com?
Oct 12 21:47:53 linux1 smtpd: 971401673.298142 2385 < MAIL
FROM:<[EMAIL PROTECTED]>
Oct 12 21:47:53 linux1 smtpd: 971401673.299236 2385 > 250 ok?
Oct 12 21:47:53 linux1 smtpd: 971401673.568619 2385 < RCPT
TO:<[EMAIL PROTECTED]>

Notice that the HELO and the MAIL FROM: lines have completely different
domains. The MAIL FROM they are using is a bogus address. What is the best
way to prevent email like this from being accepted?

Thanks,
Aaron Newcomb, MCSE
http://www.newcombnet.com
[EMAIL PROTECTED]





Title: RE: Bogus MAIL FROM (SPAM)

No matter what they're always going to be able to send mail to a domain hosted on your box...your only chance is to learn to use your delete key...

Tony

-----Original Message-----
From: Aaron Newcomb [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 11:20 PM
To: [EMAIL PROTECTED]
Subject: Bogus MAIL FROM (SPAM)


I am having trouble with SPAM from people who provide bogus From and To
lines when talking to my qmail server. Here is an example.

Oct 12 21:47:49 linux1 smtpd: 971401669.546402 2385 > 220 ns1.newcombnet.com
ES
Oct 12 21:47:52 linux1 smtpd: 971401672.921618 2385 < HELO
att.attsoken.co.jp?
Oct 12 21:47:52 linux1 smtpd: 971401672.922747 2385 > 250
ns1.newcombnet.com?
Oct 12 21:47:53 linux1 smtpd: 971401673.298142 2385 < MAIL
FROM:<[EMAIL PROTECTED]>
Oct 12 21:47:53 linux1 smtpd: 971401673.299236 2385 > 250 ok?
Oct 12 21:47:53 linux1 smtpd: 971401673.568619 2385 < RCPT
TO:<[EMAIL PROTECTED]>

Notice that the HELO and the MAIL FROM: lines have completely different
domains. The MAIL FROM they are using is a bogus address. What is the best
way to prevent email like this from being accepted?

Thanks,
Aaron Newcomb, MCSE
http://www.newcombnet.com
[EMAIL PROTECTED]





Title: RE: Bogus MAIL FROM (SPAM)
There must be some way to block this mail from coming through. It would be ideal to block based on the HELO response since they can't fake that.
 
Aaron
-----Original Message-----
From: Tony Publiski (tonyp) [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 11:30 PM
To: 'Aaron Newcomb'; [EMAIL PROTECTED]
Subject: RE: Bogus MAIL FROM (SPAM)

No matter what they're always going to be able to send mail to a domain hosted on your box...your only chance is to learn to use your delete key...

Tony

-----Original Message-----
From: Aaron Newcomb [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 13, 2000 11:20 PM
To: [EMAIL PROTECTED]
Subject: Bogus MAIL FROM (SPAM)


I am having trouble with SPAM from people who provide bogus From and To
lines when talking to my qmail server. Here is an example.

Oct 12 21:47:49 linux1 smtpd: 971401669.546402 2385 > 220 ns1.newcombnet.com
ES
Oct 12 21:47:52 linux1 smtpd: 971401672.921618 2385 < HELO
att.attsoken.co.jp?
Oct 12 21:47:52 linux1 smtpd: 971401672.922747 2385 > 250
ns1.newcombnet.com?
Oct 12 21:47:53 linux1 smtpd: 971401673.298142 2385 < MAIL
FROM:<[EMAIL PROTECTED]>
Oct 12 21:47:53 linux1 smtpd: 971401673.299236 2385 > 250 ok?
Oct 12 21:47:53 linux1 smtpd: 971401673.568619 2385 < RCPT
TO:<[EMAIL PROTECTED]>

Notice that the HELO and the MAIL FROM: lines have completely different
domains. The MAIL FROM they are using is a bogus address. What is the best
way to prevent email like this from being accepted?

Thanks,
Aaron Newcomb, MCSE
http://www.newcombnet.com
[EMAIL PROTECTED]





Thus said "Aaron Newcomb" on Fri, 13 Oct 2000 23:19:48 EDT:

> Notice that the HELO and the MAIL FROM: lines have completely different
> domains. The MAIL FROM they are using is a bogus address. What is the best
> way to prevent email like this from being accepted?

Without some hacking you won't be able to block based on the From: 
header, however you can block based on the sender envelope.  See the 
man page for qmail-smtpd which specifically references the use of the 
badmailfrom control file.

Andy
-- 
[-----------[system uptime]--------------------------------------------]
 12:54am  up 7 days,  4:21,  6 users,  load average: 1.35, 1.33, 1.20






On Fri, Oct 13, 2000 at 11:29:42PM -0400, Tony Publiski (tonyp) wrote:
> Notice that the HELO and the MAIL FROM: lines have completely different
> domains. The MAIL FROM they are using is a bogus address. What is the best
> way to prevent email like this from being accepted?

You don't.  You also will not be able to receive mail from a large percentage 
of the domains on the internet.

> Thanks,
> Aaron Newcomb, MCSE  <-- gee, that wasn't obvious.

--Adam

-- 
Adam McKenna <[EMAIL PROTECTED]> | "No matter how much it changes, 
http://flounder.net/publickey.html   |  technology's just a bunch of wires 
GPG: 17A4 11F7 5E7E C2E7 08AA        |  connected to a bunch of other wires."
     38B0 05D0 8BF7 2C6D 110A        |  Joe Rogan, _NewsRadio_
  3:02am  up 126 days, 18 min,  9 users,  load average: 1.47, 1.03, 0.53




hello all, be coming crazy to find out how i can compile checkpassword 
to use plaintext, im standing now here....

any body knows what exactly is to do ???

thanks ... mike





> > when discussing as we are currently, could we take care only to reply
> > to the list or only to the author but not both. it's not a biggy and i
> > am a newbie here, so maybe i should not propose that, but getting the
> > same mail twice can be annoying...

> Simply add the following to your .procmailrc (if you use procmail):
> 
> [SNIP]
> # Throw away duplicates
> :0Wh: .msgid.lock
> | formail -D 8192 msgid.cache
> [SNIP]
> 
> Now only one copy of the message will hit your inbox :)

yes, but imagine the following scenario:

mass mail comes at [EMAIL PROTECTED], so mailing list messages arrive
here. regular mail goes through [EMAIL PROTECTED] now, i have fetchmail poll
these accounts and forward it all to local qmail/procmail system. so personal
mail arrives before mass mail also because mailing lists take a little longer.
and mail is checked every minute to enable some procmail filters to take some
action which might be time-critical. so procmail could weed out all mass mail
by looing for listmail@... in the X-RCPT-TO header. but every mailing list is
actually filtered separately, so whatever passes through all recipes is
considered personal mail.

now, i want to keep responses as part of the mailing list, not as separate
personal replies, so i need to let the first fall through and keep the second
one, which arrives later. i don't want to rely on From or To/Cc headers.

one thing i was thinking off might work if in procmail recipes, the different
/^*/ lines are evaluated much like the C || or && operators, i.e. the second
test is not performed if the first one failed. because then i could place
one recipe right at the beginning checking for the X-RCPT-TO header, and only
if present will is pass through the formail check, and after the lists before
writing personal mail, check the formail filter and then discard the message
if it is a mass message. but then i think about this temporally with the
assumption that the personal email will arrive first, and my logics defeat me.

so sorry for cross-posting this to the security list where this thread started,
but this may be an interesting challenge to everyone. maybe of course i am just
dumb and this is easy.

martin

        [EMAIL PROTECTED]

(greetings from the heart of the sun)




hi, i am sorry i just quoted that message. i thought it might be interesting
for you. i should have introduced it better.

consider it, still, if you are interested...

martin, 

On Sat, 14 Oct 2000 04:11:38AM -0400, MaD dUCK postulated:
> > > when discussing as we are currently, could we take care only to reply
> > > to the list or only to the author but not both. it's not a biggy and i
> > > am a newbie here, so maybe i should not propose that, but getting the
> > > same mail twice can be annoying...
> 
> > Simply add the following to your .procmailrc (if you use procmail):
> > 
> > [SNIP]
> > # Throw away duplicates
> > :0Wh: .msgid.lock
> > | formail -D 8192 msgid.cache
> > [SNIP]
> > 
> > Now only one copy of the message will hit your inbox :)
> 
> yes, but imagine the following scenario:
> 
> mass mail comes at [EMAIL PROTECTED], so mailing list messages arrive
> here. regular mail goes through [EMAIL PROTECTED] now, i have fetchmail poll
> these accounts and forward it all to local qmail/procmail system. so personal
> mail arrives before mass mail also because mailing lists take a little longer.
> and mail is checked every minute to enable some procmail filters to take some
> action which might be time-critical. so procmail could weed out all mass mail
> by looing for listmail@... in the X-RCPT-TO header. but every mailing list is
> actually filtered separately, so whatever passes through all recipes is
> considered personal mail.
> 
> now, i want to keep responses as part of the mailing list, not as separate
> personal replies, so i need to let the first fall through and keep the second
> one, which arrives later. i don't want to rely on From or To/Cc headers.
> 
> one thing i was thinking off might work if in procmail recipes, the different
> /^*/ lines are evaluated much like the C || or && operators, i.e. the second
> test is not performed if the first one failed. because then i could place
> one recipe right at the beginning checking for the X-RCPT-TO header, and only
> if present will is pass through the formail check, and after the lists before
> writing personal mail, check the formail filter and then discard the message
> if it is a mass message. but then i think about this temporally with the
> assumption that the personal email will arrive first, and my logics defeat me.
> 
> so sorry for cross-posting this to the security list where this thread started,
> but this may be an interesting challenge to everyone. maybe of course i am just
> dumb and this is easy.
> 
> martin
> 
>       [EMAIL PROTECTED]
> 
> (greetings from the heart of the sun)
> 

        [EMAIL PROTECTED]

(greetings from the heart of the sun)


Reply via email to