Re: qmail reliance on passwd file

2001-07-20 Thread Mike Jackson

Al Sparks wrote:
 
 Is there a way to get qmail to deliver email to an account that's
 not in /etc/passwd (or its shadow equivalent)?
 
 In other words, can I set up a separate database (e.g. MySQL)
 that qmail can access for account information?
 
 I note that qmail has /var/qmail/users/assign, but it references
 both UID's and GID's, which are maintained by /etc/passwd.
 
 I am setting up 2 clustered systems that will use shared storage
 (non NFS) to maintain each user's Maildir, and would rather not
 have to worry about keeping 2 separate system's passwd files in
 sync.

qmail-ldap does this, and it contains native clustering code.
www.nrg4u.com for details.

Mike



Re: Request for advice (qmail-remote) Part II

2001-07-12 Thread Mike Jackson

Chris Garrigues wrote:
 
  From:  Greg Elliott [EMAIL PROTECTED]
  Date:  Thu, 12 Jul 2001 10:58:33 +0930
 
  The problem I am trying to resolve is where user3 mails user4 at the
  address [EMAIL PROTECTED]
  I do not want the mail to be sent back to the central mail server and then
  returned to the address
  [EMAIL PROTECTED].
  Instead I would like the branch mail server to realise that user4 is a
  local user and just deliver the mail to user4's
  local mail store.
 
 I suspect the easiest thing to do would be to get the qmail-ldap patches and
 install ldap.
 
 Keep the master LDAP database on the central server and run replica databases on
 each on the branch servers.

I have a master LDAP server on it's own machine, because I use it for
alot more than just email accounts. I have a replica LDAP server on all
mail servers. LDAP replication is done real-time via SSL, only the
master accepts modifications. Mail authentication is pointed to the
local LDAP server on the mail server, so imap/pop passwords never fly in
the clear. If you have failover LDAP and the local server dies for some
reason, it will pick up a remote server and you will be in the clear
unless you are on a vpn. I have asked Sam Varshavchik to implement SSL
in Courier's authldap module. 
 
 Each server would then be able to use LDAP to determine where the mail really
 belongs.

 The mail routing works very well to remote offices in US, Japan, and
Germany. You also need Henning's dash-trick patch. This is required so
that you can store aliases and pointers to ezmlm lists in LDAP,
otherwise you have to use the same outgoing mail server for all offices
and that is not too cool. I can provide details on how to do this if
needed.
 
 I haven't used all the functionality that this would require, but I'm fairly
 certain that qmail-ldap has everything you'd need.

And alot more. Join the qmail-ldap mailing list from www.nrg4u.com.

Regards,
Mike



Re: Netgear RP114 Router doesn't work well with Qmail POP daemon?

2001-07-09 Thread Mike Jackson

James Stevens wrote:
 
 I had a similar problem however my resolve to it was to take an *OLD* 286 I
 had laying around install a fairly bare installation of Linux on it and
 installed the DNS service. Then I put that online behind my firewall and
 added it's IP for port 53 to my NAT/Firewall and assigned it as the primary
 DNS server for my qmail machine. That resolved everything... However I don't
 know how many of ya out there have old 286 machines just laying around but
 you can use any machine you want you can even install bind on the qmail
 machine itself the only reason I didn't was I did not want the load of the
 DNS service on that machine.

djbdns.



Re: Why isn't qmail delivering anything?

2001-07-04 Thread Mike Jackson

Moritz Schmitt wrote:
 
 Hello again,
 
 at first: sorry to ask two big questions a day but I a little lost. With
 qmail. Only with qmail. Anymways here we go:
 
 I am supposed to set up a mail server for a little LAN which delivers local
 and remote messages via SMTP. For receiving messages I am going to use
 serialmail but that's not my problem. At least not yet.
 I'm using FreeBSD 4.2 RELEASE and qmail 1.03 from the ports. qmail installed
 properly and I can talk to it via TCP/IP on port 25. My local DNS server is
 running Bind 8 and working fine without any problems. If I send a message
 from a client in the network to a local user on the server qmail accepts the
 message and everything looks fine until you start to wonder why qmail isn't
 delivering the message. qmail has delivery problems, the /var/log/maillog
 file says:
 
 (...) starting delivery 33: msg (...) to remote [EMAIL PROTECTED]
 (...) delivery 33: deferral CNAME_lookup_failed_temporarily._ (#4.4.3)\

You don't have your MX records for your domain in DNS.

Mike



Re: Why isn't qmail delivering anything?

2001-07-04 Thread Mike Jackson

Moritz Schmitt wrote:
 
 Hello again,
 
 at first: sorry to ask two big questions a day but I a little lost. With
 qmail. Only with qmail. Anymways here we go:
 
 I am supposed to set up a mail server for a little LAN which delivers local
 and remote messages via SMTP. For receiving messages I am going to use
 serialmail but that's not my problem. At least not yet.
 I'm using FreeBSD 4.2 RELEASE and qmail 1.03 from the ports. qmail installed
 properly and I can talk to it via TCP/IP on port 25. My local DNS server is
 running Bind 8 and working fine without any problems. If I send a message
 from a client in the network to a local user on the server qmail accepts the
 message and everything looks fine until you start to wonder why qmail isn't
 delivering the message. qmail has delivery problems, the /var/log/maillog
 file says:
 
 (...) starting delivery 33: msg (...) to remote [EMAIL PROTECTED]
 (...) delivery 33: deferral CNAME_lookup_failed_temporarily._ (#4.4.3)\
 
 First of all: The delivery should be a local and not a remote delivery
 because my local domain is waagen-schmitt.de. And the second thing is that I
 don't understand why qmail has a DNS lookup failure because my DNS server is
 running fine. See, I'm pretty lost and confused right now so I'm posting my
 config files and I would appreciated if you could tell me where my problem

Hi,
 It sounds like you might have made changes to the control files and not
restarted the appropriate processes. Some control files only take effect
after you have restartd qmail-send or qmail-smtpd. If you are using
/service then  svc -t /service/* should do it. Otherwise, the
configuration looks fine. If this does not work, then post your
smtproutes file. 

Mike



Re: Why isn't qmail delivering anything?

2001-07-04 Thread Mike Jackson

Moritz Schmitt wrote:

 I already restarted the server, which means that I restarted qmail. The
 hosts you found with dnsmx are not my servers but my providers DNS servers.
 The DNS I am running is just for my LAN and actually I only set it up for
 qmail. We are still using a dial up account. What I want to do is to collect
 all mail on the machine with qmail (ws1) and then using cron to send all
 mail to our ISP's mailserver every 30 minutes or so. Same on the way back:
 Using serialmail to receive every 30 minutes new email.
 

The DNS servers in your /etc/resolv.conf file are probably those of your
ISP, right? We have already seen that their MX records for your domain
are not the same as what you have on your internal DNS server. Qmail is
probably trying to find the MX records from your ISP, but the machine
isn't dialed onto the net so it fails. That is why you are seeing DNS
lookup failures. You will have to do some DNS trickery to get this
working right. Qmail is meant for well connected machines.

Mike



Re: Problem with qmail-remote during Delivery

2001-06-28 Thread Mike Jackson

 D Rajesh wrote:
 
 Hi there,
 
 Firstly, sorry for a long mail.
 I have sent 30,000 mails to different domains like yahoo, hotmail,
 rediff etc...
 Before mentioning the problem the configuration that I have used in
 qmail is as follows:-
 qmail config
 --
 1.) Two qmails running at /var/qmail and /var/qmail1 with silent
 concurrency limit to 200 for both

What was wrong with the answer I gave you on Tuesday? One more time, set
up a box called slowmail and smtproute your slow moving deliveries to
it. 

Mike



Re: Problem with qmail-remote during Delivery

2001-06-28 Thread Mike Jackson



Peter van Dijk wrote:
 
 On Thu, Jun 28, 2001 at 09:25:16AM -, [EMAIL PROTECTED] wrote:
 [snip]
  Try running a real MTA like Iplanet messaging server, Sendmail, Notes or Exchange 
server. Even Exchange 4.0 is more advanced than qmail. Qmail was an attractive option 
when we had less than 300 users, because it was free, but now that our company has 
over 1500, it is not robust enough.
 
  Hotmail is a modified attempt at fixing the qmail bugs. Hotmail is only using 
qmail today because a change in software will cause an interruption in service. They 
are stuck with it for the time being.
 
 Why do we have 10 trolls on this list all of a sudden? Go away!

Peter,
 It's most likely the same person who started the 'Peter from the Dike'
thread. At least he's using the same sneakemail service. If everybody
just ignores anything sent from sneakemail.com then we will probably be
a whole lot better off.

Mike



custom bounce text

2001-06-27 Thread Mike Jackson

Hi,
 The qmail-ldap patch contains support for a control/custombouncetext. 

$ cat custombouncetext 
This is a test, your message bounced.
SSH Communications Security

This will produce bounces like so:

-
Hi. This is the qmail-send program at ssh.com.
I'm afraid I wasn't able to deliver your message to the following
addresses.
This is a permanent error; I've given up. Sorry it didn't work out.

This is a test, your message bounced.
SSH Communications Security


[EMAIL PROTECTED]:
Sorry, no mailbox here by that name. (#5.1.1)
---

The patched file is qmail-send.c. I suppose you could pull the code from
there, even if you don't use the rest of the ldap stuff.

Regards,
Mike



Re: qmail-injecting a message with 50K Bcc:

2001-06-26 Thread Mike Jackson

Daniel Kelley wrote:
 
  Wrong. Ezmlm is what you need. It's a high speed mailing list manager,
  and with the qmail-verh patch you can have individual addressing. You
  can also take input from a text file of one address per line when
  subscribing the list members.
 
 does this hold true for one-time mailings?  i'm sending a very dry email
 detailing the ownership change of a corportaion, so i can't forsee many
 responses (bounces are, of course, another story).

It is not a difficult piece of software to set up, and doesn't take very
much space. If you decide to install it, it will be there when you need
it the next time for whatever reason. I can't imagine that a corporation
wouldn't have something to manage even their internal mailing lists
with, to keep archives, etc.
 
 the reason that i originally tried to do this with qmail-inject instead of
 elmlm was that i never saw a need to have list-like behavior (replies,
 postings,etc).  that being tha case, is ezmlm still the best option?

Hmm. You can set up an ezmlm list that is moderated, with no posting
except moderators. The best option will be in your opinion, ultimately.

Mike



Re: qmailanalog usage

2001-06-26 Thread Mike Jackson

 Mark Douglas wrote:
 
 I'm trying to figure out how I should get the stats I want out of
 qmailanalog, along with some other things I'd like to do. My main
 issue is, if I wanted to do a daily log rotation, would it be feasible
 to do the following (using multilog): Set my logfile size to 100MB; at
 end of day, have a cron job run that copies the current file to
 another, dated file; echo  /var/log/qmail/current to empty out the
 log file and start fresh. I realize it's not pretty, but the real
 issue is, would it cause problems?
 
 Thanks,
 
 Mark Douglas - Architecture
 Sympatico-Lycos Inc.
 All your base are belong to us! Make your time!

There is a patch written by William Baxter for multilog that causes it
to rotate logs ASAP upon receiving
SIGHUP.  You can find it at

http://www.superscript.com/patches/multilog.c.hup

Mike



Re: Higher number of deliveries

2001-06-26 Thread Mike Jackson

 D Rajesh wrote:

 We have a database of 100,000 mails and we will be sending
 personalized mails to each user automatically. We use redhat 6.2 (
 extfs, kernel 2.2.14 ) and qmail for mailing.

This should take no longer than 4.5 to 5 hours to deliver to all
reachable mail servers, with a low-end box running remoteconcurrency of
120. I have a low-end NetBSD box that delivers 1800 messages every 5
minutes with remoteconcurrency set to 120.

 The problem is that, when I tried sending  4700 mails ( to different
 domains . say like yahoo, hotmail, rediff, etc and not a single
 user in my domain ), it took one whole day to send all the mails..
 qmail-inject placed mails in the queue at a speed of 70 - 90 mails in
 a second. But, if the logs are checked, it took one whole day to
 finish sending all the mails

You didn't happen to get a line like this in /var/log/qmail/current or
maybe a rotated log file, did you?

@40003b1d11932a837604 delivery 41: deferral:
qmail-spawn_unable_to_create_pipe._(#4.3.0)/

If so, then you need to adjust the ulimits of your system and up the max
processes and max open files per process. Man ulimit.
 
 What should I do to send say a million mails in a day ?

Set up a main qmail box running ezmlm, that has a list with 4 addresses
subscribed: sublists. Set the sublists to each route to a seperate qmail
box via smtproutes. Set up 4 more qmail boxes, each with ezmlm running
the appropriate sublist. Subscribe one quarter of the subscribers to
each box in the sublist. This should take between 8-9 hours to send out
1 million mails. BTW, these boxes don't need to be high end monsters
like the one you described above. 

 You could probably decrease your sending time to 6 hours or something
if you use the large-concurrency patch. You probably also need to use
the large to-do patch so the queues can handle more than 10,000 messages
at a time.

Regards,
Mike



Re: Higher number of deliveries

2001-06-26 Thread Mike Jackson

Markus Stumpf wrote:
 
 On Tue, Jun 26, 2001 at 03:07:48PM +0530, D Rajesh wrote:
  The problem is that, when I tried sending  4700 mails ( to different
  domains . say like yahoo, hotmail, rediff, etc and not a single user
  in my domain ), it took one whole day to send all the mails.. qmail-inject
  placed mails in the queue at a speed of 70 - 90 mails in a second. But, if
  the logs are checked, it took one whole day to finish sending all the mails
 
 It sometimes takes me 2 or 3 days to get only one message delivered to yahoo.
 This is not a problem that you can fix with qmail configuration on your
 side.
 The problem is with yahoo and their mailservers and I can see it for more
 than one year.

Hi,
 You can dedicate a box called slowmail.abc.com and smtproute all of
these problematic domains to it; just add them as they appear. This way
your queues don't stay jammed full of trash, thus slowing down
everything else. 

 Now, we are up to 6 low-end pentium boxes for a million mail per 8-9
hours list. 

lists.abc.com (front-end box)
lists1.abc.com (sublist carrying 25% of subscribers)
lists2.abc.com ( )
lists3.abc.com ( )
lists4.abc.com ( )
slowmail.abc.com (smtproutes from lists1-4 point here)

Mike



Re: YALQ (Yet another LDAP Question)

2001-06-25 Thread Mike Jackson

Andrew J Herbert wrote:

 I've now played with qmail_ldap, but fail to see that I can implement it
 in the same structure as everything else, as it seems primarily geared
 toward 'virtual users'.
 

 You want qmail-ldap. If these are mail servers, why do users need to
have a system account? They aren't administrators. I run several
qmail-ldap servers, with only system accounts for the IT staff. Even if
they need a system account, you can store their mail in
/var/qmail/maildirs owned and grouped to the qmail-ldap daemons, and
make them use pine over IMAP or pop. 

 UW-Imap is a resource HOG. You have to patch it twice to get it to work
in your setup, and you have to recompile it when you make configuration
changes. Low tech. Courier Imap has native support for ldap
authentication and maildirs, has low memory requirements, and can be
reconfigured without recompiling.

Regards,
Mike



Re: YALQ (Yet another LDAP Question)

2001-06-25 Thread Mike Jackson

Andrew J Herbert wrote:
 
 1. We use Eudora as a mail client, it's not my choice unfortunately, and
 it thrashes Courier, whilst UW doesn't break a sweat, due to the odd
 way Eudora implements mail filters (using UID's).

Yes, I have encountered this with 2-3 of my users who just refuse to
leave Eudora. It's not a problem with this number, but if everybody used
it then it would be.
 
 2. We have to have people having logons in the system, this isn't just
 email we're talking about, hence why I said I want to use real users, and
 not virtual users. Also we run a web based front end to procmail for mail
 filtering that has to be 'grannied' in.

Fine if people log on then, but they don't need to have their maildir
stored in their home directory. Set your global pine configuration to
use IMAP instead of accessing an mbox. This takes away fast text
grepping, but provides alot of ease for administration. Qmail-LDAP will
work in this environment.

Regards,
Mike



Re: qmail-injecting a message with 50K Bcc:

2001-06-25 Thread Mike Jackson

dan.kelley wrote:
 
 hi-
 
 i'm trying to send a message to a list of approx. 50K email addresses.  i
 figured that the best way to do this was to use qmail-inject with the 50K
 addresses listed in one giant Bcc: line.

Wrong. Ezmlm is what you need. It's a high speed mailing list manager,
and with the qmail-verh patch you can have individual addressing. You
can also take input from a text file of one address per line when
subscribing the list members.

Mike



Re: qmail + LDAP + Solaris + Big number of mailboxes

2001-06-22 Thread Mike Jackson

Jesús Arnáiz wrote:
 
 Hi!
 
 We have about to five million mailboxes and we are wondering if there is any
 project that includes qmail under Solaris with LDAP authentication.
 
 We know it works, but we want to know about its performance.
 
 If someone have worked with a similar implementation please tell us how it work.
 

Qmail-ldap home page is at www.nrg4u.com.

Qmail-ldap mailing list is [EMAIL PROTECTED]

I use qmail-ldap on solaris 8 sparc and it works great, but I only
support about 200 imap users.

Regards,
Mike



Re: Java and Qmail - building a large mailmerge server - plain text version

2001-06-22 Thread Mike Jackson

manav wrote:

 The objective is to build a high-volumer server capable of doing mail-merged
 email blasts to several lists with 10,000 to 1,000,000 users, provide
 detailed reports about the status of emails (sent, bounced, bad email
 addresses, opened, forwarded), list management (across multiple lists for
 each user) and of course, stability.
 
 Over the period of last 12 months, we explored several options - and finally
 settled on qmail (what else?). I am using a Pentium III with Linux Redhat
 6.2 installed on it, with 512 MB of RAM, 20 GB HDD and JDK 1.2.2 connected
 to a 128 Kbps line.
 

Before you go any further, get a real pipe. Why do people insist that
their Volkswagen Beetle is capable of keeping up with a Ferrari on the
autobahn? The volume of messages that you are trying to send is nothing
short of ridiculous with a 128Kbps line.

--
Mike



Re: Java and Qmail - building a large mailmerge server - plain text version

2001-06-22 Thread Mike Jackson

manav wrote:
 
 Hi Mike, Russ,

Hi !

 
 We are running the alpha phase right now (with whatever current
 implementations we have), and I have serious doubts about the stability and
 scalability of the system. The maximum load that I've put on my production
 boxes is 250,000 emails so far and I've had similar issues that I mentioned
 on my development boxes (the ones that are resemble a Beetle, to quote Mike
 :-) ).

Just as an example of the speed of qmail and ezmlm:

Machine: 1U rackmount cheapo 600Mhz Celeron, 128MB RAM, 18GB hard disk
OS: NetBSD 1.5
MTA: Qmail 1.03 with only the verh patch
List Manager: Ezmlm 0.53 with idx 0.40
remoteconcurrency: 120

Here are some stats from the first large mailing with this server. As
you can see, within 15 minutes most of the deliveries were completed.
The only kernel tuning I did was to raise the max processes to 256 and
max open files per process to 512. The numbers look a little off since
there are a few old messages still going through, mostly mail servers
that were previously unreachable.

12.45.21message sent to 4773 addresses

12.50.001738 deliveries
1924 attempts
1761 successes
187 failures

12.55.001775 deliveries
1937 attempts
1779 successes
166 failures

13.00.00423 deliveries
455 attempts
433 successes
32 failures

13.05.0013 deliveries
14 attempts

13.10.002 deliveries
2 attempts
---
Total   3951 deliveries
4332 attempts

 With the large concurrency patch, this throughput could be increased
significantly. I will put it into use if I get a requirement to send to
at least 10,000 addresses.

 Using qmail-ldap and qmqp with a frontend master server and several
slave servers, you can distribute the load among several servers very
easily. For example, if you have 4 slave servers then use a unique
mailhost attribute for each quarter of your subscriber base. The
scalability of qmail-ldap is almost limitless, I think. The master
server will transfer the qmqp messages to the slave servers via qmqp
faster than you can even dream of. For more info, www.nrg4u.com
qmail-ldap homepage.

Regards,
Mike



Re: restart without rebooting

2001-06-18 Thread Mike Jackson

[EMAIL PROTECTED] wrote:

  Someone told me to try 'killall -SIGHUP qmail', but someone else said this
  might kill everything running - that the machine would not read to the
  'qmail' at the end of the line.
 
 That is not true, killall only kills the specified command with the
 specified signal.

Oh yeah? Try using the killall command on Digital Unix OSF1 v4.0 and see
what happens. It kills all processes for whatever user you are logged in
as (try to image root).

Mike



Qmail MIB?

2001-06-18 Thread Mike Jackson

Hi,
 Has anyone written a MIB for qmail, so that snmp can be used to gather
stats+

Thanks,
Mike



Re: qmail-remote (cry wolf?)

2001-06-07 Thread Mike Jackson

Jörgen Persson wrote:
 
 Sorry, but I'm not all comfortable with this...
 
 There's been 4 similar reports of qmail-remote not behaving properly to
 this list during the last month.

 We still haven't been able to help any of them...
 
 This doesn't look like a coincidence to me since two of the reports
 concerned the same recipient server (outblaze.com). Unfortunately it
 seems related to network programming, which I know very little about.
 
 Any other thoughts about this?
 
 Jörgen

Hi,
 Just a little investigation.

$ nslookup

 set type=mx
 outblaze.com

outblaze.compreference = 20, mail exchanger = mg.hk5.outblaze.com
outblaze.compreference = 10, mail exchanger = spf1.hq.outblaze.com


 I was curious if they both ran the same MTA, so I checked it out.


$ telnet spf1.hq.outblaze.com 25
Trying 202.77.223.28...
Connected to spf1.hq.outblaze.com.
Escape character is '^]'.
220 spf1.hq.outblaze.com ESMTP Postfix

$ telnet mg.hk5.outblaze.com 25
Trying 202.123.209.152...
Connected to mg.hk5.outblaze.com.
Escape character is '^]'.
220 mg.hk5.outblaze.com ESMTP Sendmail 8.11.2/8.11.2; Thu, 7 Jun 2001
19:26:17 GMT


 What are the probabilities of the Sendmail server being the one causing
the problems? What if the mail admin of mg.hk5.outblaze.com has used
some sort of patch that is causing qmail-remote's to hang? Has anyone
communicated with outblaze.com's postmaster?

--
Mike



Make multilog rotate according to time?

2001-05-15 Thread Mike Jackson

Hi,
 I would like to use qmailanalog to make a daily report that will get
mailed to the local administrative staff. I would like to have the
reports include exactly 24 hours of activity. I thought that the easiest
way to do this is to have multilog start a new log file at 0.00 every
day, but couldn't figure out how to do it. I have looked at the multilog
source and man page, and it seems to only rotate logs based on size. How
are you guys doing this? 

 Please cc me also with your reply.

Regards,
Mike



Re: MASS mailing

2001-05-13 Thread Mike Jackson

Charles Cazabon wrote:

 There's other tricks as well, but with the above list you should easily be
 able to handle 1M deliveries a day on decent hardware.  I'm afraid I'm not
 familiar with the Netra you mention.
 

Netra's are little 1U pizza box style 'servers'. They are meant for
telecom operators, etc. I use one for a qmail/courier imap server for a
few hundred users, and it's ok. I definitely would not consider it a
'high end' solution. Yes, Solaris is slow, but it's also stable. Sort of
like an old John Deere tractor ;-). I wouldn't use one of these for a
million message per day list, although a cluster of them might be ok.

Mike



Re: Huge Maildirs?

2001-05-08 Thread Mike Jackson

List Monkey wrote:
 
 Does anyone have experience with HUGE Maildir's?  I have an account that
 is subscribed to a lot of high traffic mailing lists (like this one), and
 I want to keep all the messages on my server.
 
 I have seen grumblings, but no concrete info, on what may happen when your
 Maildir contains 10,000 or 100,000 or 1,000,000 messages?
 
 I am running 2.2.* Linux
 
 Thanks.

Hi,
 I have one account that has 248,881 messages in it's maildir/new
directory, and receives many messages every day. Don't ask me what the
account is for because IMHO it's useless, but I will say that nobody
reads it with an email client. The OS is Solaris 8, platform is Sun
Netra T105 (sparc), filesystem is UFS. I'm using Qmail-LDAP, which
shouldn't really perform any differently in this respect than the stock
Qmail, and there are no problems constantly delivering messages to this
account. 

 The thing you need to keep an eye on is your available inodes. I have a
36GB SCSI external disk mounted to /var/qmail/maildirs and this is how
it looks now. By the looks of things below, I'll run out of disk space
long before I run out of inodes.

$ df -i
FilesystemInodes   IUsed   IFree IUse% Mounted on
/dev/dsk/c0t15d0s5   4266304  728388 3537916   17% /var/qmail/maildirs

$ df -k
Filesystem   1k-blocks  Used Available Use% Mounted on
/dev/dsk/c0t15d0s535292880  14155186  20784766  41%
/var/qmail/maildirs

Regards,
Mike



daemontools won't compile

2001-04-25 Thread Mike Jackson

Hi,
 Box is Mandrake 8.0 final, kernel 2.4.3-20mdk. I get the following
error when trying to compile daemontools. It also happened to me on a
Redhat 7.1 box. I think it's something gcc version 2.96 2731
related. Somebody please help me patch this file so it will compile.

This is the error I am receiving:

./compile tai64nlocal.c
tai64nlocal.c: In function `main':
tai64nlocal.c:58: warning: assignment makes pointer from integer without
a cast
tai64nlocal.c:59: dereferencing pointer to incomplete type
tai64nlocal.c:61: dereferencing pointer to incomplete type
tai64nlocal.c:63: dereferencing pointer to incomplete type
tai64nlocal.c:65: dereferencing pointer to incomplete type
tai64nlocal.c:67: dereferencing pointer to incomplete type
tai64nlocal.c:69: dereferencing pointer to incomplete type
make: *** [tai64nlocal.o] Error 1

Here are lines 59-69 from tai64nlocal.c
---
out(num,fmt_ulong(num,(unsigned long) (1900 + t-tm_year)));
out(-,1);
out(num,fmt_uint0(num,(unsigned int) (1 + t-tm_mon),2));
out(-,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_mday,2));
out( ,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_hour,2));
out(:,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_min,2));
out(:,1);
out(num,fmt_uint0(num,(unsigned int) t-tm_sec,2));


Thanks,
Mike



Re: RFC 2821 and 2822

2001-04-25 Thread Mike Jackson

Matthew Patterson wrote:
 
 I'm not very good at reading RFCs, so I can't be sure myself. Can anyone
 confirm that qmail 1.3 with the BigDNS and queuevar patches will be
 compliant with whatever standards may come out of RFCs 2821 and 2822?

It could literally take years for RFCs to become standards, if they ever
do. You don't have to worry too soon, I think.

 I'm sure that there will be some schmuck member of management will hear
 about these and come to me pulling their hair out, wondering how we will
 ever survive moving to these new processes, and will end up suggesting
 moving to Exchange 2000 because 'Microsoft always follows standards'.

Microsoft is the standard deviation from the norm. err the standards
deviator from seattle. well, you get the point.

mike



Re: aliases issue !!!

2001-04-22 Thread Mike Jackson

David Young wrote:
 
 Could he do something like use a .qmail file to pipe the message into a
 script that would examine headers and then only deliver if the message was
 from the local domain? I guess that the headers could be forged easily
 enough to get around this, but at least if could be a plausible attempt.


Sure, it might reduce the number of unwanted messages, but there is no
guarantee it will stop everything. It's not much more difficult to set
up ezmlm and do it the right way. Aliases are low tech and should not be
used for more than 2-3 recipients, imho. ;-)

Mike



Re: aliases issue !!!

2001-04-21 Thread Mike Jackson

 [EMAIL PROTECTED] wrote:
 
 Hello all ,
 
 I still didn't get an answer for my question about aliases defined in
 /etc/aliases regarding their vulnrabilty to outside world .
 
 I am not intersted in letting people use certain aliases in
 /etc/aliases from the outside and maby even restrict the access to
 these aliases to certain users only .

 How can I do cause now  everyone can use these aliases like
 [EMAIL PROTECTED] which is a spam hole .
 
 Thanks ,
 Nissim .

You can't restrict who can use aliases. Anyone who can send mail to your
system can send mail to all aliases that exist on the system. If you
convert the aliases to Ezmlm lists, you can restrict posting to
subscribers and even moderate lists.

Mike



Re: How to re-direct mail based on target domain

2001-04-21 Thread Mike Jackson

David Means wrote:
 
 AOL will not accept mail from my server because I have a dynamic
 IP address.  How do I configure qmail to send messages destined for
 AOL to my ISP?
 
 Thanks,
 
 David

man qmail-remote. Set up an smtproute something like:

aol.com:your-isps-smtp-server


Mike



Re: Syncing IMAP mailboxes

2001-03-28 Thread Mike Jackson

Gavin Cameron wrote:
 
 Hi,
 
 Anybody out there know of a tool that will allow me to sync an IMAP mailbox
 that contains about 25 additional IMAP folders apart from the INBOX???
 
 I've tried isync but that will only do one folder at a time. I'd like a tool
 that I can point to my INBOX and from there let it sync everything.
 
 Thanks in advance,
 Gavin

- Fetchmail, pay close attention to the switches to leave the mail on
the server.
- Netscape Messenger
- Outlook Express
- Eudora

Mike



users/assign Problems! Please Help.

2001-03-27 Thread Mike Jackson

Hi,
 I am trying to sort the 2000 or so .qmail-* files that I have in
/var/qmail/alias. I have created three subdirectories with the same
alias:qmail ownership:

/var/qmail/alias/system
- will contain system aliases such as postmaster, root, toor, manager,
etc

/var/qmail/alias/ezmlm
- will contain ezmlm aliases

/var/qmail/alias/normal
- will contain everything else

 I want to use the users/assign file to assign the new locations to
these .qmail-* files. The benefits of organizing my aliases into
different directories are quite large to me, since I want to write some
web apps for users to list and possibly manipulate aliases. Only certain
users could change system aliases, and certain other users could change
normal aliases. You get the point...

 My first test of just the system aliases got me into really big trouble
on my test system. It took me about an hour to repair the damage caused.
Read below to see what I did, and if you can tell me where I am going
wrong.

- copied the system aliases into their new location and made sure the
permissions were correct.
- wrote a users/assign file and ran qmail-newu.

uid=7790(alias)
gid=2107(qmail)

/var/qmail/users/assign
---
=bin:alias:7790:2107:/var/qmail/alias/system:::
=daemon:alias:7790:2107:/var/qmail/alias/system:::
=decode:alias:7790:2107:/var/qmail/alias/system:::
=dumper:alias:7790:2107:/var/qmail/alias/system:::
=games:alias:7790:2107:/var/qmail/alias/system:::
=ingres:alias:7790:2107:/var/qmail/alias/system:::
=mailer-daemon:alias:7790:2107:/var/qmail/alias/system:::
=manager:alias:7790:2107:/var/qmail/alias/system:::
=news:alias:7790:2107:/var/qmail/alias/system:::
=nobody:alias:7790:2107:/var/qmail/alias/system:::
=operator:alias:7790:2107:/var/qmail/alias/system:::
=postmaster:alias:7790:2107:/var/qmail/alias/system:::
=root:alias:7790:2107:/var/qmail/alias/system:::
=system:alias:7790:2107:/var/qmail/alias/system:::
=toor:alias:7790:2107:/var/qmail/alias/system:::
=uucp:alias:7790:2107:/var/qmail/alias/system:::
=uucp-default:alias:7790:2110:/var/qmail/alias/system:::
.

 The result of this action what that file ownerships of my entire qmail
install got changed to have an owner of alias, group of root. All of
qmail/queue and qmail/bin were completely hosed. Qmail wouldn't even
accept messages because it couldn't write to the queue. This took me
about an hour of comparing between another functioning system to get all
the file permissions and owners/groups correct again. 

 How is qmail/bin/qmail-newu command changing the
group/owner/permissions of my entire qmail installation? This is pretty
unforgiving if a person new to this technique makes some mistake in the
assign file, like I obviously have. I just couldn't believe that it
could even do this. 

 If somebody knows where I messed up, please reply to me and the list.

Thanks,
Mike



test, it appears that my postings are not arriving

2001-03-27 Thread Mike Jackson

test, disregard



Re: migrating from MS Exchange to q-mail

2001-03-27 Thread Mike Jackson

"Tuchyna, Roman" wrote:
 
 Hello,
 does anybody have any experience with migrating from MS-Exchange to q-mail
 on Linux ?
 
 Thank you in advance!
 Best regards,
 
 Roman Tuchyna
 
   _
   Roman Tuchyna   ST Slovakia, s.r.o.
   phone: +421769258111, +421769258109 Polianky 5
   fax: +421769258212  844 04 Bratislava
   E-mail:[EMAIL PROTECTED] Slovakia
   http://www.snt.sk
   _
 



Subject: 
   Finally a tool to convert Outlook to mbox
   Date: 
   Fri, 16 Mar 2001 17:20:43 +0200
  From: 
   Mike Jackson [EMAIL PROTECTED]
To: 
   [EMAIL PROTECTED], [EMAIL PROTECTED]




Finally there is a tool to convert outlook mailstores to unix format
(mbox). One downside is that it only runs in windows (they get ya comin'
and goin'). It could be modified to alternatively output to maildir, or
the mbox2maildir script could just be ran afterwards as part of the mail
server upgrade process. 

From the KDE Kmail pages at:  http://kmail.kde.org/download.html

out2unix --- http://www.active-com.de/out2unix/

Have Fun!
Mike



Re: migrating from MS Exchange to q-mail

2001-03-27 Thread Mike Jackson

"Tuchyna, Roman" wrote:
 
 O.K., but how can that tool help it the mailboxes are on the MS-Exchange
 server and users are using just JAVA GUI of MS-Exchange ?
 
 Thank you again!
 Roman
 

That is left as an exercise for the motivated administrator.

Mike



Finally a tool to convert Outlook to mbox

2001-03-16 Thread Mike Jackson

Finally there is a tool to convert outlook mailstores to unix format
(mbox). One downside is that it only runs in windows (they get ya comin'
and goin'). It could be modified to alternatively output to maildir, or
the mbox2maildir script could just be ran afterwards as part of the mail
server upgrade process. 

From the KDE Kmail pages at:  http://kmail.kde.org/download.html

out2unix --- http://www.active-com.de/out2unix/

Have Fun!
Mike



Re: Scanning qmail LOGs ~ cronjob...

2001-03-13 Thread Mike Jackson

Jesse Sunday wrote:
 
 Sort of off topic, I know...
 
 Someone please enlighten me as to how I would have a cron job scan my
 /var/log/maillog for a sting (or more)
 
 /usr/local/sbin/postfix check; egrep '(reject|warning|error|fatal|panic):'
 /var/log/maillog
 
 ^^ Is a cron job I have now...   would it be similar???
 
 grep /var/log/maillog (words) | mail -s "Yack" [EMAIL PROTECTED]  ???  how
 would I do it???
 
 Thanks!!!
 
 Jesse
 
 PS I am not asking how to install cron jobs, just what string would I use...


Write a shell or perl script that does what you want, and run the script
from cron. It would seem to make alot more sense...

Mike



Re: Need Arguments for qmail

2001-02-21 Thread Mike Jackson

Jason Radford wrote:
 
  Recently switching from sendmail to qmail I have observed the difference in
  architecture between the two.  The modularization of qmail appeals to me
  in both simplicity and elegance, and it's superiority was evident in my
  smtp benchmarking between the two MTAs.  The only thing I miss from an admin
  standpoint is the readability of sendmail's logs vs. qmail/multilog.
 
  While I fully understand the justification of qmail's logging structure
  because of it's modularization, I am still left somewhat longing for a
  more readable logfile.  Possibly over time I will develop a
  better skill for reading these logs, but for now that's my only concern
  since switching.  There may be tools to aid in this, however out of
  the box this doesnt seem to be the cause.
 

Hi,
 One thing that makes the logfile a bit easier to read is to change the
time to human readable format like this:

tail -f /var/log/qmail/current | tai64nlocal

or this

cat /var/log/qmail/current | tai64nlocal | less

If you've installed the daemontools? package, then you should have
tai64nlocal in /usr/local/bin. It would be nice to have a script that
you could look at log files with, that would put the delivery in
subsequent lines and strip out some of the garbage. That shouldn't be
too hard to write for a good perl coder...

Regards,
Mike



Re: Need Arguments for qmail

2001-02-21 Thread Mike Jackson

"Robin S. Socha" wrote:
 
 * Mike Jackson [EMAIL PROTECTED] [010221 03:19]:
 
  cat /var/log/qmail/current | tai64nlocal | less
 
 http://www.ling.helsinki.fi/~reriksso/unix/award.html


This is off-topic for this list, but since you mentioned it: This is not
useless usage of cat. There has to be three processes to pipe the log
file through tai64nlocal without it flying by like an F14. If somebody
knows how to do this with only two processes, then enlighten me.

if you give:

less /var/log/qmail/current | tai64nlocal

it flies by ...

Regards,
Mike



Re: Need Arguments for qmail

2001-02-21 Thread Mike Jackson

Carl wrote:
 

 I don't have any logs to try it on but I imagine something like this would
 work fine:
 
   tai64nlocal /var/log/qmail/current | less
 
 --Carl--

Yep, that works. Thanks..

Mike



Re: New Patch for Latest UW IMAP server

2001-02-21 Thread Mike Jackson

Tim Hunter wrote:
 
 What problems do you have using Courier with Eudora?  I use it daily with
 zero problems.
 
 - Original Message -
 From: "Herbie" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: "Qmail Users" [EMAIL PROTECTED]
 Sent: Wednesday, February 21, 2001 2:41 AM
 Subject: New Patch for Latest UW IMAP server
 
  Hi,
  I have modified all the patches David Harris had to create an
  uber-patch for the latest UW IMAP server.
 
  This means you can have a secure IMAP and POP server that does only
  Maildirs, without some of the problems I have been experiencing using
  Courier with clients like Eudora.
 
  link is http://www.greboguru.org/qmail/
 
  Cheers
 
  Herbie

I have several users that have problems using Eudora with Courier. The
problems seem to surface when they have client side filters and more
than ~300 new messages in their inbox. It takes very long to filter, I
don't know why. Still, I would prefer to stay with Courier because UW is
a memory/resource HAWG if you have many IMAP connections.

Mike



Re: How does SVSCAN work ?

2001-02-05 Thread Mike Jackson

Andy Bradford wrote:
 
 Thus said "dennis" on Mon, 05 Feb 2001 13:23:55 +1100:
 
  I must be as thick as two short planks but for the file of me I can't get my
  head around how SVSCAN works. Can someone please enlighten me, PLEASE !!
 
 svscan ``scans'' the directory that you give it for other directories.
 For each directory it finds, it spawns a supervise process that
 monitors the service defined in the run file found in that directory.
 If a supervise process (which monitors a service) dies for some odd
 reason it will restart another supervise process on that directory to
 keep the service running.  That's all it does, plain and simple.
 

Hi,
 I tried to use svscan for something other than qmail and couldn't get
it to work. The process in question, slapd, wasn't producing specific
log files, and svscan refused to start. It works just fine for me with
qmail when I specify the log files for qmail.

Mike



Re: qmail port

2001-02-05 Thread Mike Jackson

 Original Message - 
From: "Dave Sill" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 05, 2001 9:00 PM
Subject: Re: qmail port


 "Mario Sergio Fujikawa Ferreira" [EMAIL PROTECTED] wrote:
 
  The port as it stands follows the INSTALL instructions
 shipped with the original tarball source almost to the letter.
 
 The problem is that those instructions are way outdated. That's DJB's
 fault, of course. A modern qmail installation uses daemontools and
 tcpserver instead of syslog and inetd.
 
 -Dave
 

When was the last time anybody actually heard from DJB?

Mike




Re: user+foobar@domain.com

2001-02-02 Thread Mike Jackson

Peter van Dijk wrote:
 
 On Thu, Feb 01, 2001 at 08:38:00PM +0200, [EMAIL PROTECTED] wrote:
  Hi,
   I have a user asking about the [EMAIL PROTECTED] addressing
  scheme. I guess this would allow the user to pass foobar as a argument
  to procmail, etc. It works in sendmail.. Is this implemented in
  qmail-ldap?
 
 Yes, the user can create a .qmail-foobar file in his homedir, and then
 user-foobar (sorry, it's not a +) is handled by this qmail file.
 
 man dot-qmail for more information.
 
 Greetz, Peter.

Hi,
 Thanks for the response. First, the users are all virtual so they can't
create their own aliases. I could create aliases for them, but I would
have to create one for each and every foobar style argument. Some users
have gave these types of email addresses to web pages with a different
ending so they could positively identify which web site sold their email
address, and also to let procmail filter messages, etc. For example:

[EMAIL PROTECTED]   -- given when registering at the Netscape web
site
[EMAIL PROTECTED]  -- given when registering at the iName web site

Sendmail will handle this in a wildcard fashion, with both addresses
being equal to [EMAIL PROTECTED], and no need for an alias for each and
every difference. I am trying to find the similar functionality in
qmail, if a patch or other method is available. The + symbol is needed,
because this is what users have given out over time.

Regards,
Mike



Re: user+foobar@domain.com

2001-02-02 Thread Mike Jackson

Charles Cazabon wrote:
 
 Mike Jackson [EMAIL PROTECTED] wrote:
   Thanks for the response. First, the users are all virtual so they can't
  create their own aliases. I could create aliases for them, but I would
  have to create one for each and every foobar style argument.
 
 Nope.  `man dot-qmail` for details.  Hint:  .qmail-default .  In the case of
 virtual domain "foo.net", handled by local user account "vdomains" with a
 virtualdomains entry of
 
   foo.net:vdomains-foonet
 
 it might be "~vdomains/.qmail-foonet-default"
 

Hi,
 I understand what you are talking about. The .qmail-default works for
addresses containing minus signs, not plus signs. That's what I am
talking about :-))

Mike



Re: qmailanalog

2001-02-02 Thread Mike Jackson

Steve Woolley wrote:
 
 I am using qmail with the svscan method of
 supervising the processes. I would also like to use
 qmailanalog to do some stats/analysis. Under the
 old "inetd" method of process management. The
 qmail logs were under /var/log/qmail, now they
 are stored under /var/service/qmail/log/main. This
 is not a problem per se, but
 The timestamps under the old method were in the
 following form: 901967408.116537
 now they are in the form: @40003a76ca281592e16c

This is tai64 international format.
 
 Is there some preprocessor that I am should run this through?
 or maybe some type of awk statement?
 Or should I be looking in a totally different place for my logs?

Tai64nlocal works for me.

Mike



Re: how to use the isp's server to send mail

2001-01-06 Thread Mike Jackson

Sanjay Arora wrote:
 
 We use qmail on RH Linux 6.2 and connect through multiple ispsuse the
 isp giving the best connection at the time...
 
 My server makes a direct smtp connection  I want to configure it to use my
 isp's server for forwarding the mail. Also, if this can be configure to
 accomodate possibility of different isp's being dialled...it would be great.
 
 Hope someone can give me some pointers.
 
 With best regards.
 
 Sanjay.

I think I would probably make changes to control/smtproutes and test it
until it worked. Man qmail-remote is a good reference...

Mike



Re: How sending messages from web site

2001-01-05 Thread Mike Jackson

[EMAIL PROTECTED] wrote:
 
 I'm sorry, I don't find any answer to this question. Because I use Cobalt Raq3
 and qmail with a particular network architecture, I don't know if this can work
 for me. IMAP site is very critucal on qmail maildir format that I use, and
 qmail site do not give user sufficient information of how implementing qmail
 with IMAP. And obviously noboby had already using webmail imap qmail based.
 But in your case there is no problem depending on your objectifs to pop or let
 copy of  messages on the server.
 In the later case there is no problem your can use sendmail, it's mailbox
 format is well suported by imap.  IMP/Horde is a goode choice to built web
 based mail.
 
 Tim Moore a écrit :
 
  Did you ever get a reply on this for i my web guys want to use a web based
  email system for their website and want to use sendmail. I want to keep from
  switching my whole system over to sendmail just cause the web team wanting
  this webmail.


1. qmail
2. courier imap
3. sqwebmail

all in maildir format

//mike



Re: Backup Qmail Server

2000-12-27 Thread Mike Jackson

Michael Hornby wrote:
 
 I am running qmail on a server which will be going down shortly for
 upgrades. I have a unix machine running at my house (static IP address) that
 I would like to use as a "backup" server. I plan on changing the MX record
 for my domain to point to my home machine, and to have all the mail
 delivered there while the main server is down. Instead of having mail being
 sent to me bounce, it will go through via the backup server.
 
 My ultimate goal is to have my home server accept any mail that is being
 sent to any e-mail address being hosted on the main server, and to
 indefinitely try to forward it to the main server. This way, when the main
 server returns, it will receive all the mail it missed while it was down.
 All the e-mail will then continue to be stored on the main server, and users
 can login there to retrieve it.
 
 Does anyone have any ideas as to how I might implement this? Any help is
 greatly appreciated. Thanks in advance.

The best way to upgrade your mail server is to install a forwarding
sendmail on your firewall, then queue mail at the firewall until your
new server is complete. Set the bounce timeout on the firewall to
something like 5 days.  I did this a week ago, and it took me about 30
hours for a large migration plus many mailing lists and domains... When
you are happy, open the floodgates... I had about 4000 messages queued.

Mike



Virtual Domain equivalent problem

2000-12-21 Thread Mike Jackson

Hi,
 This is a very confusing thing I am trying to accomplish, but for
reasons outside of my control it must be done. I have a main domain name
of company..com in locals. I have a company.fi:alias-companyfi line in
virtualdomains. The alias file looks like this:

| forward ${DEFAULT}@company.com

 All mail coming to company.fi should be a full equivalent to all
[EMAIL PROTECTED] addresses and mailalternateaddress in the ldap entries.
It is currently working fine, with one problem. One person needs to not
have his incoming mail rewritten to [EMAIL PROTECTED] I am controlling
the setting of his outgoing address to [EMAIL PROTECTED] with sendmail at
the firewall, but to not change the incoming address is what I need help
with. I tried to make an alias called .alias-companyfi-user and put
[EMAIL PROTECTED], then put mailalternateaddress: [EMAIL PROTECTED] in his
ldap entry, but the message looped and died. 

 Any ideas??

Thanks,
Mike



Re: Should I try the Qmail-scanner?

2000-12-19 Thread Mike Jackson

Markus Stumpf wrote:
 
 On Tue, Dec 19, 2000 at 12:30:18PM -0800, Eric Wang wrote:
  server the stability and efficiency is extremely high demand.
  Any suggestion and experience are highly appreciated.
 
 First I have to say that we don't use the scanner.
 
 Some month ago someone posted to this list that plugging a virus scanner
 in at a busy mail server demands a magnitude of 300-400% more cpu
 power as compared to running without one.
 So, if efficiency is a extremely high demand for you check your ressources.
 
 I don't think that the qmail-scanner alone will have any effect on the
 stability tho.
 
 \Maex
 
 --
 SpaceNet AG   |   http://www.Space.Net/   | Stress is when you wake
 Research  Development| mailto:[EMAIL PROTECTED] | up screaming and you
 Joseph-Dollinger-Bogen 14 |  Tel: +49 (89) 32356-0| realize you haven't


Consider this scenario for incoming mail:

mail.company.com on one side of firewall - firewall.internal.company.com
on inside running sendmail forwarding to

scanningbox.internal.company.com that is aliased in dns to
smtp.internal.company.com forwards everything to 

imap.internal.company.com (this is your main qmail server)


Consider this scenario for outgoing mail:

smtp in clients configured to use scanningbox.internal.company.com

scanningox forwards everything to imap.internal.company.com

imap.internal.company.com forwards all outgoing mail to 

firewall.internal.company.com


Configuration:

smtp.internal.company.com (scanningbox) is the highest mx record in the
company. This way, scanningbox scans all incoming and outgoing messages
and doesn't put a load on the mail server. 


Mike



Re: Disable envnoathost?

2000-12-18 Thread Mike Jackson



On Mon, 18 Dec 2000, Kris Kelley wrote:

 Is there a way to disable qmail-send's use of the envnoathost control file,
 so that any message bound for an address without an @ sign is simply
 refused?

 I know I could put something like nonexistenttrashdomain.com in envnoathost
 so that all such messages would get bounced back to the sender, but I'm
 hoping for a cleaner solution, and hopefully one that doesn't involve code
 hacking.

 Thanks!

 ---Kris Kelley



 Its really simple. Just delete the envnoathost file and it doesnt get
used.

Mike





Re: Outlook Express Prank

2000-12-11 Thread Mike Jackson

Hi,
 Could somebody resend me the original post concerning this? It seems I
deleted it on accident and it may have been removed from the list
archives...

Thanks,
Mike



RE: Masquerading

2000-11-24 Thread Mike Jackson

On Fri, 24 Nov 2000, you wrote:
 You must add your domain name to file "defaulthost" and must be placed in
 "/var/qmail/control" directory.


 Hello,
  I have a question about how to send all outgoing users email as
 username@abc.com, regardless of what they enter into their email client. I
 have entered abc.com in ~control/defaultdomain and ~control/defaulthost. It
 doesn't seem to rewrite the smtp headers, however.

Daniel,
 You just told me to do what I told that I had already done. So, no, it didn't
help me. The question isn't so much how to rewrite the outgoing headers, as it
is how to rewrite outgoing headers with the exception of one or two people. The
solution must be server based, also.

Mike 



Masquerading

2000-11-23 Thread Mike Jackson

Hello,
 I have a question about how to send all outgoing users email as
username@abc.com, regardless of what they enter into their email client. I
have entered abc.com in ~control/defaultdomain and ~control/defaulthost. It
doesn't seem to rewrite the smtp headers, however. 

 After this is accomplished, the requirement is that I implement a server
based method of allowing certain people to send mail with whatever address they
want and it's not changed.

 This is the only obstacle in the way of a mass migration to qmail, and I would
appreciate all replies.

Please reply to the list and via personal email.

Thank You,
Mike



Please help! I just can't figure it out.

2000-10-31 Thread Mike Jackson

Hello,
 I hope this catches the interest of someone who can point me in the right
direction. I have a problem that is preventing me from converting from
sendmail to qmail. The problem is that I need to rewrite message headers and
smtp envelopes for all outgoing mail to something like [EMAIL PROTECTED],
regardless of whether users enter [EMAIL PROTECTED] or [EMAIL PROTECTED]
. Ok, now I need to be able to allow one user to do whatever he wants in
regards to his outgoing email addresses and I can not make him use
environment variables on his machine. Here is the setup of my system.

* qmail 1.03 with qmail-ldap patch
* all Maildirs owned by vmail:vmail
* Courier imap is the only way to read mail
* no logons to the machine by any users whatsoever, all username/passwords
are in the ldap directory

Somebody please help me! Reply by personal mail to [EMAIL PROTECTED] and to the
list if at all possible.

Thanks,
Mike




Solaris 8 and Ezmlm + IDX

2000-10-24 Thread Mike Jackson

Hello,
 Does anybody have Ezmlm +idx compiled and working on Solaris 8? If so,
please send me the procedure you used to get this to compile with gcc.

Thanks,
Mike




qmail-ldap and ezmlm +idx

2000-10-24 Thread Mike Jackson

Hello,
 Is anybody here using ezmlm on a qmail-ldap based server? If so, where can
I find some reading material on this subject? I need to get the mailing list
software up and running.

Thanks,
Mike




Re: Mass mbox to Maildir conversion

2000-10-10 Thread Mike Jackson

On Mon, 09 Oct 2000, [EMAIL PROTECTED] wrote:
 What did you think of mbox to Maildir conversion tools that can be found
 on www.qmail.org?
 

 I found them to be very basic and assuming that a given user would only
have one mbox file. I have users that have up to 100 separate mbox files that
are imap folders, not including their /var/spool/mail/username inbox file. I
tried one of the scripts on an inbox and it seemed to work ok. But no matter
what I did I couldn't seem to get it to accept a wildcard, ie convert all files
in one directory into a users maildir.

 I think I will have to devote some serious time to this issue, since I
want to acheive the following:

1. Preserve existing imap folders and keep the same messages in them,  the imap
folder structure will need to be for Courier 1.1. 

2. Preserve the read and unread flags for all messages.

3. Create the courierimapsubscribed, courierimapuiddb, and maildir files in the
appropriate places with the correct values in them.

Basically, the entire migration should be totally transparent to the end users
with zero downtime. I will just change the existing mail server record in the
DNS to point to the new server when I'm finished. 

Regards,
Mike



Mass mbox to Maildir conversion

2000-10-09 Thread Mike Jackson

Hello,
 I need to convert approx. 170 users from mbox to Maildir format. The users
have a /var/spool/mail/username as their current imap inbox and
~username/mail/multiplefilenames as imap folders. This exists on the old
server. The new server will be laid out as follows:

/var/qmail/maildirs/username/Maildir

I would like to copy the inbox and all imap folders for each user to a
staging area on the new server with a single directory for each user, such
as:

/var/qmail/staging/user1

that would contain files such as user1 (inbox from /var/spool/mail), and
folders such as folder1 folder2 folder3 (from ~username/mail/). The
conversion script would ideally go through every directory in
/var/qmail/staging and create the maildir directory in /var/qmail/maildirs
for each user. It would also take every file in mbox format in the users
staging directory and put it into his maildir with the appropriate read or
unread flag, as well as converting all files in the staging directory other
than the inbox file into the same named folders in their maildirs.

 I would appreciate any advice from administrators who have sucessfully
performed this same type of conversion. Please copy me personally if you
reply.

Thanks,
Mike




Hard Disk Requirements for ~200 users

2000-10-05 Thread Mike Jackson

Hello,
 I am gearing up to convert a sendmail system with pop/imap access on a
DEC Alpha to a Qmail-LDAP / Courier Imap virtual user environment on a
Sun Netra T105 with Solaris 8. Could somebody provide me with an
estimate of how much hard disk space I need based on your personal
experience. My setup is as follows:

* Qmail with Maildir storage
* currently 170 users, but the number grows from 5-10 a month
* Imap only access to the server
* virtual user environment
* All mail stored on the server
* Clients include Outlook, OE, Pine, Mutt, Netscape, etc. Windows
clients don't always compact their folders as often as they should and
some have never done it.
* Current mailboxes on the DEC Alpha contain from 1 week to 5 years of
messages.

I have estimated the current disk usage on the DEC Alpha to be around
70GB just for mail, but this is just a quick look at users home
directories and /var/spool/mail. The actual size of those directories is
approx 105GB.


Please copy me personally also if you reply.

Thanks,
Mike



Masquerading hostnames with exceptions

2000-10-04 Thread Mike Jackson

Hello,
 I have set up "~/control/defaulthost example.com" to send all outgoing mail
as [EMAIL PROTECTED], regardless of what the user enters in his email
client. I want to force this, with the exception of one user who uses
multiple addresses such as [EMAIL PROTECTED], [EMAIL PROTECTED], and
[EMAIL PROTECTED] depending on who he is sending the email to. It's not
really an option to put environment variables on his machine and make him
change them everytime he wants to send an email with a different outgoing
address. Is there a way to achieve this with the qmail control files?

Please advise.

Thanks,
Mike