Re: mailserver buffering

2001-02-28 Thread Andy Bradford

Thus said "Chrisanthy Carlane" on Tue, 27 Feb 2001 13:13:52 +0700:

 What I want to ask is: HOW to create that buffering thing ? Do I have to add
 every user for every domain(which will be a lot of user)?

With a standard qmail install it's as simple as:

Add their domain to /var/qmail/control/rcpthosts

They must produce an appropriate MX record in their DNS information 
which points to your mail server.

I don't know what addition complexities vpopmail might add, but I 
suspect this should still work.

Andy
-- 
[---[system uptime]]
 11:17pm  up 12 days, 23:19,  6 users,  load average: 1.01, 1.11, 1.21





Re: mailserver buffering

2001-02-28 Thread Markus Stumpf

On Tue, Feb 27, 2001 at 12:08:12AM -0700, Andy Bradford wrote:
 Not necessary.  They will be queued up in qmail's mail queue until they 
 can be delivered to their mail server (or until the message has been in your 
 queue too long and the message bounces).  Simple really.

We've had simmilar problems with "dialup customer" wanting their email
delivered via SMTP.
What we did (and also use for some backup MX customers, that turn off
their mailservers during weekends *argl*) is to use a maildirsmtp
setup.
I find it pretty annoying having some 1000 email for them in the
"active" qmail queue and the customers complain "that some emails
take a long time to arrive although the mailserver is back up again"
(this is due to the quadratic backoff).

What we do:

1) create a  /var/qmail/channels/serialmail  directory.
2) in this directory create another directory "dom.ain"
3) in this directory create a maildir (e.g. called "Maildir") and
   a .qmail-default file containing
   ./Maildir/
4) add to users/assign a line like:
   +dom.ain-:qmaild:101:101:/var/qmail/channels/serialmail/dom.ain:-::
   (101:101 is the uid:gid for qmaild:nofiles - this is because of
   section 10) below ;-)
5) run qmail-newu
6) add lines to control/virtualdomains
   dom.ain:dom.ain
   .dom.ain:dom.ain
7) kill -HUP pidof(qmail-send)

Now mails for [EMAIL PROTECTED] will end up in the maildir
   /var/qmail/channels/serialmail/dom.ain/Maildir/
If the customer has more than one domain (e.g. .net, .com. org) you can
use in virtualdomains
   example.com:dom.ain
   .example.com:dom.ain
   example.net:dom.ain
   .example.net:dom.ain
And they will end up in the same directory.

8) In /var/qmail/channels/serialmail/dom.ain create a file "RELAYHOST"
   and put in it the name of the mail exchanger for that dom.ain
   (e.g. mail.dom.ain)
9) All you need now is a script that periodically scans (we use 3
   minutes) all the /var/qmail/channels/serialmail/dom.ain directories,
   checks if there are eMails in Maildir/new.
   If so, flock the RELAYHOST file (to avoid concurrent deliveries)
   and start  maildirsmtp  to try to deliver the email to `cat RELAYHOST`
   We do this in a two way style, so we have one scanner and one
   deliverer thats been forked off from scanner.
   The maildir command would look like
  maildirsmtp /var/qmail/channels/serialmail/dom.ain/Maildir \
dom.ain-  `cat .../dom.ain/RELAYHOST`  mail.mydom.ain
   (don't forget the trailing "-" on  dom.ain- above)
10) we also use tcpserver to set the ETRN="dom.ain" Variable for the ip
   the mail.dom.ain runs on and we use a wrapper to qmail-smtpd that
   checks for the existance of the ETRN Variable and if it exists it
   forks off deliverer for dom.ain (kinda AutoTURN like ETRN).

We use this setup for about two years now and it works like a charm.
There is only one problem: if the customer changes the mail exchanger
without telling you *sigh*

The scripts for scanner and deliverer are in perl, the qmail-smtpd
wrapper is in sh.
If I find some time, I'll write some docs and cleanup the code and
put it up for public retrival. *sigh* but I cannot promise any date
as I have nearly zero spare time right now :/

\Maex

-- 
SpaceNet AG| Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research  Development |   D-80807 Muenchen| Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.



Re: mailserver buffering

2001-02-27 Thread Bill Carlson

On Tue, 27 Feb 2001, Andy Bradford wrote:

  OK, and when their emails go to my server, where do they go(what directory,
  do I have to make a directory for their domain?
  and what about the users?

 Not necessary.  They will be queued up in qmail's mail queue until they
 can be delivered to their mail server (or until the message has been in your
 queue too long and the message bounces).  Simple really.

Stupid question: What controls the lifetime of those messages in the
queue? Are the 'buffered' messages treated like any other message and
timeout at control/queuelifetime?

Thanks,

Bill Carlson
-- 
Systems Programmer[EMAIL PROTECTED]|  Opinions are mine,
Virtual Hospital  http://www.vh.org/|  not my employer's.
University of Iowa Hospitals and Clinics|




Re: mailserver buffering

2001-02-27 Thread Chris Johnson

On Tue, Feb 27, 2001 at 10:44:42AM -0600, Bill Carlson wrote:
 On Tue, 27 Feb 2001, Andy Bradford wrote:
 
   OK, and when their emails go to my server, where do they go(what directory,
   do I have to make a directory for their domain?
   and what about the users?
 
  Not necessary.  They will be queued up in qmail's mail queue until they
  can be delivered to their mail server (or until the message has been in your
  queue too long and the message bounces).  Simple really.
 
 Stupid question: What controls the lifetime of those messages in the
 queue? Are the 'buffered' messages treated like any other message and
 timeout at control/queuelifetime?

Yes. They are simply messages which have been queued, no different from any
other message which has been queued by whatever means.

Chris

 PGP signature


Re: mailserver buffering

2001-02-27 Thread Chrisanthy Carlane

Another question about mail buffering:

 When my client's mailserver try to connect to my mailserver to pick up
their queue, what setting should they use for authentication?  Pop3? but
there's no user.

If I'm using Vpopmail, do I need to add my client's domain into
../control/virtual domains?


They must produce an appropriate MX record in their DNS information
which points to your mail server.
   OK, and when their emails go to my server, where do they go(what
 directory,
   do I have to make a directory for their domain?
   and what about the users?
 
  Not necessary.  They will be queued up in qmail's mail queue until they
  can be delivered to their mail server (or until the message has been in
 your
  queue too long and the message bounces).  Simple really.
 
  Andy
  --
  [---[system uptime]]
   12:08am  up 13 days, 10 min,  6 users,  load average: 1.06, 1.20, 1.23
 
 
 





mailserver buffering

2001-02-26 Thread Chrisanthy Carlane

Hi everyone,

I'm administering a service provider mail server. Some companies that are
using our company Internet service also asks about mail buffering for their
own mail server, so :
1. in case their mail server is down, all their emails go to my mail server.
2. every email that goes to their address go first to my mail server and
they periodically download it.

What I want to ask is: HOW to create that buffering thing ? Do I have to add
every user for every domain(which will be a lot of user)?
I'm using Qmail with Vpopmail.

Thanks!

Chrisanthy




Re: mailserver buffering

2001-02-26 Thread Andy Bradford

Thus said "Chrisanthy Carlane" on Tue, 27 Feb 2001 13:44:14 +0700:

  They must produce an appropriate MX record in their DNS information
  which points to your mail server.
 OK, and when their emails go to my server, where do they go(what directory,
 do I have to make a directory for their domain?
 and what about the users?

Not necessary.  They will be queued up in qmail's mail queue until they 
can be delivered to their mail server (or until the message has been in your 
queue too long and the message bounces).  Simple really.

Andy
-- 
[---[system uptime]]
 12:08am  up 13 days, 10 min,  6 users,  load average: 1.06, 1.20, 1.23