Selective forwarding of email

2001-05-07 Thread Russell P. Sutherland

I've looked through the mailing list archive and FAQ and
am not sure that what I am looking for has been covered.

I have a machine that is set up to receive all mail
for the given domain:

goaironly.com

There is set of addresses that I want to forward to
a legacy MS$Exchange server. For example:

[EMAIL PROTECTED]
[EMAIL PROTECTED]
etc...

I've got goaironly.com configured as a virtual domain
the the corresponding entries in rcpthosts and virtualdomains:

goaironly.com:aironly

All of the "new" addresses are being handled nicely
by vmailmgr/vdeliver in ~aironly/.qmail-default.
I.e they are being delivered locally.

If I put:

| forward "EXT"@exch.goaironly.com

in ~aironly/.qmail-booking and add the corresponding artificial
smtproute in smtproutes:

exch.goaironly.com::216.13.139.130 

The mail gets forwarded by the rcpt address is now changed.
(From [EMAIL PROTECTED] to [EMAIL PROTECTED])
which the MS$Exchange server may not necessarily like.

Any ideas?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.ca



Re: Passing variables from incoming mails to external prog

2001-04-03 Thread Russell P. Sutherland

* Charles Cazabon ([EMAIL PROTECTED]) [ 3 Apr 2001 09:58]:

> MIS - Ben Murphy <[EMAIL PROTECTED]> wrote:
> > e.g. I want to pass the from and subject to an external prog.
> > But how to do this???
> 
> Use Dan's mess822 pacakge; it includes programs which can extract the contents
> of individual headers from messages.  You can then set environment variables
> based on the output of these programs.  You can find the mess822 package at
> cr.yp.to alongside qmail.

I've also used the CPAN/MIME package in concert with the QMAILQUEUE patch
to fetch information from headers.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.ca



Re: smtp delay with -H and -R

2001-03-29 Thread Russell P. Sutherland

* Ricardo Cerqueira ([EMAIL PROTECTED]) [29 Mar 2001 19:41]:

> > Any ideas as to what the delay is caused by 
> DNS, probably
> > and/or how to eliminate it?
> from 'man tcpserver':
>-llocalname
>   Do not look up the local host name;  use  localname
>   for TCPLOCALHOST.
> So... try adding -l0 to the tcpserver flags

Thanks!

[ Why is it, 15 seconds before someone is kind enough to supply the
correct answer, you find it for yourself by further searching the
email archives?  There has to be a name for this phenomena ]

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.ca



smtp delay with -H and -R

2001-03-29 Thread Russell P. Sutherland

I've experienced a situtation that is wierd...

I'm running qmail-smtpd/qmail-pop3d under daemontools.
Here's the run file:

#!/bin/sh
 
PATH=/var/qmail/bin:/bin:/usr/bin:/usr/local/bin
export PATH
  
QMAILDUID=`perl -e 'print scalar getpwnam qmaild'`
NOFILESGID=`perl -e 'print scalar getgrnam nofiles'`
   
exec tcpserver -v -R -H -x/etc/tcp.smtp.cdb -u$QMAILDUID -g$NOFILESGID 0 25 
qmail-smtpd 2>&1

When I connect to the daemon from the local machine using its IP address

telnet 216.13.139.139 25

there is a 10 second delay or so, as if a remote DNS or ident was being performed
and timing out.

However as you can see, I'm using both the -R and -H switches on tcpserver.

"telnet localhost 25" works fine/normally.

Any ideas as to what the delay is caused by and/or how to eliminate it?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.ca



Re: forward and local copy

2000-08-22 Thread Russell P. Sutherland

* Audouy Jérôme ([EMAIL PROTECTED]) [22 Aug 2000 06:05]:

> i tried a .forward like that but it doesn't work...
> 
> $ cat .forward
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]

Use a .qmail file like the following:

%cat .qmail
[EMAIL PROTECTED]
$HOME/Maildir/

The second line will be the location of your local mailbox.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: qmail-qfilter-problem

2000-08-18 Thread Russell P. Sutherland

* Lars Pfuhl ([EMAIL PROTECTED]) [18 Aug 2000 09:40]:

> i am using qmail-qfilter _without_ B.Guenter's QMAILQUEUE patch.
> qq temporary problem (#4.3.0)

Are you starting qmail-smtpd from the softlimit program?
If so increase the size of the -m argument.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: rblsmtpd and relays.mail-abuse.org

2000-08-11 Thread Russell P. Sutherland

* Robert Sander ([EMAIL PROTECTED]) [11 Aug 2000 04:07]:

> It seems to me that rblsmtpd can only take one "-r" at a time, as I have
> version 0.70 that may be a bit old. But they can be ordered in a row, as
> in
>rblsmtpd -r rbl.maps.vix.com \
>rblsmtpd -r dul.maps.vix.com \
>rblsmtpd -r relays.mail-abuse.org ...

I believe you meant to write:

rblsmtpd -r rbl.maps.vix.com |
rblsmtpd -r dul.maps.vix.com |
rblsmtpd -r relays.mail-abuse.org ...

> That seems to be fixed with the version of rblsmtpd in ucspi-tcp 0.86

Yes.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: error msg 4.3.0 after a reboot

2000-06-23 Thread Russell P. Sutherland

* Rogue Eagle ([EMAIL PROTECTED]) [23 Jun 2000 08:45]:

> 451 qq temporary problem (#4.3.0)
> -applied qmail-queue patch
> -installed qmail-qfilter

If you have installed your start-up scripts from LWQ
try increasing the softlimit value.

I have found that running perl from qmail-qfilter will
cause this error.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Stripping attachments from e-mail

2000-06-19 Thread Russell P. Sutherland

* Max Clark ([EMAIL PROTECTED]) [19 Jun 2000 12:33]:

> Is there a way to selectively strip attachments from e-mail as it passes
> through a qmail server? I want to remove all ".vbs" files from any e-mail.

I've implemented a similar scenario for a client, using the
QMAILQUEUE patch along with some CPAN modules.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: qmail + filter + autorespond

2000-06-06 Thread Russell P. Sutherland

* Gologan, Andrei ([EMAIL PROTECTED]) [ 6 Jun 2000 08:58]:

> we need a litle help with qmail
> We need to block all attachments, except one or two predefined ones. 
> The sender of the mail, has to receive an e-mail saying what type of
> attachment is allowed.

Here are two ideas:

1. Use the QMAILQUEUE patch and write a filter (perhaps using
   Bruce Guenters qmail-qfilter package to intercept all
   in coming mail, scanning it with perhaps the perl CPAN
   MIME-tools package. If the attachment types fail proceed
   accordingly.

2. Use the two queue method as proposed by Dave Sill some
   weeks ago on this list. One the incoming mail is stored
   in a local Maildir, you can process it, scanning for
   deviant messages.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: don't know if anyone noticed this, but...

2000-05-16 Thread Russell P. Sutherland

* Timothy L. Mayo ([EMAIL PROTECTED]) [16 May 2000 17:27]:
> > Adam McKenna writes:
> >  > I was browsing amazon today and noticed it:
> >  > 
>http://www.amazon.com/exec/obidos/ASIN/0672319454/qid%3D958501880/104-5030846-4577265
> >  > Who the hell is Rich Blum?  I never hoid of him.
> > On the other hand, you've heard of me, and I've only written a
> > fraction of a book.  :(
> Ah, but Russ, we know your credentials for being a qmail authority. :) 
> What are Rich's credentials?

What if Mr Blum:

- is writing the Complete Idiots Guide to qMaiL (I at least got
  the "q" part correct). SAMs... h. Say, did not Mr. Levine
  write a similar book?
- is Joe Average Guy writing for Sally HowTO GiveMeaFewExamples.
- has obviously started to "do something" that people on this list
  have only talked about for over 18 months.
- is planning on cashing in on being the first out of the gate.

If any of the above is true, then these things are by definition
to his credit.

America: Freedom, Capitalism, Opportunism... pick any three.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



qmail-qfilter stangeness

2000-05-10 Thread Russell P. Sutherland

I am running with B. Guenter's QMAILQUEUE patch with his qmail-qfilter
package and have difficulty when using perl scripts in the filter
train/pipeline. E.g.  with the QMAILQUEUE file containing:

exec /usr/bin/qmail-qfilter /usr/bin/perl -n -e '{print}'

The remote smtpd session sees:

$ telnet 192.168.1.11 25
Trying 192.168.1.11...
Connected to 192.168.1.11.
Escape character is '^]'.
220 raqee.clikx.com ESMTP
helo dude
250 raqee.clikx.com
mail <[EMAIL PROTECTED]>
250 ok
rcpt <[EMAIL PROTECTED]>
250 ok
data
354 go ahead
To: [EMAIL PROTECTED]
Subject: testing 3

This a test
.
451 qq temporary problem (#4.3.0)


Whereas if I put the equivalent constructs:

exec /usr/bin/qmail-qfilter /bin/awk '{print}'

or

exec /usr/bin/qmail-qfilter /bin/cat

There is no problem.

Any ideas why perl causes this error?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Converting sendmail mailboxes to qMail

2000-05-04 Thread Russell P. Sutherland

* Vince Vielhaber ([EMAIL PROTECTED]) [ 4 May 2000 06:47]:

> If anywhere, you should be able to find it at www.qmail.org.  BTW, what
> is qMail?  

http://madhaus.utcs.utoronto.ca/qmail/mbox2maildir

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: backup MX host

2000-04-22 Thread Russell P. Sutherland

* Tomasz Antczak ([EMAIL PROTECTED]) [22 Apr 2000 09:27]:
> >Add mydomain.com to /var/qmail/controls/rcpthosts
> >on server2.mydomain.com, and make sure that mydomain.com
> >is _not_ in /var/qmail/controls/locals.
> 
> OK. Thanks. But I have one question more. How many messages will be saved
> on backup MX host ?

As many will fit on your disk partition that contains /var/qmail/queue.
In other words you are only limited by the size
of your disk.

> And how long backup MX host store it in queue ? 

By default messages are stored for 1 week (604800 seconds).
To change this value create the queuelifetime file in
/var/qmail/control. For example to decrease the maximumu time
in the queue to 1 day:

echo 86400 > /var/qmail/control/queuelifetime

After making this change you _must_ stop and start qmail-send
in order for the new parameters to take effect.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: backup MX host

2000-04-21 Thread Russell P. Sutherland

* Ronny Haryanto ([EMAIL PROTECTED]) [21 Apr 2000 12:08]:
> > What I must do for in this situation on server1 and server2 ?
> This question has been answered too often. Nothing on server1 and put
> domain.com in ONLY rcpthosts on server2.

Agreed. I have had several private queries this week
as well. [ A person somewhat knowledgable in terms of MTAs and
DNS came up with FAQ 4.1 as covering his query.]

Dan: Perhaps it should be an entry for the Qmail FAQ?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: backup MX host

2000-04-21 Thread Russell P. Sutherland

* Tomasz Antczak ([EMAIL PROTECTED]) [21 Apr 2000 11:57]:

> I have small problem with qmail. I have two serveres, both running
> qmail 1.03. I set DNS for mydomain.com like that:
> 
> IN  MX  0 server1.mydomain.com.
> IN  MX  10 server2.mydomain.com.
> server1 IN  A   10.10.10.1
> server2 IN  A   10.10.10.2
> 
> If host server1 will be "unreachable" I would like to save mail
> for mydomain.com on host server2, and when retransport this saved
> mail to host server1 when it will be reachable again.
> 
> What I must do for in this situation on server1 and server2 ?

Add mydomain.com to /var/qmail/controls/rcpthosts
on server2.mydomain.com, and make sure that mydomain.com
is _not_ in /var/qmail/controls/locals.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



wierd fastforward behaviour

2000-04-18 Thread Russell P. Sutherland

I'm running fastforward 0.51 on a Linux machine.

Normal (default domain) forwarding works fine.

My problem is that email sent to a virtual user
always ends up going to the default address:

@400038fc7ed7129915e4 info msg 164054: bytes 435 from 
<[EMAIL PROTECTED]> qp 5716 uid 503
@400038fc7ed712dd662c starting delivery 19: msg 164054 to local 
[EMAIL PROTECTED]
@400038fc7ed712dd7d9c status: local 1/10 remote 0/20
@400038fc7ed713f492ec new msg 164060
@400038fc7ed713f611bc info msg 164060: bytes 538 from 
<[EMAIL PROTECTED]> qp 5720 uid 502
@400038fc7ed7143b8ae4 starting delivery 20: msg 164060 to remote 
[EMAIL PROTECTED]
@400038fc7ed7143ba63c status: local 1/10 remote 1/20
@400038fc7ed7143bae0c delivery 19: success:
fastforward:_qp_5720/did_0+0+1/
@400038fc7ed7143bb9c4 status: local 0/10 remote 1/20
@400038fc7ed7143bc194 end msg 164054

Here is the test configuration:

# cat ~alias/.qmail-default
|fastforward -d /etc/aliases.cdb 

# cat /etc/aliases
root: alias
postmaster: alias
mailer-daemon: alias

[EMAIL PROTECTED]: [EMAIL PROTECTED]
@wdtsf.com: [EMAIL PROTECTED]

#  printforward < /etc/aliases.cdb
root@:
, &[EMAIL PROTECTED]
;
postmaster@:
, &[EMAIL PROTECTED]
;
mailer-daemon@:
, &[EMAIL PROTECTED]
;
[EMAIL PROTECTED]:
, &[EMAIL PROTECTED]
;
@wdtsf.com:
, &[EMAIL PROTECTED]
;

# env DEFAULT=russ HOST=wdtsf.com fastforward -nd /etc/aliases.cdb
from 
to <[EMAIL PROTECTED]>

# grep wdtsf.com  /var/qmail/control/*
/var/qmail/control/rcpthosts:wdtsf.com
/var/qmail/control/virtualdomains:wdtsf.com:alias

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Local mail for virtual domains

2000-04-07 Thread Russell P. Sutherland

* Jay Moore ([EMAIL PROTECTED]) [ 7 Apr 2000 12:21]:

> I have a user [EMAIL PROTECTED] that has an account on our qmail box 
> and would like the mail delivered to /home/testme/Maildir.  The qmail 
> box is also a virtual domain for sailnet.com.  The default domain for 
> the qmail box is sailnet.net.  
> How do I get her mail delievered /home/test/Maildir instead of 
> /home/vpopmail/domains/sailnet.com/testme/Maildir?

One way is to put:

/home/test/Maildir/

as the contents of file:

/home/vpopmail/domains/sailnet.com/.qmail-testme

E.g.

% cd ~vpopmail/domains/sailnet.com
% echo /home/test/Maildir/ > .qmail-testme

and make sure that  /home/test/Maildir/ et. al. is writable by
the vpopmail user. E.g.

chown -R vpopmail.vchkpw /home/test/Maildir

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Doubts: qmail and IMAP

2000-04-07 Thread Russell P. Sutherland

* Gilberto Rodrigues ([EMAIL PROTECTED]) [ 7 Apr 2000 08:49]:

> I want to use qmail, maildirs and IMAP to config a mail server. I
> installed qmail v1.03, daemontools and ucspi-tcp packages and everything
> is running ok. I downloaded UW-IMAP 4.7b, compiled it, applied David
> Harris patch and build it. Ok, now it's time to install IMAP, but I have
> some doubts (probably they're a little bit basic, but I would be very
> grateful if someone could help me). 

You may also wish to consider Mr. Sam's courier-imap, which works nicely with
Qmail and maildirs:

http://www.inter7.com/courierimap/

[Dave: you could/should perhaps add this URL to the LWQ page in the IMAP
server section]

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: logging under svscan

2000-04-05 Thread Russell P. Sutherland

* Greg Kopp ([EMAIL PROTECTED]) [ 5 Apr 2000 16:16]:

> But my logs are a little on the cryptic side. Here's and example:
> 
> @400038eb9dda14f29e14 status: local 1/10 remote 1/20
> @400038eb9dda14f2d0dc delivery 5206: success: did_1+1+0/qp_24168/
> @400038eb9dda14f3078c status: local 0/10 remote 1/20
> @400038eb9dda14f3366c end msg 48326
> 
> I'm assuming that the "@400038eb9dda14f3366c" has to be some sort of
> time stamp. Is there any way I can make this human-readable in the log or at
> least pass it through something so that I can?

Try sending the output of the file to the tai64nlocal filter.

 $ cat current | tai64nlocal | head
 2000-04-05 09:19:52.107114500 tcpserver: pid 27469 num 0 from 204.164.106.19
 2000-04-05 09:19:58.368163500 tcpserver: ok 27469

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



vpopmail and fastforward

2000-04-05 Thread Russell P. Sutherland

I am currently moving a large "default" email domain
to a vpopmail virtual domain. All of the bits and pieces
are completed except moving all the local aliases.

At present I am using fastforward in /var/qmail/alias/qmail-default:

| fastforward -d  /etc/aliases.cdb 

I have hundreds of aliases and have found fastforward a convenient way
of managing them (rather than hundreds of .qmail-name files). Can the
fastforward tool be used easily with vpopmail. It would be nice to have
the option of one aliases file per vdomain.

Any one had any experience with this?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: moving from mbox to maildir.

2000-03-06 Thread Russell P. Sutherland

* Eric Lalonde ([EMAIL PROTECTED]) [ 6 Mar 2000 22:09]:

> my users currently get email in mbox format in /var/spool/mail, and i want
> to switch to /Maildir/ format. i know there are three subdirectories under
> the user's Maildir, but where do i copy currently unchecked email in
> /var/spool/mail, so that this mail will be listed under Maildir as
> 'unchecked' email?

See for example:

http://madhaus.utcs.utoronto.ca/qmail/mbox2maildir

for a perl script written by Ivan Kohler.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Setting Up a Secure, quick, Pop3 Toaster

2000-02-16 Thread Russell P. Sutherland

* Matt Mouser ([EMAIL PROTECTED]) [16 Feb 2000 18:17]:

> I am setting up a server farm here. I plan to be running many domains on the
> same machine. This machine will be running many services as well such as
> http,ftp, mySQL, etc...Dns will be on a outside machine.  All I need
> 
> Multiple name Based domains  (login as [EMAIL PROTECTED])
> Non-system users (have all mail accounts run as 1 user)
> No relaying
> Autoresponders and forwarders
> Quotas on mailboxes
> Allow command line mailsending (for perl/cgi scripts)

I would start by taking a look at:

Vpopmailhttp://www.inter7.com/vpopmail/
or
Vmailmgrhttp://em.ca/~bruceg/vmailmgr/

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: MIME

2000-02-02 Thread Russell P. Sutherland

* Jeff Russell, AIT ([EMAIL PROTECTED]) [ 2 Feb 2000 09:06]:

> Quick question?
> Does qmail support MIME?  

MIME is something that is supported (or not) by your MUA
(Mail User Agent, e.g. Eudora or Outlook Express). Qmail
is a MTA (Mail Transfer Agent) and does not really care
whether the email messages it's tranporting are MIME encoded or not.

So quick answer... yes.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Bandwidth

2000-02-01 Thread Russell P. Sutherland

* Marek Narkiewicz ([EMAIL PROTECTED]) [ 1 Feb 2000 23:02]:

> I hate to ask such a general question, but hat sort of bandwidth is needed to 
>accomodate up to 1 home 
> dialup users for smtp and pop3 services? I just need some sort o rough estimate as I 
>have a budget to 
> overcompensate somewhat.

I help with an ISP that has a base of ~ 1500 users and 150 dialup
lines. We connect to the Internet with a full T1 line (1.5 Mbps).
The line gets close to saturation most evenings.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: DNS

2000-01-27 Thread Russell P. Sutherland

* Juan E Suris ([EMAIL PROTECTED]) [27 Jan 2000 18:47]:

> How can I get the MX record for my domain? I don't have direct access to the
> DNS.

If you mean: How do I register the MX record for my domain:

When you registered the domain, there were at least two
DNS entries. Get the person(s) who operate/own these machines
to add a MX record for your domain that points to the _name_
of your machine.

If you mean: What machine does the MX record for my domain point to:

Use either of the following two commands:

% host -t mx domain.name

or if this fails:

% host -t a domain.name

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Maildir setup

2000-01-18 Thread Russell P. Sutherland

* Kevin Waterson ([EMAIL PROTECTED]) [18 Jan 2000 15:40]:

> > Try /etc/skel ...
> > The name says it all...
> 
> hmm, there is nothing in this dir?
> What should be there?
> Could I be missing something?

If you put a Maildir in this area, then every new account
will be automatically set up with one. I've used something
similar to:

# /var/qmail/bin/maildirmake /etc/skel/Maildir

Then one can use the "useradd" command to add a new user
and the Maildir will be created automatically.

P.S. I have only used "useradd" on Linux and Solaris systems.
 There may be other tools on other Unix (i.e. BSD) systems.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: Vitual domains?

1999-12-17 Thread Russell P. Sutherland

* Mark E. Drummond ([EMAIL PROTECTED]) [17 Dec 1999 20:03]:

> I was just asked if qmail could do the fol, which I am sure it can, and
> I am sure this is a vitual domains thing, but I lack self esteem and
> need some reassurance ... ;-)

Take a seat, or better still lie down on the couch over there.

This can be done with virtual domains (I am sure there are other
variants as well).

> I want to have email coming in to [EMAIL PROTECTED] redirected to
> [EMAIL PROTECTED] ... possible?

( Read the FAQ and the sections dealing with virtual domains. This
  help is taken directly from Dan's text)

To use the virtual domain approach here is a cookbook approach:

1.  Add  onedomain.com:rufus to /var/qmail/control/virtualdomains
where "rufus" is an account (any old account) that will be handling mail directed
to [EMAIL PROTECTED]

2a. Add onedomain.com to /var/qmail/control/rcpthosts.

2b. Make sure the MX record for onedomain.com is pointing
to the machine that you are performing all these changes.

3.  Set up all default mail for "rufus" to be passed to daotherdomain:

% pwd
% /home/rufus
% cat .qmail-default
# forward all mail destined for onedomain.com to daotherdomain.com
& $[EMAIL PROTECTED]
%

4. Find the qmail-send process and give it a HUP signal to re-read the
   virtual domains file.

Optional note:

It is also possible to have the onedomain.com handled by the alias
user by creating the following file:

% cd ~alias
% pwd
% /var/qmail/alias
% cat .qmail-rufus-default
# forward all mail destined for onedomain.com to daotherdomain.com
& $[EMAIL PROTECTED]

This technique does not require an actual user named "rufus" to be
created.

Finally, to make a long story short, this whole matter is possibly
is better handled by the smtproutes mechanism:

1. Perform 2a and 2b from above.
2. Add the following to /var/qmail/control/smtproutes:

onedomain.com:[a.b.c.d]

   Where a.b.c.d is the IP address of the machine that
   receives mail for the daotherdomain.com

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: qmail appending mail machines name to recipients

1999-12-17 Thread Russell P. Sutherland

* clifford thurber ([EMAIL PROTECTED]) [17 Dec 1999 17:08]:

> I made a post earlier to this list open a PERL program I have written which
> basic opens one file handle ot a CSV file containing usernames and email
> adresses parses them and then sends users mail by writing to a file handle
> opened to qmail. Here is the snippet of code that achieves this:
> 
> $mailprog = "/usr/local/var/qmail/bin/qmail-inject";

etc...

There are also several perl CPAN packages to do this stuff
in a consistent and uniform manner.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: sendmail to qmail

1999-12-17 Thread Russell P. Sutherland

* Yamin Prabudy ([EMAIL PROTECTED]) [17 Dec 1999 01:28]:

> How to convert the mbox format to Maildir format
> I need to convert my sendmail format to qmail with Maildir

Go to the qmail WWW site (www.qmail.org) and fetch either
the convert-and-create (for many users) or  convert a single user
links. They are both perl scripts.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: /bin/mail, what exactly should one do to it?

1999-10-28 Thread Russell P. Sutherland

* Chris Green ([EMAIL PROTECTED]) [28 Oct 1999 04:13]:

> 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 /bin/mail in Linux is not the "/bin/mail" mentioned in the qmail
INSTALL documentation and hence can be left alone.  It (the former) is a
MUA that eventually calls sendmail and so is not affected by qmail. On
other  systems it's known as mailx and is a distant relative of the
original Berkeley mail programme.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: fastforward puzzling behaviour

1999-10-25 Thread Russell P. Sutherland

* Anand Buddhdev ([EMAIL PROTECTED]) [25 Oct 1999 10:16]:
> > I am using fastforward-0.50 with ~alias-default as:
> > % cat ~alias/.qmail-default
> > | fastforward  /etc/aliases.cdb
> 
> That's wrong. You need to invoke fastforward with a -d option:
> 
> |fastforward -d /etc/aliases.cdb

I figured out that the problem was with the version of fastforward.

With fastforward-0.50 one needs to simulate the -d option that
is built into fastforward-0.51 ala:

| RECIPIENT="$DEFAULT"@"$HOST" fastforward /etc/aliases.cdb

[ fastforward -d d does an additional case as well as the above ].

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



fastforward puzzling behaviour

1999-10-22 Thread Russell P. Sutherland

I've looked through the qmail archives and saw similar problems but no
real definitive answer:

I am using fastforward-0.50 with ~alias-default as:

% cat ~alias/.qmail-default
| fastforward  /etc/aliases.cdb
  
Here is the snippet from /etc/aliases:

[EMAIL PROTECTED]:   hamilton

where testvdomain.com is a virtual domain.

% grep testvdomain.com /var/qmail/control/*
/var/qmail/control/rcpthosts:testvdomain.com
/var/qmail/control/virtualdomains:testvdomain.com:alias


fastforward works in test mode:

% env [EMAIL PROTECTED] /var/qmail/bin/fastforward -n /etc/aliases.cdb
from 
to <[EMAIL PROTECTED]>

Which is correct.

But when someone sends mail to [EMAIL PROTECTED], here is the
qmail log:

940612264.876800 info msg 249964: bytes 2651 from <[EMAIL PROTECTED]> qp 24951 
uid 201
940612264.905110 starting delivery 305: msg 249964 to local [EMAIL PROTECTED]
940612264.905124 status: local 1/10 remote 0/20
940612264.921845 delivery 305: failure: Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/
940612264.921860 status: local 0/10 remote 0/20
940612264.960100 bounce msg 249964 qp 24957

Any ideas? 

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



checkpassword and PAM, dark shadows...

1999-10-15 Thread Russell P. Sutherland

I have installed qmail 1.03 on a new RH6.0 intel machine
and have had difficulties getting the checkpassword-0.81
package to work, using its own test script:

/var/qmail/bin/qmail-popup robin /bin/checkpassword pwd

It fails with:

-ERR authorization failed

with _both_ the vanilla checkpassword-0.81 _and_ the one
patched with the PAMifed diffs from the WWW page:

patch < pam-checkpassword-0.81-diffs

The system _is_ using shadow passwords:

# cat /etc/pam.d/passwd
#%PAM-1.0
auth   required /lib/security/pam_pwdb.so shadow nullok
accountrequired /lib/security/pam_pwdb.so
password   required /lib/security/pam_cracklib.so retry=3
password   required /lib/security/pam_pwdb.so use_authtok nullok
shadow
#

I suppose the easiest fix would be to move away from the shadow
passwords.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: qmail-start (qmail 1.03) under RedHat 6.0

1999-09-21 Thread Russell P. Sutherland

* Vladimir Berezniker ([EMAIL PROTECTED]) [20 Sep 1999 21:59]:

> Hi,
> First of all I am a newbie to the *nix.  I use supervise from deamon tools 0.61. 
>To run the following run file:
> *

Go back and read the html man pages for daemontools 0.61 again.
In order to get logging and control to work one
has to put the script for the logging portion  (the stuff after
the pipeline (|) symbol) in the log subdirectory
of the directory that contains the run script for the
qmail-start command and then use svscan to connect
the two:

For example:

/services/qmail/run <-- contains the commands to start qmail
/services/qmail/log/run <-- contains multilog et. al.

with svscan being started (in the background) from the /services
directory.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: setuser command not found

1999-09-18 Thread Russell P. Sutherland

* Subba Rao ([EMAIL PROTECTED]) [18 Sep 1999 16:25]:

> I am following the instruction in 10b of the FAQ. When I try the command with 
>"supervise .."
> I get the message saying,
> 
> bash: setuser: command not found
> 
> Any idea, which package has the "setuser" command?

It is part of the daemontools 0.53 package.
The newer 0.61 version is completely different
and uses setuidgid.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



orbs defence

1999-08-17 Thread Russell P. Sutherland

According to the www.orbs.org battery of tests,
the qmail smtp daemon "fails" in the case:

MAIL FROM:<[EMAIL PROTECTED]> 
RCPT TO: 

{relay} is tested as both [IP.address] and reverse.DNS.name. 

Heavily exploited by spammers and mailbombers. 
Most Lotus Notes/Domino installations fail this. Recently fixed - see

[ See: http://www.orbs.org/envelopes.cgi for this reference.
  Test out your qmail daemon using the http://maps.vix.com/tsi/ar-test.html
  engine.]

This being the case, how does one _prevent_ a mail server which
is running qmail to be _not_ included in the orbs database?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: ORBS and MAPS RBL ?

1999-06-03 Thread Russell P. Sutherland

On Thu, Jun 03, 1999 at 12:39:45PM -0400, Dave Sill wrote:

> See:
> 
> http://Web.InfoAve.Net/~dsill/lwq.html#rblsmtpd

As usual, Dave, thanks for your useful resource. I highly
recommend it, whatever your level of Qmail expertise.

> (I don't have a sample invocation, if someone would like to provide
> one.)

Here's mine:

# Fire up smtpd and logging
# This has hooks to allow select relaying.  See /etc/tcp.smtp.filter
#
/opt/local/etc/tcpserver -v -x/etc/tcp.smtp.cdb -u10109 -g201 \
0 smtp /opt/local/etc/rblsmtpd /var/qmail/bin/qmail-smtpd 2>&1 |
/var/qmail/bin/splogger smtpd &

Note that your uid and groupid will differ, as will the executable
paths. If you have perl a more portable construct is:

 /opt/local/etc/tcpserver \
 -u ` perl -e 'print scalar getpwnam qmaild' ` \
 -g ` perl -e 'print scalar getgrnam nofiles' ` \ 
 etc...

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Re: qmail as external smtp gateway only

1999-05-06 Thread Russell P. Sutherland

On Thu, May 06, 1999 at 01:34:20PM -0400, Jason wrote:

> I believe its going to my dns and trying to send to the server that 
> the MX record points to... (its an external entry, so it wont work)
> this box is eventually going to be on our DMZ forwarding mail inside
> our lan. Is there any way i can just get qmail to 
> force deliveries to the notesbox on my internal network? 

In the smtproutes file use:

domain:[IP address]

instead of

domain:[FQDN]

For example:

bozo.com:[100.110.111.1]

This allows one to simulate an MX record with higher precedence
that those in the DNS.

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca



Configuring a qmail gateway

1999-05-05 Thread Russell P. Sutherland

I have configured a qmail machine to be a pure email gateway/relay
(no local delivery in terms of deliverying a message to a local mailbox)
using virtualdomains.

All incoming email gets routed based upon the recipient address
as follows:

rcpt addresssmtp host

[EMAIL PROTECTED]->  name.domain.com
[EMAIL PROTECTED] ->  smtp.domain.com
user@*.domain.com   ->  smtp.domain.com
etc...

The MX records for domain.com and the wildcard *.domain
are pointing at my gateway machine (gateway.domain.com).

I have implemented the routing of incoming email on the relay
by configuring qmail as follows:

/var/qmail/control:

me: gateway.domain.com

rcpthosts:  domain.com
.domain.com

virtualdomains: domain.com:alias-smtp
name.domain.com:alias-name
.domain.com:alias-smtp

smtproutes: smtp.domain.com:[IP addr of smtp.domain.com]
name.domain.com:[IP addr of name.domain.com]

There are no other files in the control directory.

Note:   [ The gateway has no DNS date for any of the machines names
  that it relays data to ].

/var/qmail/alias:

.qmail-smtp-default:|forward ${EXT2}@smtp.domain.com

.qmail-name-default:|forward ${EXT2}@name.domain.com

This configuration seems to "work".

Any comments on items I may have missed or perhaps a "better way"
to configure this relay?

-- 
Quist ConsultingEmail: [EMAIL PROTECTED]
219 Donlea DriveVoice: +1.416.696.7600
Toronto ON  M4G 2N1 Fax:   +1.416.978.6620
CANADA  WWW:   http://www.quist.on.ca