RE: two people with the same name but different domain

2001-07-09 Thread Troy Settle



http://www.inter7.com/vpopmail

-- Troy Settle Pulaski Networks 
540.994.4254 - 866.477.5638 http://www.psknet.com 

  -Original Message-From: Essy Ren 
  [mailto:[EMAIL PROTECTED]]Sent: Sunday, July 08, 2001 9:27 
  PMTo: qmailSubject: two people with the same name but 
  different domain
  Haiii ... I have installed the qmail and it's 
  worked fine (finally ..!!)
  I create two virtual domain so I have two account 
  like this : [EMAIL PROTECTED] and [EMAIL PROTECTED]
  How about if there's two different man with a 
  same name , for example dave at test.local and the other is different people 
  but with same name for example dave at cobalt.local
  How can I separate this two different man 
  ?
  
  I've try send to [EMAIL PROTECTED] from [EMAIL PROTECTED] and vice versa, and the 
  email was drop into the same Maildir,
  so [EMAIL PROTECTED] has the same password to 
  login (check the email) with [EMAIL PROTECTED]
  I wonder if qmail can separatethe Maildir 
  from this two virtual domain ?
  If it can, can you help me to make the different 
  Maildir (and password) for the people who have the same name but in different 
  domain ? 
  thanks for your help 



RE: Help wanted

2001-06-18 Thread Troy Settle


Schagee,

I've only just started playing with it, but squirrelmail has an awesome look
and feel and seems to be extremly fast against courier-imapd.  It runs under
PHP4, is open-source, and ready to rock-and-roll.  It took me all of about 2
minutes to install, configure, and run my first test.  It loaded up my IMAP
account (with over 80 folders and 30k messages) in less than 5 seconds.
It's even faster on a more normal account.

Anyways, the URL is http://www.squirrelmail.org

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Schajee Achmad [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 7:30 AM
** To: [EMAIL PROTECTED]
** Subject: Help wanted
**
**
** Hi there,
**
** Let me introdce myself first. My name is Schajee and I'm a web
** developer. My
** company requires me to setup a complete Hotmail styled email
** service for use
** by its employees.
**
** I've been searching a solution to this problem and I found a lot
** of them but
** none matched my requirement, so I was forced to look for other
** solutions. I
** found qmail by accident and I kinda liked it. I've been using it
** for a some
** days now and I think it meets my requirments.
**
** So the question is how do you setup a mail service like Hotmail.
** I'm ready to
** develop a web based MUA which works with qmail and hopefull this
** should do the
** trick.
**
** So, anybody out there who has either worked on it before or has some
** experiance in working for such a thing... please let know so
** that we can sit
** down and talk about this.
**
** Thanks
** Schajee
**
** 
** Get free email and a permanent address at http://www.netaddress.com/?N=1
**
**




RE: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-18 Thread Troy Settle


Peter, Edward,

Thanks for the input on this, I'll be playing with it more today.

One important thing I forgot to mention in my last post, is that I'm only a
MX for these domains, the customer runs his own server to handle the mail.
Normally, I'd just set up an SMTP route to send all the mail to the
customer's server, but they're running exchange, and for those who don't
know, it's not fun to admin an exchange server when you have hundreds of
users to configure to accept mail at dozens of domains (actually only 2 or
3, but still a pain).

Thanks,

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: peter green [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 8:22 AM
** To: [EMAIL PROTECTED]
** Subject: Re: Rewrite (.*)@foo.com to \\[EMAIL PROTECTED]
**
**
** * Troy Settle [EMAIL PROTECTED] [010617 17:20]:
**  Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
**  ~alias/.qmail-default, but that would appear to be for all
** domains, which I
**  do not want to do.
** 
**  So, I put that line into
** ~vpopmail/domains/foo.com/.qmail-default, but that
**  resulted in mail being forwarded to [EMAIL PROTECTED]
**
** s/LOCAL/DEFAULT/g
**
**  In postfix, this is easy stuff with virtualmaps:
** 
**@domain.com:@otherdomain.com
** 
**  Is there nothing similar in qmail?
**
** If you are using vmailmgr, yes there is. Since all domains are handled by
** individual system users, just point both domains at the same system user:
**
** [/var/qmail/control/virtualdomains]
**   # format is ``domain:system_user''
**   # I name system users after the domain, just to be simple
**   example.com:example.com
**   # domain alias for example.com
**   example.net:example.com
**
** (I'm sure it's possible w/o vmailmgr; that's just what I know.) The nice
** thing about this method is that it avoids the add'l delivery of a forward
** (which is what the FAQ suggests). We use this all the time.
**
** HTH,
**
** /pg
** --
** Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
** ---
** panic(esp: penguin doesn't disconnect after status msg-ack.);
** (Panic message in the kernel.)
**
**




RE: qmail-remote (cry wolf?)

2001-06-18 Thread Troy Settle


Mark,

How would I need to go about building a dubug version of qmail-remote?
Also, how to terminate the process so that I can 'fling' gdb at it?

With a little I can probably have output from gdb within a couple hours.

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Mark Jefferys [mailto:[EMAIL PROTECTED]]
** Sent: Monday, June 18, 2001 9:27 PM
** To: James R Grinter
** Cc: [EMAIL PROTECTED]
** Subject: Re: qmail-remote (cry wolf?)
**
**
** On Sun, Jun 17, 2001 at 08:56:13PM +0100, James R Grinter wrote:
**
** % I think it isn't relevant. qmail-remote doesn't seem to use select,
** % or at least it's nowhere in the path where my qmail-remote wedges.
**
** Go look at timeoutread(), which *is* in your path.  The select is in
** the line right before where you wedge.
**
** % As to different OS behaviour, Solaris 2.6 (and 7) both say:
**
** [Man page claims it doesn't do this.]
**
** % whereas SunOS 4.1.4 (my usual 'old bsd system' benchmark) says:
**
** [Man page unclear.]
**
** % and I can tell you that I've not seen the problem happen with
** % qmail-remote on SunOS 4.1.4.
**
** Well, I don't necessarily trust man pages to tell the truth,
** especially if this was added accidentally (i.e. if it's a bug).
**
** And I still haven't seen anything to really convince me that any OS
** actually does this.  I've only seen that a few people think some do,
** that it could easily happen as a bug, and that it could explain the
** hung qmail-remotes.  And it's easily fixed if it is the problem.
**
** In other words, I'm not saying that this is the cause, only that it's
** possible.
**
** %  Indeed, I think DJB's code (and most
** % other people's) compensates for both behaviours by setting the
** % necessary FD's each time anyway.
**
** It doesn't.  (Don't know about other people's.)  It assumes that the
** fd_sets will be cleared on timeout.  Setting the fd_sets each time is
** always necessary and doesn't protect against this issue, anyway.
**
**
** In any case, since I did see (one) stuck process recently I built
** myself a test to see if I could reproduce it.  I wasn't.  At least on
** a RedHat linux 2.2.19-6.2.1 or -6.2.1smp, it looks like select acts
** sanely on a timeout, at least some of the time.
**
** I also put a debugging version of qmail-remote on my system, so if it
** ever decides to hang again I can fling gdb at it.
**
**
** Mark
**
**




RE: Rewrite (.*)@foo.com to \\1@bar.net

2001-06-17 Thread Troy Settle


Ok, the qmail faq says to put ``| forward $[EMAIL PROTECTED]'' into
~alias/.qmail-default, but that would appear to be for all domains, which I
do not want to do.

So, I put that line into ~vpopmail/domains/foo.com/.qmail-default, but that
resulted in mail being forwarded to [EMAIL PROTECTED]

How do I get around this?  I'm thinking that it's something in
/var/qmail/users/assign, but I'm not sure how to go about doing this.
Ideally, I'd like the whole job to be done within /var/qmail, allowing me to
remove the domain from vpopmail.

In postfix, this is easy stuff with virtualmaps:

  @domain.com:@otherdomain.com

Is there nothing similar in qmail?

TIA,

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: peter green [mailto:[EMAIL PROTECTED]]
** Sent: Sunday, June 10, 2001 10:18 PM
** To: [EMAIL PROTECTED]
** Subject: Re: Rewrite (.*)@foo.com to \\[EMAIL PROTECTED]
**
**
** * Troy Settle [EMAIL PROTECTED] [010610 20:37]:
**  What is the procedure under qmail to rewrite addresses under virtual
**  domains?  For example, I have a customer with several domains, and they
**  would like (.*)@foo.com to be rewritten to \\[EMAIL PROTECTED]  How
** can I do this?
**
** Does [http://cr.yp.to/qmail/faq/incominguser.html#luser-relay] do it for
** you? (Assume all @foo.com addresses are unrecognized and need to be
** forwarded to @bar.net.)
**
** /pg
** --
** Peter Green : Architekton Internet Services, LLC : [EMAIL PROTECTED]
** ---
** Anytime I see something screech across a room and latch onto
** someone's neck,
** and the guy screams and tries to get it off, I have to laugh,
** because what is
** that thing.
**  (Jack Handey)
**
**




Rewrite (.*)@foo.com to \\1@bar.net

2001-06-10 Thread Troy Settle


All,

What is the procedure under qmail to rewrite addresses under virtual
domains?  For example, I have a customer with several domains, and they
would like (.*)@foo.com to be rewritten to \\[EMAIL PROTECTED]  How can I do this?

TIA,

--
  Troy Settle
  Pulaski Networks
  540.994.4254




RE: qmail-remote (cry wolf?)

2001-06-09 Thread Troy Settle

** -Original Message-
** From: Mark [mailto:[EMAIL PROTECTED]]
** Sent: Friday, June 08, 2001 11:14 AM
** To: [EMAIL PROTECTED]
** Subject: Re: qmail-remote (cry wolf?)
**
**
**  processed those 1500 messages in less than 30 minutes.
** However, it left
**  behind another handfull of stuck qmail-remote processes.
** Other messages
**  were undeliverable and left in the queue, and still others
** were sent back to
**  sender with permanent errors.
**
** What do you mean by stuck? Do you mean they *never* go away - even
** after a day or two? As others have pointed out, a slow delivery can
** take a long, long time. That's not necessarily a problem, that's just
** the way it is.

Yes, I've had qmail-remote processes sit there for weeks.  I think that
instead of killing them off wholesale, I'll pick one or two processes and
see just how long they'll hang around. I'll post weekly updates if there's
any interest.

I keep hearing that it might be a very slow delivery.  How is this possible
when there isn't any network connection open to the remote host in question,
let alone a connection to it's smtp port.

As far as I can tell, this is a problem between qmail-remote and the kernel.
This is happening on multiple operating systems, so that leads me to believe
that this is not an OS bug.


**
** To find out a bit more about what a stuck qmail-remote is doing, you
** may want to ktrace it and show us the output. Find the process id of the
** stuck qmail-remote and then as root go: ktrace -p thepid
**
** Leave that running for at least an hour and show us the output. Yes, I
** mean at least an hour.
**

Ok, I meant to come back in an hour and stop the trace, but after running
ktrace for 9 hours (while I slept), the resulting ktrace.out file is exactly
0 bytes in length.  Would you like me to send a copy? g

I did verify the behavior of ktrace, and a ktrace on qmail-send generated
tons of data within seconds.  ktrace is working.

Anything else y'all would like me to lok at?
--
  Troy Settle
  Pulaski Networks
  540.994.4254




RE: Qmailadmin

2001-06-09 Thread Troy Settle


How about running ~vpopmail/bin/vpasswd?

  ~vpopmail/bin/vpasswd [EMAIL PROTECTED] newpass

You do not want to edit ~vpopmail/domains/default.com/vpasswd file directly.

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Bill Parker [mailto:[EMAIL PROTECTED]]
** Sent: Friday, June 08, 2001 4:38 PM
** To: [EMAIL PROTECTED]
** Subject: Qmailadmin
**
**
** Hi All,
**
**  Through a fault of no one, it appears the password for
** postmaster for my default domain was changed, and no one can
** remember it.  How can I change it manually, as I have root
** access to the machine in question, and I am the administrator.
**
** I see a file called vpasswd in the domain in question, can I
** hack the file and remove the encrypted stuff for postmaster?
**
** -Bill
**
**




RE: qmail-remote (cry wolf?)

2001-06-08 Thread Troy Settle


Not being a programmer, I have no clue how to trace this, but if someone
were able to help me, I'd be glad to give it a go.  I'm on FreeBSD
4.2-STABLE at the moment, and will be updating again soon.

Qmail is built with patches, a concurrency patch and the patches from the
FreeBSD port.  qmail-remote itself was not patched from 1.03.

What I'm seeing on these stuck processes, is that they're in a state of
'sbwait' (as shown by top).  netstat doesn't show any open connections to
the remote hosts (smtp or otherwise).

This problem doesn't seem to be related to the remote host, no matter the
MTA.  I've seen several stuck qmail-remote processes to a certain host, but
scanning through logs shows that mail has been successfully sent to that
same host on multiple occasions, both prior and after the stuck process was
launched.

This doesn't seem to be a networking problem.  On one occasion, I had over
1500 messages queued up because the number of stuck qmail-remote processes
ate up my concurrency limit.  After clearing up the blockge, the box
processed those 1500 messages in less than 30 minutes.  However, it left
behind another handfull of stuck qmail-remote processes.  Other messages
were undeliverable and left in the queue, and still others were sent back to
sender with permanent errors.

Logs are intact.  There's a start of delivery entry, but if qmail-remote
gets stuck, there is no further reference to those messages.

Yes, I can read the messages in the queue.  They are intact and appear to be
properly formatted.

There is no proxy server or firewall between this box and the rest of the
Internet.  Only a Cisco 2924 switch, a 3640 router and a T1 ride out to ATT
or Sprint.


I hope all this information helps.  Anyone should feel free to ask for more
details, but please be specific in the information you need.  Remember, a
lot of us here are admins, not developers.


--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Mark [mailto:[EMAIL PROTECTED]]
** Sent: Thursday, June 07, 2001 6:00 PM
** To: [EMAIL PROTECTED]
** Subject: Re: qmail-remote (cry wolf?)
**
**
**   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?
**
** There is nothing a remote system can do that will hang qmail-remote on
** a correctly functioning OS. If the local TCP stack has accepted data
** and indicated available via the select() return, then the remote
** system has no further say as the read() only fetches the data
** previously received.
**
** I'll bet it's an OS bug - most likely in the TCP stack. Eg, it may be
** that the local TCP stack - in some circumstance - discards unread
** data, *then* marks the local socket as unreadable, rather than around
** the other way. That sort of window would wedge the select/read
** sequence in qmail-remote.
**
**
** Regards.
**
**




RE: url of sqwebmail too long!!!!

2001-06-08 Thread Troy Settle


How about:

   RewriteRule ^/$ /cgi-bin/sqwebmail [R]

In your apache configuration.

-Troy

** -Original Message-
** From: Johan Almqvist [mailto:[EMAIL PROTECTED]]
** Sent: Friday, June 08, 2001 9:35 AM
** To: [EMAIL PROTECTED]
** Subject: Re: url of sqwebmail too long
**
**
** * Massimo Quintini [EMAIL PROTECTED] [010608 09:45]:
**  How can I use an URL short (like mail.te.astro.it) instead of
**  mail.te.astro.it/cgi-bin/sqwebmail 
**  I have tried with VirtualHost directive of Apache Web Server without
**  success!!!
**
** I've found the easiest way to be the following:
**
** Using lynx, grab the front page (login page) that sqwebmail
** sends. Save it
** as index.html of a virtual host (ie mail.te.astro.it/index.html). Make
** sure the links and the form point to the cgi. Voilà!
**
** -Johan
** --
** Johan Almqvist
** http://www.almqvist.net/johan/qmail/
**




RE: Qmail-remote stopped up?

2001-06-06 Thread Troy Settle


Absolutely nothing in the logs.  Hardware is fine, all other processes are
working flawlessly.  This box is well worked, but not even close to loaded
(load avg stays around 0.25 to 0.30) except when restarting qmail.

I just can't think of any reasonable explanation why qmail-remote would just
sit there like that and not honor it's timeout.

Oh, and one thing I forgot to mention.  Top shows all these processes in a
sbwait state.


--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Jörgen Persson [mailto:[EMAIL PROTECTED]]
** Sent: Wednesday, June 06, 2001 1:56 AM
** To: [EMAIL PROTECTED]
** Subject: Re: Qmail-remote stopped up?
**
**
** On Tue, Jun 05, 2001 at 09:15:30PM -0400, Troy Settle wrote:
**  For the last several months, I've been having some severe problems with
**  qmail-remote.  I've rebuilt from fresh sources and updated my system
**  (FreeBSD 4.2-STABLE) several times.  Nothing seems to help.
** You can see
**  what I'm seeing at http://home.psknet.com/troy/qmail-remote.txt.
**
**
** I've never seen anything like it...
**
** What does the logs say?
** Have you checked your hardware??
**
** Jörgen
**
**




RE: SSL

2001-06-06 Thread Troy Settle



Sean,

I'm 
using stunnel for this. Works very well.

-- Troy Settle Pulaski Networks 
540.994.4254

  -Original Message-From: SeanW 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 05, 2001 11:05 
  PMTo: [EMAIL PROTECTED]Subject: 
  SSL
  Can qmail handle passing pop password via SSL 
  ?
  
  
  Sean 
Weissensee


RE: Qmail-remote stopped up?

2001-06-06 Thread Troy Settle


Very well, here's the log entry for the last message:

2001-06-04 21:04:21.325080500
  new msg 7513010
2001-06-04 21:04:21.325300500
  info msg 7513010: bytes 3585 from [EMAIL PROTECTED] qp 46253 uid 82
2001-06-04 21:04:21.399088500
  starting delivery 95298: msg 7513010 to remote [EMAIL PROTECTED]
2001-06-04 21:04:21.399269500
  status: local 0/10 remote 13/30

There is no other reference to this message since, but there have been other
messages from this user successfully sent to the same destination without
problem:

2001-06-05 17:19:07.461645500
  new msg 7512978
2001-06-05 17:19:07.461858500
  info msg 7512978: bytes 4139 from [EMAIL PROTECTED] qp 73680 uid 82
2001-06-05 17:19:07.534486500
  starting delivery 104112: msg 7512978 to remote [EMAIL PROTECTED]
2001-06-05 17:19:07.534665500
  status: local 0/10 remote 18/30
2001-06-05 17:19:09.393097500
  delivery 104112: success: 208.11.16.8_accepted_message./
  Remote_host_said:_250_Ok:_queued_as_E206B64C83/
2001-06-05 17:19:09.399108500
  status: local 0/10 remote 17/30
2001-06-05 17:19:09.399599500
  end msg 7512978


Log entries for the other 'stuck' messages are the same: new, info,
starting, status, then nothing.  I have checked the entire log file and
subsequent logs.  Logging is working fine, qmail-remote is not.

One question though... is there an identifier that links each log entry for
a specific message?  This has been one thing that bugs the hell out of me
with qmail.

Thanks,

--
  Troy Settle
  Pulaski Networks
  540.994.4254


** -Original Message-
** From: Alex Pennace [mailto:[EMAIL PROTECTED]]
** Sent: Wednesday, June 06, 2001 2:35 AM
** To: Troy Settle
** Cc: [EMAIL PROTECTED]
** Subject: Re: Qmail-remote stopped up?
**
**
** On Wed, Jun 06, 2001 at 02:20:40AM -0400, Troy Settle wrote:
** 
**  Absolutely nothing in the logs.
**
** Then either you didn't understand the question, or your logging is
** broken.
**
** To help us diagnose your hung qmail-remote problem, include all
** relevant log entries for remote deliveries, including the starting
** delivery lines.
**
**




RE: Qmail-remote stopped up?

2001-06-06 Thread Troy Settle


Jorgen,

Thanks for the input.  Out of 10k+ messages per day, only 5-6 qmail-remote
processes get stuck per week. To date, I've not been able to identify any
consistancy among message size, composition, or remote mail server.  It
appears to be fairly random.

Network connectivity is fine, the vast majority of mail comes and goes as
quickly as you please, I'm also doing backup MX for a couple other networks
without problem.  Internet connectivity is good as well, I'm multihomed
between Sprint and ATT and utilize 100MB Ethernet between the mail server
and router (fxp  2924  3640  world).

RAM is also fine.  Out of 256MB, I generally have 20-30mb free (this box is
also doing DNS, Radius, and some light-weight web serving).

Anything else worth looking at?

--
  Troy Settle
  Pulaski Networks
  540.994.4254



** -Original Message-
** From: Jörgen Persson [mailto:[EMAIL PROTECTED]]
** Sent: Wednesday, June 06, 2001 7:37 AM
** To: [EMAIL PROTECTED]
** Subject: Re: Qmail-remote stopped up?
**
**
** On Wed, Jun 06, 2001 at 03:06:57AM -0400, Troy Settle wrote:
** 
**  Very well, here's the log entry for the last message:
** 
**  2001-06-04 21:04:21.325080500
**new msg 7513010
**  2001-06-04 21:04:21.325300500
**info msg 7513010: bytes 3585 from [EMAIL PROTECTED] qp 46253 uid 82
**  2001-06-04 21:04:21.399088500
**starting delivery 95298: msg 7513010 to remote [EMAIL PROTECTED]
**  2001-06-04 21:04:21.399269500
**status: local 0/10 remote 13/30
** 
**  There is no other reference to this message since, but there
** have been other
**  messages from this user successfully sent to the same
** destination without
**  problem:
** [snip]
**
**
** I do not think qmail is failing, something else is...
**
** The stuck messages is not delivered, ie they ought to be in the queue.
** can you read them the CLI way?? If you can -- check your internet
** connection (DNS, load balancer, NIC and whatever might be between you
** and the rest of the world). By the way, don't forget to check your RAM.
**
** Jörgen
**
**




Qmail-remote stopped up?

2001-06-05 Thread Troy Settle


All,

For the last several months, I've been having some severe problems with
qmail-remote.  I've rebuilt from fresh sources and updated my system
(FreeBSD 4.2-STABLE) several times.  Nothing seems to help.  You can see
what I'm seeing at http://home.psknet.com/troy/qmail-remote.txt.

This is very annoying, the stuck processes just sit there for days until
there's no more room to spawn more qmail-remote processes.  If I don't keep
up on it, the queue backs up and I end up getting customer complaints.

Can anyone offer any guidance on this?

TIA,

--
  Troy Settle
  Pulaski Networks
  540.994.4254