Jeremy Oddo | 4 May 00:24 2006

Best way to receive mail on TWO servers

Does anyone have suggestions for sending all incoming mail
to two servers?

I have a vpopmail server in place. I want to replace it with
an upgraded server. I want both to receive mail for a bit so
I can test the new server. I only have one external IP
address. Is there a way to tell the first server to send the
incoming mail over to the new server?

Thanks.

Michael Krieger | 4 May 07:00 2006

Re: Best way to receive mail on TWO servers

Yes.  Set up a new copy of qmail in a different folder other than /var/qmail [or your current location] (see conf-*), as otherwise you can't have two running on the same machine, unless they point to the same queue and all.

Bring up tcpserver for the second installation on a different port- if you care to take over a valid but lesser used port, try 26.

Then add an smtproute (man qmail-remote for details) for  :localhost:26 [do check the syntax] to route all mail to that smtp server.

Of course, if you loose the mail, you still loose the mail.  I'd advise delivering to a maildir locally and maybe using some of the many tools to send a mail queue from a maildir to a relay instead, leaving a copy of the mail for safekeeping.

-M

Jeremy Oddo <joddo <at> apixels.com> wrote:

Does anyone have suggestions for sending all incoming mail
to two servers?

I have a vpopmail server in place. I want to replace it with
an upgraded server. I want both to receive mail for a bit so
I can test the new server. I only have one external IP
address. Is there a way to tell the first server to send the
incoming mail over to the new server?

Thanks.



Alessio Cecchi | 4 May 15:54 2006
Picon

vmysql: sql error[3]: MySQL server has gone away

Hello

i have install sqwebmail 5.1.1 (upgrade from 4.0.4) courier-imap 4.1.0 on a 
Fedora 1 server and courier-authlib 0.58. Users are in vpopmail (upgrade from 
5.4.3 to 5.4.13) + mysql (MySQL-server-5.0.15-0.glibc23) and vpopmail (for 
pop3) works fine.

But IMAP and also sqWebmail after some times don't work:

May  4 15:18:45 ServerDedicato authdaemond: received auth request, 
service=webmail, authtype=login
May  4 15:18:45 Server authdaemond: authvchkpw: trying this module
May  4 15:18:45 Server authdaemond: vmysql: sql error[3]: MySQL server has 
gone away
May  4 15:18:45 Server authdaemond: vchkpw: user does not exist
May  4 15:18:45 Server authdaemond: authvchkpw: REJECT - try next module
May  4 15:18:45 Server authdaemond: FAIL, all modules rejected
May  4 15:18:45 Server sqwebmaild: LOGIN FAILED, user=test <at> test.biz, 
ip=[19.10.53.57]

On courier maling-list said me that thi a know vpopmail bug of older version, 
so i have upgraded to latest stable version of vpopmail (from 5.4.3) but the 
preblome persist.

Hav you some suggestions?
Thanks
p.s.
mysql server works fine
--

-- 
Alessio Cecchi ++ www.skye.it

daniel | 5 May 08:58 2006
Picon

Re: vmysql: sql error[3]: MySQL server has gone away

> Hello
>
> i have install sqwebmail 5.1.1 (upgrade from 4.0.4) courier-imap 4.1.0 on
> a
> Fedora 1 server and courier-authlib 0.58. Users are in vpopmail (upgrade
> from
> 5.4.3 to 5.4.13) + mysql (MySQL-server-5.0.15-0.glibc23) and vpopmail (for
> pop3) works fine.
>
> But IMAP and also sqWebmail after some times don't work:
>
> May  4 15:18:45 ServerDedicato authdaemond: received auth request,
> service=webmail, authtype=login
> May  4 15:18:45 Server authdaemond: authvchkpw: trying this module
> May  4 15:18:45 Server authdaemond: vmysql: sql error[3]: MySQL server has
> gone away
> May  4 15:18:45 Server authdaemond: vchkpw: user does not exist
> May  4 15:18:45 Server authdaemond: authvchkpw: REJECT - try next module
> May  4 15:18:45 Server authdaemond: FAIL, all modules rejected
> May  4 15:18:45 Server sqwebmaild: LOGIN FAILED, user=test <at> test.biz,
> ip=[19.10.53.57]
>
> On courier maling-list said me that thi a know vpopmail bug of older
> version,
> so i have upgraded to latest stable version of vpopmail (from 5.4.3) but
> the
> preblome persist.
>
> Hav you some suggestions?
> Thanks
> p.s.
> mysql server works fine
> --
> Alessio Cecchi ++ www.skye.it
>

Sorry to say this but no one found a working fix for now :(

I too have the same problem and found that restarting the courier-authlib
daemon temporarel;y fixes the problem.

A quickfix is to put an hourly cronjob to restart courier-authlib, since i
made that no more "mysql server has gone away" errors ;)

-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/

Jianbin Xiao | 5 May 09:56 2006
Picon

Re: vmysql: sql error[3]: MySQL server has gone away

my patch: http://www.xiaojb.com/upload/2006/vmysql.patch
You need apply this patch and recompile vpopmail&courier-authlib.

Pls try it,if you have question,contact me.

The other way is remove "wait_timeout=xxx" from my.cnf, then you need
restart your mysql&authlib service.


On 5/5/06, daniel <at> xma.ro <daniel <at> xma.ro> wrote:
> Hello
>
> i have install sqwebmail 5.1.1 (upgrade from 4.0.4) courier-imap 4.1.0 on
> a
> Fedora 1 server and courier-authlib 0.58. Users are in vpopmail (upgrade
> from
> 5.4.3 to 5.4.13) + mysql (MySQL-server-5.0.15-0.glibc23) and vpopmail (for
> pop3) works fine.
>
> But IMAP and also sqWebmail after some times don't work:
>
> May  4 15:18:45 ServerDedicato authdaemond: received auth request,
> service=webmail, authtype=login
> May  4 15:18:45 Server authdaemond: authvchkpw: trying this module
> May  4 15:18:45 Server authdaemond: vmysql: sql error[3]: MySQL server has
> gone away
> May  4 15:18:45 Server authdaemond: vchkpw: user does not exist
> May  4 15:18:45 Server authdaemond: authvchkpw: REJECT - try next module
> May  4 15:18:45 Server authdaemond: FAIL, all modules rejected
> May  4 15:18:45 Server sqwebmaild: LOGIN FAILED, user= test <at> test.biz,
> ip=[19.10.53.57]
>
> On courier maling-list said me that thi a know vpopmail bug of older
> version,
> so i have upgraded to latest stable version of vpopmail (from 5.4.3) but
> the
> preblome persist.
>
> Hav you some suggestions?
> Thanks
> p.s.
> mysql server works fine
> --
> Alessio Cecchi ++ www.skye.it
>


Sorry to say this but no one found a working fix for now :(

I too have the same problem and found that restarting the courier-authlib
daemon temporarel;y fixes the problem.

A quickfix is to put an hourly cronjob to restart courier-authlib, since i
made that no more "mysql server has gone away" errors ;)


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/




--
===========================
Jianbin Xiao
http://www.xiaojb.com
===========================
Jeremy Oddo | 5 May 19:12 2006

Re: Best way to receive mail on TWO servers


> Yes.  Set up a new copy of qmail in a different folder other
> than /var/qmail [or your current location] (see conf-*), as
> otherwise you can't have two running on the same machine,
> unless they point to the same queue and all.
>
[...SNIP...]

Wow! I didn't think I'd have to set up another instance of
qmail just to get this working. I was hoping there was a
simpler way.

> I'd advise delivering to a maildir locally and maybe using
> some of the many tools to send a mail queue from a maildir
> to a relay instead, leaving a copy of the mail for
> safekeeping.
>
Hmmm. This may work. All I'm really interested in doing is
having the INCOMING mail go to two different servers. One
server will only be used for testing so I don't need to
worry about keeping the mail, etc.

It seems like there should be a cleaner way to do this.

Thanks for the help.

Tom Collins | 7 May 21:48 2006

vpopmail 5.4.16 released (finally)

5.4.16 - released 7-May-06
http://vpopmail.sf.net/

Release Notes:

More fixes to 5.4.14/5.4.15, hopefully leading to a useable, stable  
release
incorporating vpopmaild from the 5.5 branch.

There is an important security fix in this release, related to cleartext
passwords.  If cleartext passwords are enabled, and an account doesn't
have a cleartext password set, it is possible to authenticate with
SMTP AUTH and/or APOP methods using a blank password.

Once anonymous CVS is updated (after May 8), this link should show the
changes made to vchkpw.c:

http://cvs.sourceforge.net/viewcvs.py/vpopmail/vpopmail/vchkpw.c? 
r1=1.11.2.4&r2=1.11.2.5&diff_format=u

ChangeLog

Michael Krieger
- vpalias: Properly handle some empty search results.

Ken Jones
- vpalias: wasn't allocating enough memory for alias name in
   valias_select_names (missing one byte for NULL).

Jianbin Xiao
- vmysql: reconnect to server if connection was dropped.

Rick Widmer
- vpgsql: fix queries to allow domains starting with digits.

John Simpson
- vpgsql: fix compile errors introduced in 5.4.14.
- vdominfo: undo change from 5.4.14 that displayed alias domains
   incorrectly.

Toshihiko Kyoda
- vdelivermail: check for over quota when creating temp mail file.

Tom Collins
- vpalias: Fix double-free in code ported from 5.5 branch.
- valias: exit non-zero on error, send all errors to stderr.
- vchkpw: make sure we have cleartext pass before checking SMTP_AUTH
   or APOP logins.
- Remove vactivedir code since it's just a client for a non-existent
   server.

Michael Krieger | 8 May 05:17 2006

problem overriding qmailadmin limits at authentication?

Interesting problem.

.qmailadmin-limits is my default that has disable_imap set for the domain.  Naturally that should make new accounts have that limit.

Sadly though, I want some people to use imap.  So I clear the flags (-x) with vmoduser, but the disable_imap still holds true, rejecting the login.

I don't recall it working that way before.  Is this something new?

-M

Tom Collins | 8 May 06:53 2006

Re: problem overriding qmailadmin limits at authentication?

On May 7, 2006, at 8:17 PM, Michael Krieger wrote:
> Interesting problem.
>
> .qmailadmin-limits is my default that has disable_imap set for the 
> domain.  Naturally that should make new accounts have that limit.
>
> Sadly though, I want some people to use imap.  So I clear the flags 
> (-x) with vmoduser, but the disable_imap still holds true, rejecting 
> the login.
>
> I don't recall it working that way before.  Is this something new?

The limits file applies to every user in the domain -- it's not a 
template used when creating new accounts.

If you want some people to use imap, you have to use the -o flag (user 
is not subject to domain limits).

--
Tom Collins  -  tom <at> tomlogic.com
QmailAdmin: http://qmailadmin.sf.net/  Vpopmail: http://vpopmail.sf.net/

Michael Krieger | 8 May 20:38 2006

Re: Corrupt return-path help? [OT]

Sorry- I meant shouldn't this be added by qmail-local on delivery.  I guess I am trying to figure out why it isn't properly adding it.
-M

Michael Krieger <phyre <at> rogers.com> wrote:

Somewhat off-topic, but I'm imagining that somewhere in the mix is where this is all beginning.

This is an example of a [junk but unscanned] message [slightly edited for the actual e-mail addresses, though mostly should be the same] that was received.  You'll notice the Return-Path: fails to have any data or a newline after it, being prepended to a received line that already exists.

I then get this in my qmail log file: qmail-inject:_fatal:_unable_to_parse_this_line:/Return-Path:_Received:_...
when it tries to forward the mail based on a .qmail file.

So my question is where would this be allowed into the system?  Shouldn't qmail-smtpd (and simscan) be adding a proper return path based on the senders' from address when it passes it along for the initial delivery?

Received: (qmail 27397 invoked by uid 89); 8 May 2006 13:12:31 -0400
Received: by simscan 1.2.0 ppid: 27387, pid: 27395, t: 0.0977s
         scanners: clamav: 0.88.2/m:38/d:1448
DomainKey-Status: no signature
Received: from unknown (HELO 211.57.43.201) (211.57.43.201)
  by suede.mydomain.com with SMTP; 8 May 2006 13:12:28 -0400
Received-SPF: neutral (suede.mydomain.com: 211.57.43.201 is neither permitted nor denied by SPF record at _spf.google.com)
Return-Path: Received: from keith.lloyd.com (keith.lloyd.com [158.222.0.2]) by mailgate.yorkinternet.net with ESMTP; May, 08 2006 12
:03:14 PM -0300
Received: from mail.bellsouth.com (mail.bellsouth.com [139.76.165 .130]) by mail.landg.com with smtp; May, 08 2006 10:54:17 AM -0300
From: xhdrhrfordz <at> swbell.net <vxkhvivek.saraf <at> gmail.com>
To: manny <at> mydomain.com
Subject: Atuh stock is on the move !!! Could double in a week qqkl
Sender: xhdrhrfordz <at> swbell.net <vxkhvivek.saraf <at> gmail.com>
Mime-Version: 1.0
Content-Type: text/html; charset="iso-8859-1"
Date: Mon, 8 May 2006 12:12:27 -0500
X-Mailer: Microsoft Outlook Build 10.0.2616

Any help is apprecaited,
-M



Gmane