qmail Digest 28 Oct 1999 10:00:01 -0000 Issue 803

Topics (messages 32179 through 32227):

smtproutes per user
        32179 by: A.Y. Sjarifuddin
        32191 by: Jeff Taylor
        32209 by: Nagy Balazs

Question about qstat and qread
        32180 by: Stan Horwitz
        32202 by: Tomasz Papszun
        32204 by: Lyndon Griffin
        32210 by: Dave Sill

Various newbie questions
        32181 by: Peter Abplanalp
        32205 by: Postilion

Re: Completely Off-topic: A "good" MUA for Windows?
        32182 by: Dave Sill
        32184 by: James Smallacombe
        32189 by: Roger Merchberger
        32200 by: Matt Schnierle
        32217 by: Pashinin
        32224 by: Mirko Zeibig
        32226 by: Chris Green

Re: We need Home Workers!
        32183 by: Mate Wierdl

Re: QMAIL help tcprules
        32185 by: Anand Buddhdev
        32206 by: Dave Sill

Re: Urgent Please
        32186 by: Anand Buddhdev
        32193 by: dd
        32194 by: Chris Johnson
        32216 by: Einar Bordewich

Re: defaulthost and Eudora
        32187 by: Anand Buddhdev
        32207 by: Dave Sill

Re: methods for ETRN
        32188 by: Anand Buddhdev
        32195 by: Alexander Jernejcic
        32201 by: Robbie Walker

Re: Setuser not found
        32190 by: Dave Sill

"From:" and server-domain comparison?
        32192 by: Zbigniew Baniewski

bin mail on Solaris 7.
        32196 by: G. Ryan Fawcett
        32218 by: Joe Kelsey

Re: Courier-IMAP: IMAP services for maildirs
        32197 by: Sam

Temporary_error_on_maildir_delivery.
        32198 by: Robert
        32199 by: Timothy L. Mayo

Re: tcpserver bug?
        32203 by: Nagy Balazs

QMail relay questions
        32208 by: Lowell Hamilton

Recording relayed messages and headers
        32211 by: Charles Leeds
        32212 by: Jason Haar

Re: Qmail and Email virus protection
        32213 by: Gordon Smith
        32214 by: Christopher Seawood

Please Help: Concerning Qmail Footers.  (fwd)
        32215 by: Masuo Jeff Gates
        32219 by: Masuo Jeff Gates
        32221 by: Fred Lindberg

Config
        32220 by: peter abplanalp

I seem to have forgotten...
        32222 by: Lyndon Griffin
        32223 by: Anand Buddhdev

/bin/mail, what exactly should one do to it?
        32225 by: Chris Green
        32227 by: Todd A. Jacobs

Administrivia:

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

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

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

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


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


Dear All,
Does smtproutes could route specific email to a specific server:

email for user with prefix ~a.. to ~p... will be delivered to mail
server A.
email for user with prefix ~q.. to ~z... will be delivered to mail
server B.

so it will be something like:

a-p....@domain:[IP Address]
q-z....@domain:[IP Address]

Thanks in advance

Ayip.




Yes.  My smtproutes file looks like this.

ieee.org:gemini.ieee.org
lists.io.com:lists.io.com
suse.com:mail.suse.com
:mail.texas.net

Note the default address at the end (empty string on the left hand
side of the colon matches anything.  I route solely by domain, nothing
user-specific though certainly you can do that.  These are not
prefixes, but patterns.

HTH,
   Jeff

   
Quoting A.Y. Sjarifuddin <[EMAIL PROTECTED]>:
> Dear All,
> Does smtproutes could route specific email to a specific server:
> 
> email for user with prefix ~a.. to ~p... will be delivered to mail
> server A.
> email for user with prefix ~q.. to ~z... will be delivered to mail
> server B.
> 
> so it will be something like:
> 
> a-p....@domain:[IP Address]
> q-z....@domain:[IP Address]
> 
> Thanks in advance
> 
> Ayip.
> 




On Wed, 27 Oct 1999, A.Y. Sjarifuddin wrote:

> Does smtproutes could route specific email to a specific server:
[...]
> a-p....@domain:[IP Address]
> q-z....@domain:[IP Address]

You cannot do this, because control/smtproutes is handled by
qmail-remote(8).  It checks the first argument against control/smtproutes'
first column.  Here's the excerpt from the appropriate man page:

SYNOPSIS                                                                        
       qmail-remote host sender recip [ recip ...  ]                            

You have to use control/virtualdomains and a selector script like this:

control/virtualdomains:
        domain:domainprocessor

~alias/.qmail-domain-default:
        domain/

~alias/.qmail-domainprocessor-default:
        |qsmhook -x domainprocessor- -lnP /var/qmail/bin/qmail-inject 
`/var/qmail/bin/sforwarder %u %h`

/var/qmail/bin/sforwarder:
#!/usr/bin/perl
        ($user, $domain) = @ARGV;
        open(I,"/var/qmail/alias/domains-$domain");
        while(<I>) {
                s/^([^#]*)#.*$/$1/;
                next unless ($rx, $host) =~ (/^(.+) ([a-zA-Z.-]+)\s*$/);
                if ($user =~ /${rx}/) {
                        print "$user\@$host\n";
                        close I;
                        exit;
                }
        }
        print "$domain-$user\n";
        close I;

/var/qmail/alias/domains-domain:
        ^albert$ mail.albert.com   # albert wants his own mail
        ^[a-k].+ ahost.domain.com  # ahost does users a-k
        #^z.+ zone.domain.com      # this zone is currently down
        .+ masshost.domain.com     # for old users

Ps: Iam curious if it works IRL (in the real life).  I tested just the perl
module.
-- 
Regards: Kevin (Balazs) @ synergon





Hello qmail gurus:

I am just trying to gain an improved understanding of the results that are
returned by the qmail-qstat and qmail-qread programs. 

When I type qmail-qstat and get a result that says something like:

messages in queue: 5
messages in queue but not yet preprocessed: 2

I what exactly has happened to the three (5-2) messages that have been
processed?

When I type qmail-qread and see something like these hypothetical results:

  done  remote  addr0
  done  remote  addr1
  done  remote  addr2
        remote  addr3
        remote  addr4

Are the last two messages those that have not yet been processed? How
about the first three "done" messages? How long will they be reported in
the output of the "qmail-qread" command and are those messages really done
being sent to their intended recipients?

Thanks





On Wed, 27 Oct 1999 at 10:13:50 -0400, Stan Horwitz wrote:
> Hello qmail gurus:
> 
> I am just trying to gain an improved understanding of the results that are
> returned by the qmail-qstat and qmail-qread programs. 

I don't know all situations causing all kinds of results but here you are
just some of them:

> When I type qmail-qstat and get a result that says something like:
> 
> messages in queue: 5
> messages in queue but not yet preprocessed: 2
> 
> I what exactly has happened to the three (5-2) messages that have been
> processed?

They may seat waiting in the outgoing queue. For various reasons. Broken
link to the destination, dead destination server,
"insufficient_system_storage" there, temporary DNS failure,...

About "not yet processed" ones: apart from some situation when a message
originated internally is just being processed by qmail system (AFAIK), I
seem to remember this when my server was receiving some big message from
distant, slow sonnected site.  Part of the message was already under
/var/spool/qmail but not complete. 

> When I type qmail-qread and see something like these hypothetical results:
> 
>   done  remote  addr0
>   done  remote  addr1
>   done  remote  addr2
>         remote  addr3
>         remote  addr4
> 
> Are the last two messages those that have not yet been processed? How

Not rather. Most probably they are waiting for being delivered to remote
destination. Because of the reasons that I listed earlier. Such figure is
usual seen when one message has got more than 1 recipient and 3
recipients have been already reached but 2 left haven't been reachable
yet.

> about the first three "done" messages? How long will they be reported in

Qmail's default of keeping it in the queue is 7 days.

> the output of the "qmail-qread" command and are those messages really done
> being sent to their intended recipients?

Yes, these ones marked as "done" have been really delivered to recipients'
servers.

Hope it helps. If I'm misleading, some wiser person is encouraged to
correct me.
-- 
 Tomasz Papszun   SysAdm @ TP S.A. Lodz, Poland  | And it's only
 [EMAIL PROTECTED]   http://www.lodz.tpsa.pl/   | ones and zeros.





> > I what exactly has happened to the three (5-2) messages that have been
> > processed?

5 total in queue:
        3 of these are pre-processed and scheduled for delivery
        2 of these are not pre-processed

> > When I type qmail-qread and see something like these hypothetical results:
> > 
> >   done  remote  addr0
> >   done  remote  addr1
> >   done  remote  addr2
> >         remote  addr3
> >         remote  addr4
> > 
> > Are the last two messages those that have not yet been processed? How

Maybe wrong here, but I think that messages that are not pre-processed will not
show up in qmail-qread.

<:)  Lyndon




Stan Horwitz <[EMAIL PROTECTED]> wrote:

>When I type qmail-qstat and get a result that says something like:
>
>messages in queue: 5
>messages in queue but not yet preprocessed: 2
>
>I what exactly has happened to the three (5-2) messages that have been
>processed?

There are 5 messages in the queue: three have been preprocessed, two
haven't. See INTERNALS in the build directory for further information
on the meaning of "preprocessing".

>When I type qmail-qread and see something like these hypothetical results:
>
>  done  remote  addr0
>  done  remote  addr1
>  done  remote  addr2
>        remote  addr3
>        remote  addr4
>
>Are the last two messages those that have not yet been processed?

No, they're queued, preprocessed messages that haven't been delivered
yet.

>How about the first three "done" messages?

They're successful deliveries od queued, preprocessed messages.

>How long will they be reported in the output of the "qmail-qread"
>command

Until all recipients of the message(s) have been delivered or
bounced. E.g., as long as the message is still in the queue.

>and are those messages really done being sent to their intended
>recipients?

No, they're only complete for the recipients marked "done".

-Dave




Hello all.  I have been trying to get qmail to work with little success.  I 
have probably made some mistakes.  Let me start off with the, IMO, worst: I 
removed /var/log/maillog thinking that it was writen by qmail and that 
qmail would recreate it.  Wrong, maillog is writen by syslog.  So, I give 
syslog a HUP and maillog returns but ever since then the log is empty and I 
don't know why.  The original problem I had was something like 'can not 
opendir todo' in the maillog as well as '940965762.308214 delivery 345: 
deferral: Unable_to_chdir_to_maildir._(#4.2.1)/' any time I try to mail a 
local message using 'echo to: me | /var/qmail/bin/qmail-inject'.  I thought 
this would be a permissions problem but I went back through the install 
instructions in LWQ and everything is owned by who it should be owned by.  
Likewise all the processes are owned correctly.  I am at a bit of a loss.  
Any suggestions?

BTW

OS - Linux RH6.0.
qmail was installed using tarballs and LWQ.

Peter Abplanalp





did you maildirmake ./Maildir in your own homedir as you yourself (e.g. not
su - root)?
is ./Maildir/ in .qmail - and located in your own homedir? note the trailing
slash!
i guess you did, but for sure: did you 'echo to: me ...' or did you use your
real username?

the "..todo..." messages seems to point to a problem with your queue, since
todo is a subdir in <wherever>/qmail/queue

====================================================================
Alexander Jernejcic              email:[EMAIL PROTECTED]
                                                    [EMAIL PROTECTED]
trying hard to understand, what's going on....
====================================================================


> -----Original Message-----
> From: Peter Abplanalp [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, October 27, 1999 4:05 PM
> To: [EMAIL PROTECTED]
> Subject: Various newbie questions
>
>
> Hello all.  I have been trying to get qmail to work with little
> success.  I
> have probably made some mistakes.  Let me start off with the,
> IMO, worst: I
> removed /var/log/maillog thinking that it was writen by qmail and that
> qmail would recreate it.  Wrong, maillog is writen by syslog.  So, I give
> syslog a HUP and maillog returns but ever since then the log is
> empty and I
> don't know why.  The original problem I had was something like 'can not
> opendir todo' in the maillog as well as '940965762.308214 delivery 345:
> deferral: Unable_to_chdir_to_maildir._(#4.2.1)/' any time I try to mail a
> local message using 'echo to: me | /var/qmail/bin/qmail-inject'.
> I thought
> this would be a permissions problem but I went back through the install
> instructions in LWQ and everything is owned by who it should be
> owned by.
> Likewise all the processes are owned correctly.  I am at a bit of
> a loss.
> Any suggestions?
>
> BTW
>
> OS - Linux RH6.0.
> qmail was installed using tarballs and LWQ.
>
> Peter Abplanalp
>
>





Rogerio Brito <[EMAIL PROTECTED]> wrote:

>       I know this is VERY off-topic, but do you know any "good" MUA
>       for Windows?
>
>       I'd like to recommend a reasonable (that is, not bloated and
>       not very much broken) mail reader for some friends that use
>       Windows, but I just don't know what to tell them.

Poco looks very nice:

    http://www.pocomail.com/

I've never used it, though, and it's $25 after 30 days. It's small,
looks pretty, and has a good feature set, including a built-in
scripting language for procmail/maildrop-like filtering.

-Dave




On Tue, 26 Oct 1999, Todd A. Jacobs wrote:

> On Tue, 26 Oct 1999, Rogerio Brito wrote:
> 
> >     I know this is VERY off-topic, but do you know any "good" MUA
> >     for Windows?
> 
> Pegasus is manual-ware. It's very solid, feature-rich, and powerful. Not
> the most user-friendly, though--but then, that wasn't your question. :)

I've also seen Pegasus suffer the same stray line feed problem that some
versions of Eudora, Outlook and Claris Emailer has.  Not sure which
version(s) of Pegasus this was, though...





Rumor has it that James Smallacombe may have mentioned these words:
>On Tue, 26 Oct 1999, Todd A. Jacobs wrote:
>
>> On Tue, 26 Oct 1999, Rogerio Brito wrote:
>> 
>> >    I know this is VERY off-topic, but do you know any "good" MUA
>> >    for Windows?
>> 
>> Pegasus is manual-ware. It's very solid, feature-rich, and powerful. Not
>> the most user-friendly, though--but then, that wasn't your question. :)
>
>I've also seen Pegasus suffer the same stray line feed problem that some
>versions of Eudora, Outlook and Claris Emailer has.  Not sure which
>version(s) of Pegasus this was, though...

Nor I, but I can tell you (pretty close) what versions of Eudora have the
problem: Eudora Lite and Pro Version 4.0 thru 4.1. AFAIK Eudora 4.2 is
finally free of the bug, but I honestly haven't seen any new "features"
that improve the software over 3.0 Pro (with which I haven't had any
problems with for over 4 years).

If you're an ISP and you're looking for something to pass out, Eudora Lite
1.5.4 is the latest 1.x version that I know of, and if you separate out the
16-bit from the 32-bit stuff (and remove a .bmp on the 32-bit side as well,
IIRC) they can be made to fit on one 1.44 Meg floppy. Just be sure to find
out what OS people are running, I don't think the 16-bit & 32-bit stuff is
interchangeable (I don't think the 16-bit stuff runs in Winblows 9x/NT).

HTH,
Roger "Merch" Merchberger
--
Roger "Merch" Merchberger   ---   sysadmin, Iceberg Computers
Recycling is good, right???  Ok, so I'll recycle an old .sig.

If at first you don't succeed, nuclear warhead
disarmament should *not* be your first career choice.




PC-pine?

I recommend eudora for those who just cannot be without a winbloze
mailer....



On Tue, 26 Oct 1999, Rogerio Brito wrote:

RB>
RB>     Hi, All.
RB>
RB>     I know this is VERY off-topic, but do you know any "good" MUA
RB>     for Windows?
RB>
RB>     I'd like to recommend a reasonable (that is, not bloated and
RB>     not very much broken) mail reader for some friends that use
RB>     Windows, but I just don't know what to tell them.
RB>
RB>     So, I was wondering if you could suggest something. It would
RB>     be nice if it were free and kept some headers like References,
RB>     In-Reply-To (is there any MUA for Windows that understands
RB>     Mail-Followup-To?) so that mutt can keep threads whenever they
RB>     send me some e-mails... :-)
RB>
RB>
RB>     Thank you very much for your comments, Roger...
RB>
RB>

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





> On Tue, 26 Oct 1999, Rogerio Brito wrote:
>
>    I know this is VERY off-topic, but do you know any "good" MUA
>    for Windows?

You can try The BAT!.
http://www.ritlabs.com/

-- 
Pashinin:OL




On Wed, Oct 27, 1999 at 08:56:51AM +0100, Chris Green wrote:
> One WIn32 mailer that seemed quite competant when I was looking is
> Pmail98 (www.southsoft.com), it has OS/2 ancestry which may explain
> its sanity.
Yes, PMMail is one of the best MUAs I know of. I still would stay with it,
if southsoft finally released a IMAP-enabled version,
PMMail is POP-only :-(.
Well, mostly working in a server-client-environment, I'll do all my work
using mutt in a ssh-window now ;-).

Regards
Mirko




On Thu, Oct 28, 1999 at 10:06:41AM +0200, Mirko Zeibig wrote:
> On Wed, Oct 27, 1999 at 08:56:51AM +0100, Chris Green wrote:
> > One WIn32 mailer that seemed quite competant when I was looking is
> > Pmail98 (www.southsoft.com), it has OS/2 ancestry which may explain
> > its sanity.
> Yes, PMMail is one of the best MUAs I know of. I still would stay with it,
> if southsoft finally released a IMAP-enabled version,
> PMMail is POP-only :-(.
> Well, mostly working in a server-client-environment, I'll do all my work
> using mutt in a ssh-window now ;-).
> 
Thanks for the correction of PMail to PMMail, I knew it didn't look
quite right when I typed it!  :-)

Your reason for not using PMMail is exactly the same as mine and you
seem to be in much the same situation, I use ssh to connect to this
system where I run mutt.

I have spent a long time looking for a good Unix GUI MUA that handles
IMAP folders well and provides the multiple personalities I want for
working with multiple mailboxes but there really isn't any such beast.
I'm using tkrat (latest beta) and it's making it towards what I want
but it's not there yet on the multiple personalities front.  mutt is
still best for what I want I think.

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]           Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/




   On Tue, 26 Oct 1999, Mate Wierdl wrote:
   > So rbl does not do wildcard blocking like *.flash.net ?
   
   No. The RBL blocks by IP address ranges, and only those hosts that show
   specific problems. 

That is what I meant, thx.  Do you have an easy way to find those
entries in rblsmtpd's logs which are about rbl or dul refused
connections?

Mate




On Wed, Oct 27, 1999 at 10:58:44AM +0200, Pannitteri Fabrizio wrote:

man tcprules

> what's tcprules in the script for start/restart qmail????

-- 
See complete headers for more info




Pannitteri Fabrizio <[EMAIL PROTECTED]> wrote:

>what's tcprules in the script for start/restart qmail????

Part of daemontools. Install it and read the man page.

-Dave




On Wed, Oct 27, 1999 at 09:04:29AM +0000, Alexander Jernejcic wrote:

List your domains in control/rcpthosts in lowercase. During an SMTP
conversation, the case of the domain will be ignored.

> has one to care about cases in rcpthosts?
> users tend to beautify domainnames.  e.g. [EMAIL PROTECTED]

-- 
See complete headers for more info






On Wed, 27 Oct 1999, Einar Bordewich wrote:

> Nope, rcpthost includes domains that the server accept, 
>it can be local domain or just a domain that the server queues mail for
>ex. secondary MX for a domain. It does not have anything to do with the
>local users. If a domain is listed in rcpthost, anybody in the "world" is
>allowed to deliver mail to that domain, even if that doman is not local
>on that server.
> 
> Use tcpserver (and do not run it from inetd), and set the relaying from there.
> Check this links, cut'ed from www.qmail.org:

hey hey wait a minute. rcpthosts doesn't have anything to do with the
local users? so why couldn't any of the users send a mail to the rest of
the world when rcpthosts included only my host? i removed the file and now
users can send mail to everywhere. at first i also thought as you
explained, the file should include the hosts that are allowed to use my
machine as relay but the reality is different, it seems (?).


i'm confused...





On Wed, Oct 27, 1999 at 03:15:24PM +0300, dd wrote:
> 
> 
> On Wed, 27 Oct 1999, Einar Bordewich wrote:
> 
> > Nope, rcpthost includes domains that the server accept, 
> >it can be local domain or just a domain that the server queues mail for
> >ex. secondary MX for a domain. It does not have anything to do with the
> >local users. If a domain is listed in rcpthost, anybody in the "world" is
> >allowed to deliver mail to that domain, even if that doman is not local
> >on that server.
> > 
> > Use tcpserver (and do not run it from inetd), and set the relaying from there.
> > Check this links, cut'ed from www.qmail.org:
> 
> hey hey wait a minute. rcpthosts doesn't have anything to do with the
> local users? so why couldn't any of the users send a mail to the rest of
> the world when rcpthosts included only my host? i removed the file and now
> users can send mail to everywhere. at first i also thought as you
> explained, the file should include the hosts that are allowed to use my
> machine as relay but the reality is different, it seems (?).

rcpthosts lists the domains *FOR* which you're willing to accept mail via SMTP.
It has *nothing at all* to do with who should be allowed to relay.

Chris




rcpthosts is for which domains your mailserver accept mail to, and you only want to 
accept mail to domains that have relevance to your mailserver (either local accounts 
or as a secondary MX for another mailserver). By removing rcpthosts, you are accepting 
mail for all domains, and opening for abuse of your mailserver.

Your "local" users are threaten as whatever client/server trying to deliver mail 
through your mailserver, until you tell qmail otherwise. That is what you are using 
tcpserver for, where you accept relaying of mail from a range of IP addresses (your 
local addresses!), and only allows deliver to locals/rcpthosts from anybody else.

Hope this clears things a little bit....

regards
--
-------------------------------------------------------------------
IDG New Media     Einar Bordewich
System Manager   Phone: +47 2205 3034
E-Mail:  [EMAIL PROTECTED]
-------------------------------------------------------------------

----- Original Message ----- 
From: dd <[EMAIL PROTECTED]>
To: Einar Bordewich <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Wednesday, October 27, 1999 2:15 PM
Subject: Re: Urgent Please


> 
> 
> On Wed, 27 Oct 1999, Einar Bordewich wrote:
> 
> > Nope, rcpthost includes domains that the server accept, 
> >it can be local domain or just a domain that the server queues mail for
> >ex. secondary MX for a domain. It does not have anything to do with the
> >local users. If a domain is listed in rcpthost, anybody in the "world" is
> >allowed to deliver mail to that domain, even if that doman is not local
> >on that server.
> > 
> > Use tcpserver (and do not run it from inetd), and set the relaying from there.
> > Check this links, cut'ed from www.qmail.org:
> 
> hey hey wait a minute. rcpthosts doesn't have anything to do with the
> local users? so why couldn't any of the users send a mail to the rest of
> the world when rcpthosts included only my host? i removed the file and now
> users can send mail to everywhere. at first i also thought as you
> explained, the file should include the hosts that are allowed to use my
> machine as relay but the reality is different, it seems (?).
> 
> 
> i'm confused...
> 
> 





On Wed, Oct 27, 1999 at 10:09:40AM +0100, Carrott wrote:

SMTP is a mail tranfer protocol. It does not allow for rewriting of a
message, and qmail-smtpd therefore does NOT rewrite a message in any
way. Rewriting is implemented in OFMIP, the Old Fashioned Mail
Injection Protocol. Get the mess822-0.58.tar.gz package from DJB's site,
read the instructions, and use the ofmipd server in there to do what you
want.

> I stand corrected. I have tried sending to "[EMAIL PROTECTED]" and the 
> address is not rewritten.
> 
> BUT here is a cut from the QMAIL FAQ regarding host masquerading.
> Am I not doing what the FAQ suggests? I (think I) know what I am doing but 
> may be using incorrect terminology.
> 
> Sendmail does what I am asking with the same kind of setup I want with 
> Qmail. ie send from Eudora as [EMAIL PROTECTED] which is "re-written" to 
> "[EMAIL PROTECTED]" when sent.

-- 
See complete headers for more info




Carrott <[EMAIL PROTECTED]> wrote:

>[from the FAQ]
>1. Controlling the appearance of outgoing messages
>
>1.1. How do I set up host masquerading? All the users on this host, 
>zippy.af.mil, are users on af.mil. When joe sends a message to fred, the 
>message should say ``From: [EMAIL PROTECTED]'' and ``To: [EMAIL PROTECTED]'', without 
>``zippy'' anywhere.
>
>Answer: echo af.mil /var/qmail/control/defaulthost; chmod 644 
>/var/qmail/control/defaulthost.

The key phrase there is "on this host". This applies to local users
who inject mail via qmail-inject (or /var/qmail/bin/sendmail) and who
don't specifically set a host/domain in their From field.

In your case, the mail is being injected remotely via SMTP, so this
doesn't apply.

-Dave




On Wed, Oct 27, 1999 at 09:38:58AM +0000, Alexander Jernejcic wrote:

I know. pullmail isn't really the most featureful program. To use it
with qmail, you have to insert another header, like X-Envelope-To: and
then it will work better. See my earlier mail today.

> IMHO pullmail doesnt strip the virtual-domain addon at the beginning 
> of the Delivered-To line. therefor i was not able to use it with 
> multidrop virtual domains - maybe my fault. 

-- 
See complete headers for more info




and now, please forgive me ,one for dummy me: how, or better to say 
when do i insert a line into a mail. am i allowed to pipe to 
qmail-local in dotqmail? (eg: '|do-some-insertcode | qmail-local')


> On Wed, Oct 27, 1999 at 09:38:58AM +0000, Alexander Jernejcic wrote:

> I know. pullmail isn't really the most featureful program. To use it
> with qmail, you have to insert another header, like X-Envelope-To: and
> then it will work better. See my earlier mail today.

> > IMHO pullmail doesnt strip the virtual-domain addon at the beginning
> > of the Delivered-To line. therefor i was not able to use it with
> > multidrop virtual domains - maybe my fault.

> --
> See complete headers for more info

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








You'd probably want to pipe to qmail-inject (using a local address this time)


At 09:12 AM 10/27/99 , you wrote:
>and now, please forgive me ,one for dummy me: how, or better to say 
>when do i insert a line into a mail. am i allowed to pipe to 
>qmail-local in dotqmail? (eg: '|do-some-insertcode | qmail-local')
>
>
>> On Wed, Oct 27, 1999 at 09:38:58AM +0000, Alexander Jernejcic wrote:
>
>> I know. pullmail isn't really the most featureful program. To use it
>> with qmail, you have to insert another header, like X-Envelope-To: and
>> then it will work better. See my earlier mail today.
>
>> > IMHO pullmail doesnt strip the virtual-domain addon at the beginning
>> > of the Delivered-To line. therefor i was not able to use it with
>> > multidrop virtual domains - maybe my fault.
>
>> --
>> See complete headers for more info
>
>-- 
>Alexander Jernejcic, E-Mail: [EMAIL PROTECTED]
>IntelliNet EDV-Dienstleistungsges.m.b.H., Mariahilferstra�e 103, 1060 
>Wien
>Tel.: 595 23 88, Fax: 595 23 90
>
>
>
>


______________________
NovaMetrix Development 
Robbie Walker, AMWL

P.O. Box 635 or        910-653-4006
106-B S. Main St       800-773-5647
Tabor City, NC 28463   910-653-2052 FAX






Peter Abplanalp <[EMAIL PROTECTED]> wrote:

>I'm in the process of installing qmail.  I am following the 'life with 
>qmail' newbie instructions and the following packages:
>
>qmail-1.03
>daemontools-0.61
>ucspi-tcp-0.84
>
>Now, I have done a search on the archive and found that setuser was 
>included in an earlier version of daemontools and that newer versions use 
>setuidgid but what does this mean?  Do I need to install the old version of 
>daemontools or can I make the new version work somehow?  Thanks.

LWQ clearly states (see
http://Web.InfoAve.Net/~dsill/lwq.html#download) that daemontools 0.53
must be used and that 0.61 won't work. Did you really miss that, or
did you choose to ignore it?

Install daemontools 0.53 following the LWQ directions, and everything
will work.

If you have to have daemontools 0.61, you're on your own.

-Dave




I've noticed, that quite a lot of SMTP servers is comparing a domain of
e-mail sender address with domain of SMTP-server he's using. When the
domains differs, recipient SMTP-server refuses to accept e-mail for
delivery.

  Perhaps I missed something, but is it possible to make qmail to work
this way?

                                pozdrawiam / regards

                                                Zbigniew Baniewski





Well internet email works great but I have a problems using bin mail to
deliver locally. I've compile everything but I don't have the qial to alias
to binmail so how do i set it up to put the mail ins /var/mail/spool/usr.
Anyone does this 
Thanks
"There's a fine line between genius and insanity."
G. Ryan Fawcett








G. Ryan Fawcett writes:
 > Well internet email works great but I have a problems using bin mail to
 > deliver locally. I've compile everything but I don't have the qial to alias
 > to binmail so how do i set it up to put the mail ins /var/mail/spool/usr.
 > Anyone does this 

Use the default qmail delivery to ~/Mailbox.  Here is my /var/qmail/rc

  #!/bin/sh

  # Using cyclog to send the log to /var/log/qmail.
  # Using qmail-local to deliver messages to ~/Mailbox by default.

  exec env - PATH="/var/qmail/bin:$PATH" \
  qmail-start ./Mailbox /usr/local/bin/accustamp \
  | /usr/local/bin/setuser qmaill /usr/local/bin/cyclog /var/log/qmail

Then, you put a symbolic link in /var/mail for each luser:

  shutdown all mail processing
  for i in list of users
  do
    if [ -f /var/mail/$i ]
    then
      mv /var/mail/$i /home/$i/Mailbox
    fi
    ln -s /home/$i/Mailbox /var/mail/$i
  done

/Joe





On Wed, 27 Oct 1999, Marlon Anthony Abao wrote:

> will ldap auth and directory services be included in a future version of 
> this imap implementation?

There's a PAM LDAP module floating somewhere out there.  It should work.

--
Sam





Hello,
 This is a very very vauge question I know, but can anyone tell me what
exactly this error means??  I realize it means it can't deliver to this
maildir, but I have a .qmail-postmaster file in my ~alias directory.  I
checked my queue and have found about 450 messages stuck waiting to be
delivered to postmaster.  Thank you for any assistance you might be able to
provide.

starting delivery 245308: msg 310554 to local [EMAIL PROTECTED]
0015 status: local 1/10 remote 1/20
0033 delivery 245308: deferral:
Temporary_error_on_maildir_delivery._(#4.3.0)/





What are the contents of .qmail-postmaster?  Does ~alias/Maildir exist?
Is it in fact a Maildir? and is it owned by alias?

On Wed, 27 Oct 1999, Robert wrote:

> Hello,
>  This is a very very vauge question I know, but can anyone tell me what
> exactly this error means??  I realize it means it can't deliver to this
> maildir, but I have a .qmail-postmaster file in my ~alias directory.  I
> checked my queue and have found about 450 messages stuck waiting to be
> delivered to postmaster.  Thank you for any assistance you might be able to
> provide.
> 
> starting delivery 245308: msg 310554 to local [EMAIL PROTECTED]
> 0015 status: local 1/10 remote 1/20
> 0033 delivery 245308: deferral:
> Temporary_error_on_maildir_delivery._(#4.3.0)/
> 
> 

---------------------------------
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





> including pop3 and smtp ports (these are served by tcpserver/qmail).  When I
> tried the listening ports, it came to light that inetd's services worked
> right but tcpserver's services went down.  I didn't see any exciting in the
> log.

Well, the problem has been revealed.  It had memory error, which turned to
disk error.  We checked out ucspi-tcp code throughoutly but we didn't see
any bugs in it (as I expected).
-- 
Regards: Kevin (Balazs) @ synergon





I am having a problem with QMail and relaying - 

When I send mail from my machine, relay it through the qmail machine,
off to a site that uses the MAPS/DUL list for blocking, it bounces.  I
purposely blocked all the IP's on the DULs list except the mail relay. 
What it looks like to me is that the qmail machine isn't writing a new
header on the message when it sends it ... For example, sending mail to
yahoo.com (note that only received: header yahoo's mail server sees is
from lowell.phx.vistavdi.com (a blocked address)

>From Lowell Hamilton Wed Oct 27 11:15:39 1999
X-Apparently-To: [EMAIL PROTECTED] via mdd102.yahoomail.com
Received: from unknown (HELO MAIL.VISTAVDI.COM) (209.203.94.12) by
mta113.mail.yahoo.com with SMTP; 27 Oct 1999 11:24:27 -0700
Received: (qmail 7728 invoked from network); 27 Oct 1999 18:17:47 -0000
Received: from lowell.phx.vistavdi.com (HELO vistavdi.com)
(209.203.94.163) by smtp.vistavdi.com with SMTP; 27 Oct 1999 18:17:47
-0000
Message-ID: <[EMAIL PROTECTED]>
From:  Lowell Hamilton <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: lkjsdf

How do I rememdy this?  I've read about every faq I can find, and I see
lots of info but nothing that will solve that problem.... or did I just
bump my head and try and do this all wrong?

TTIA

-- Lowell




My company wants to monitor all incoming and outgoing messages that are
relayed through the qmail relay.  The qmail box forwards all mail for our
domain to an internal mailserver using smtproutes, and has no local users.

Is there any way to record all messages (and headers) of incoming and
outgoing messages that are relayed by qmail?

Thanks,

Fox
Information Security Analyst
[EMAIL PROTECTED]







On Wed, Oct 27, 1999 at 03:57:14PM -0400, Charles Leeds wrote:
> Is there any way to record all messages (and headers) of incoming and
> outgoing messages that are relayed by qmail?

FAQ 8.2

-- 
Cheers

Jason Haar

Unix/Network Specialist, Trimble NZ
Phone: +64 3 3391 377 Fax: +64 3 3391 417
     





If anyone has had any success with Amavis, I'd be interested to see how you did
it. With the latest (pre6) qmail passes the message to the script, which checks
the message for viruses, but the script never passes the message back. Aargh! I
get a "no local delivery program available" error. 
I think that basename is not returning the calling program id correctly, but
I'm not sure. If anyone has already fixed this, please let me know. Otherwise
I'll post a fix here once I figure out whats going on  :-)

Anyone want an overworked, underpaid sysadmin? In NZ?

Cheers,
 --
Gordon Smith,  MCP, TCP
Network Administrator

Horticultural Automation Ltd.




On Thu, 28 Oct 1999, Gordon Smith wrote:

> If anyone has had any success with Amavis, I'd be interested to see how you did
> it. With the latest (pre6) qmail passes the message to the script, which checks
> the message for viruses, but the script never passes the message back. Aargh! I
> get a "no local delivery program available" error. 
> I think that basename is not returning the calling program id correctly, but
> I'm not sure. If anyone has already fixed this, please let me know. Otherwise
> I'll post a fix here once I figure out whats going on  :-)

The default qmail setup for amavis was slightly horked.  You'll need to
apply the attached patch & configure it with: --enable-qmail
--enable-x-header=no.  Once you have it installed, do:

cd /var/qmail/bin
mv qmail-remote qmail-remote-real
mv qmail-local qmail-local-real
ln -s /usr/sbin/scanmails qmail-remote
ln -s /usr/sbin/scanmails qmail-local

This will allow you to scan all incoming and outgoing mail for viruses.
If you do not feel comfortable moving the binaries around, you can just
add:
| /usr/sbin/scanmails $SENDER $RECEIPIENT
to /var/qmail/defaultdelivery/rc .

The attached patch fixes the following problems:

1. Should check $sender & $receiver against $SENDER & $RECEIPIENT instead
of $2 & $7.
2. Do not attempt to log to the logfile if $do_log != 'yes'.
3. Since qmail doesn't use the default $deliver program, do not check for
$deliver when attempting to pass on the mail.

I'm not sure why using formail to add the X-AntiVirus: header doesn't
work so always I disabled it.  I think the proper step may be to reinvoke
qmail-inject but I'm not sure how that would work.

- cls

--- amavis-0.2.0-pre6/src/scanmails/scanmails.in.cls    Tue Jul 20 12:28:52 1999
+++ amavis-0.2.0-pre6/src/scanmails/scanmails.in        Mon Oct 25 13:16:01 1999
@@ -103,6 +103,7 @@
 # - if "do_log" is set to "yes"                #
 ################################################
 var_log=@var_log@
+systemlogdir=${var_log}/scanmails/
 do_log=@do_log@
 do_syslog=@do_syslog@
 syslog_level=@syslog_level@
@@ -242,11 +243,11 @@
 receiver=`echo ${RECEIPIENT} | ${sed} -e "s/[\\\`\\\\\$\(\)]//g"`
 sender=`echo ${SENDER} | ${sed} -e "s/[\\\`\\\\\$\(\)]//g"`
 
-if [ "$sender" != "$2" -o "$receiver" != "$7" ] ; then
+if [ "$sender" != "${SENDER}" -o "$receiver" != "${RECEIPIENT}" ] ; then
        cat <<EOF | ${mail} -s "AMaViS Intrusion???" ${mailto}
        
 ############################################################
-   $7 or $2 is not a valid Email address
+   ${RECEIPIENT} or ${SENDER} is not a valid Email address
    (changed to $receiver and $sender)!
 ############################################################
 
@@ -840,8 +841,10 @@
   echo The attached mail has been found to contain a virus >${tmpdir}/virusmail
   echo Originally $0 "$@" >>${tmpdir}/virusmail
   echo The mail has been stored as ${virusmailsdir}/virus$$ >> ${tmpdir}/virusmail
-  mkdir -p ${var_log}/${scanscriptname}
-  cat ${tmpdir}/logfile >>${var_log}/${scanscriptname}/logfile
+  if [ "x${do_log}" = "xyes" ]; then
+       mkdir -p ${systemlogdir}
+       cat ${tmpdir}/logfile >>${systemlogdir}/logfile
+  fi
   cat ${tmpdir}/virusmail ${tmpdir}/logfile | ${mail} -s "FOUND VIRUS IN MAIL $*" 
${mailto}
 
 ################### send a mail back to sender ######################
@@ -897,33 +900,27 @@
 
 else
   echo No virus found - good >> ${tmpdir}/logfile
-  if [ "x${deliver}" != "x" ] && [ -x ${deliver} ] ; then
+  if [ "x${usingqmail}" != "x" ]; then
     if [ "x$x_header" = "xyes" ] && [ "x${formail}" != "x" ] && [ -x ${formail} ] ; 
then
-      if [ "x${usingqmail}" != "x" ]; then
-        # If invoked as anything other than "scanmails", invoke the real
-       # program else fall thru to exit
-       if [ "${scanscriptname}" != "scanmails" ] ; then
-         cat ${tmpdir}/receivedmail |\
-           ${formail} -f \
-                       -A "${X_Header_String}" \
-           |  ${scanscriptname}-real "$@"
-       fi    
-      else    
-        cat ${tmpdir}/receivedmail |\
-            ${formail} -f \
-                       -A "${X_Header_String}" \
-        | ${deliver} "$@"
+      if [ "${scanscriptname}" != "scanmails" ] ; then
+       cat ${tmpdir}/receivedmail |\
+         ${formail} -f \
+                    -A "${X_Header_String}" \
+         |  ${scanscriptname}-real "$@"
+      fi    
+    else    
+      if [ "${scanscriptname}" != "scanmails" ] ; then
+        ${scanscriptname}-real "$@" < ${tmpdir}/receivedmail
       fi
+    fi
+  elif [ "x${deliver}" != "x" ] && [ -x ${deliver} ] ; then
+    if [ "x$x_header" = "xyes" ] && [ "x${formail}" != "x" ] && [ -x ${formail} ] ; 
+then
+      cat ${tmpdir}/receivedmail |\
+          ${formail} -f \
+                     -A "${X_Header_String}" \
+      | ${deliver} "$@"
     else 
-      if [ "x${usingqmail}" != "x" ]; then
-        # If invoked as anything other than "scanmails", invoke the real
-       # program else fall thru to exit
-       if [ "${scanscriptname}" != "scanmails" ] ; then
-         ${scanscriptname}-real "$@" < ${tmpdir}/receivedmail
-       fi  
-      else  
-        ${deliver} "$@" <${tmpdir}/receivedmail
-      fi       
+      ${deliver} "$@" <${tmpdir}/receivedmail
     fi 
   else
     pid=$$
@@ -937,8 +934,8 @@
 
   if [ "x${do_log}" = "xyes" ]
   then
-    mkdir -p ${var_log}/${scanscriptname}
-    cat ${tmpdir}/logfile >> ${var_log}/${scanscriptname}/logfile
+    mkdir -p ${systemlogdir}
+    cat ${tmpdir}/logfile >> ${systemlogdir}/logfile
   fi
 fi
 






[                       -= (><) =-                       ]
[                    Masuo Jeff Gates                    ] 
[    Chief Security Officer / Chief Financial Officer    ]
[           Infinite Probability Networks Inc.           ]
[                 http://www.ipninc.com/                 ]

---------- Forwarded message ----------
Date: Wed, 27 Oct 1999 16:59:18 -0500 (CDT)
From: Masuo Jeff Gates <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Please Help: Concerning Qmail Footers. 

Hello,
        I am having issues implementing a footer hack.  I would much
appreciate anybody's input.

        I put a hook in qmail-queue.c to call a perl script (simple
fork() execlp()).  The perl script I wrote parses the message in
mess/x/messnum, and adds an appropriate footer (text or html).  (I got
around the doubled-add by putting in an X- header, also added support for
the different Content-Types.)

        Anyways, things looked great during testing (writing to
/var/qmail/queue/temp.txt, footers were added beautifully), but when it
came down to actually WRITING to mess/x/messnum:

Insecure dependency in open while running setuid at /var/qmail/
bin/footer.pl line 268.

was the warning I got.

Does anybody happen to have any insight on what I must do to get this
working? (At this time in the morning, the only thing I can think of is
putting in a sleep() in queue, and having a shell script (running as root)
mv the footer added file to the correct dir (I will not do this ^^;;).

I would much appreciate any help at all.

Thank you in advance,

Masuo Gates








Why the hell can I:

        open FOO, "> /var/qmail/queue/tmp.txt";

but not:

        open FOO, "> /var/qmail/queue/$messnum";

??

Could somebody direct me to what .c file is inhibiting this? (I just need
this to work for now... I will try and implement everything in
qmail-smtpd.c when I have the time.)

Thank you,

Masuo Gates

On Wed, 27 Oct 1999, Masuo Jeff Gates wrote:

> Hello,
>       I am having issues implementing a footer hack.  I would much
> appreciate anybody's input.
> 
>       I put a hook in qmail-queue.c to call a perl script (simple
> fork() execlp()).  The perl script I wrote parses the message in
> mess/x/messnum, and adds an appropriate footer (text or html).  (I got
> around the doubled-add by putting in an X- header, also added support for
> the different Content-Types.)
> 
>       Anyways, things looked great during testing (writing to
> /var/qmail/queue/temp.txt, footers were added beautifully), but when it
> came down to actually WRITING to mess/x/messnum:
> 
> Insecure dependency in open while running setuid at /var/qmail/
> bin/footer.pl line 268.
> 
> was the warning I got.
> 
> Does anybody happen to have any insight on what I must do to get this
> working? (At this time in the morning, the only thing I can think of is
> putting in a sleep() in queue, and having a shell script (running as root)
> mv the footer added file to the correct dir (I will not do this ^^;;).
> 
> I would much appreciate any help at all.
> 
> Thank you in advance,
> 
> Masuo Gates
> 
> 
> 
> 





You are using perl -T. $messnum is not untainted, because you get it on
the command line or whatever, which perl doesn't like in taint mode in
a
SUID root program (it might contain for instance
../../../etc/password).
The C program preventing you from doing this is /usr/bin/perl.

I assume:

$msg = $messnum + 0;

or:

$messnum ~= /^(\d+)$/;

then:

$msg = $1;

       open FOO, "> /var/qmail/queue/$msg";

would work.

-Sincerely, Fred

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






Hello all.  How can I get qmail to relay mail for all machines in the same
domain?  I've added the domain to locals and rcpthosts.  I also added
something like 'xxx.xxx.xxx.:allow,RELAYCLIENT=""' to my /etc/tcp.smtp file
and then reloaded the file.  I also restarted qmail (is this necessary?).
I then try to send mail from a Win98 box in the same domain and get an error
like '553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)'.

BTW - this email comes from a qmail machine!  Thanks to all who helped!

-Peter




where I read a description of the deferral strategy (or, as I like to call it,
the curve thingy).  I do not seem to find it in the dist, or on a few sites. 
Would somebody please give me a pointer?

Thanks in advance,

<:)  Lyndon




On Wed, Oct 27, 1999 at 06:43:31PM -0700, Lyndon Griffin wrote:

> where I read a description of the deferral strategy (or, as I like to call it,
> the curve thingy).  I do not seem to find it in the dist, or on a few sites. 
> Would somebody please give me a pointer?

Try Dave Sill's Life with qmail:

http://web.infoave.net/~dsill/lwq.html

-- 
See complete headers for more info




Having moved my qmail installation from a RedHat 5.2 setup to Mandrake
Linux 6.1 the one remaining thing I haven't sorted out is what exactly
one is supposed to to with /bin/mail.

The various documents tell one to stop /bin/mail being executable but
what then happens to programs which explicitly try and call /bin/mail?
I'm getting error messages from inn and a couple of other things as a
consequence of this.

Presumably one moves the original /bin/mail (or deletes it) and puts a
link to a qmail executable in its place but I can't see what at the
moment.

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]           Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/




On Thu, 28 Oct 1999, Chris Green wrote:

> Having moved my qmail installation from a RedHat 5.2 setup to Mandrake
> Linux 6.1 the one remaining thing I haven't sorted out is what exactly
> one is supposed to to with /bin/mail.

I run RH 6.0 with qmail and /bin/mail left as-is. It works fine for
me. YMMV.

-- 
Todd A. Jacobs
Network Systems Engineer




Reply via email to