RE: [vchkpw] Send email warning password

2006-08-03 Thread Michael Bellears
 
 I need to send email every 4 months to all users for may 
 domain, notify change the password please help me...

Vpopbull/cron should do what you need.


RE: [vchkpw] vmysql: sql error[3]: Lost connection to MySQL server during query - once again

2006-07-24 Thread Michael Bellears
I have tracked down 
 the problem to the mysql threads timing out after 5 minutes 
 (we are using the database server that handles authentication 
 for other purposes, too)

Just how busy is MySQL? 


RE: [vchkpw] I could not patch netqmail-1.05_chkuser-2.0.8.patch

2006-02-17 Thread Michael Bellears





  What shall I do ?
  
  Provide the errors you received at the very 
least


[vchkpw] Smtpd logs: connect(): No such file or directory

2005-12-23 Thread Michael Bellears
One of our mail servers has started displaying the following in the logs
(Now new mail is deilivered):

2005-12-23 23:21:18.084443500 tcpserver: status: 2/40
2005-12-23 23:21:18.084502500 tcpserver: pid 15804 from 65.54.175.24
2005-12-23 23:21:18.084570500 tcpserver: ok 15804 0:203.149.65.14:25
:65.54.175.24::58935
2005-12-23 23:21:18.632896500 CHKUSER accepted rcpt: from
[EMAIL PROTECTED]:: remote hotmail.com:unknown:65.54.175.24 rcpt
[EMAIL PROTECTED] : found existing recipient
2005-12-23 23:21:19.005177500 connect(): No such file or directory
2005-12-23 23:21:19.205640500 tcpserver: end 15804 status 0

What would cause the:

connect(): No such file or directory

The only thing that has been installed recently on the server is
Maildrop?

Regards,
MB


RE: [vchkpw] Smtpd logs: connect(): No such file or directory

2005-12-23 Thread Michael Bellears
 
 On Friday 23 December 2005 05:25 am, Michael Bellears wrote:
  One of our mail servers has started displaying the following in the 
  logs (Now new mail is deilivered):
 
 [snip]
 
  2005-12-23 23:21:19.005177500 connect(): No such file or directory
 
 [snip]
 
  The only thing that has been installed recently on the server is 
  Maildrop?
 
 someone had this issue in #qmail the other day and I think 
 they figured out that clamd or spamd wasn't running, one of 
 the two.  I assume you're using simscan.

Certainly am running simscan - I worked around it earlier this morning
by disabling simscan in /home/vpopmail/etc/tcp.smtp.

Clamd had stopped logging to /var/log/clamd/current, with the following
as the last entry:

2005-12-23 19:43:18.739548500 Shutting down the main socket.
2005-12-23 19:43:18.739590500 Closing the main socket.
2005-12-23 19:43:18.739655500 Socket file removed.
2005-12-23 19:43:18.739667500 Exiting (clean)
2005-12-23 19:43:18.739695500 --- Stopped at Fri Dec 23 19:43:18 2005
2005-12-23 19:43:18.748039500 server ended; result=0
2005-12-23 19:43:18.748040500 free() copt

Now to figure out why :)

Regards,
MB


RE: [vchkpw] valid user patch

2005-05-24 Thread Michael Bellears
 
 http://http.netdevice.com:9080/qmail/rcptck/
 
 Does anyone know if any of these patches work with vpopmail 
 and virtual domains?
 I really want to install something eliminate the insane 
 amount of bounce messages in my queue. They are all sorry 
 that user does not exist, and of course they are bouncing to 
 invalid accounts since the spammer never puts a valid from 
 header in their emails. It's driving me nuts, since my queue 
 fills up with many thousands of these messages and is 
 severely degrading the performance of my server.

I have used interazioni's chkuser patch with great success:
(http://www.interazioni.it/opensource/chkuser/)

My queue has dropped from ~20,000 to an average of ~150, with an average
load of 1 (Used to be ~8)

Regards,
MB


[vchkpw] 5.3.19 Upgrade - Suggestions on making it as painless as possible.

2005-03-14 Thread Michael Bellears
Just wondering if anyone has upgraded (relatively painlessly!) from
5.3.19 (qmail-1.03, Bill Shupps qmail-toaster-0.4.2.patch, MySQL) -
5.4.9 (Basing install on http://www.shupp.org/toaster/, but will be
using MySQL)?

Any gotchas/hints would be greatly appreciated.

Regards,
MB



RE: [vchkpw] Migrating an entire domain to a different server.

2004-07-23 Thread Michael Bellears
Hi Jean,

Jean Wainer wrote:
 - Copy MySQL entries for domain to new server? (This is the step I am
 unsure about!)
 Well, you can do that. Or you convert the user base to CDB on
 the original server (~vpopmail/bin/vconvert -m -c $domain),
 copy the CDB file to the other server (inside the domain
 dir), then run vconvert on the new server
 (~vpopmail/bin/vconvert -c -m $domain). I prefer this way.. :)
 

Ahh - Thanks!

Any gotchas moving the 5.3.19 - Current Stable with vconvert?

Regards,
MB


[vchkpw] Migrating an entire domain to a different server.

2004-07-22 Thread Michael Bellears
Running vpopmail version: 5.3.19, with MySQL auth (I know - Have to
upgrade!), and we have one client who wishes to move there domain to a
new server - The domain contains about 400 accounts, and I was wondering
the best way to migrate the entire domain?

- Add clients_domain to new server
- Copy /home/vpopmail/domains/clients_domain/* to new server
- Copy MySQL entries for domain to new server? (This is the step I am
unsure about!)

Thanks in advance.

Regards,
MB


RE: [vchkpw] User is over quota (whithout beeing over quota)

2004-05-28 Thread Michael Bellears
 
  My users are reporting me they are receiving a warning message that
 they are
  over their user quota, but they know they are not over quota.
 
 Do note quote me on this, but i _believe_ the way to fix this 
 is to remove the quota file, and it should be rebuild on the 
 next delivery.

It can also be caused when a user receives an e-mail that is greater in
size than the users available quote - quotawarn is generated, but the
mail bounces.

Regards,
MB


RE: [vchkpw] User-managed mailing lists in virtual hosting environment?

2004-05-20 Thread Michael Bellears
 Complicating things (apparently) is that our mail server is 
 separate from the Web server on which we provide clients' 
 virtual hosts:  I am hoping to be able to allow a customer to 
 create (say) [EMAIL PROTECTED] (but ezmlm-web appears to 
 want to use the canonical hostname for the mail server as the 
 RHS of the email address).
 
 Is there some other choice I might plausibly make to support 
 such lists?

I don't know if this will be applicable in your environment, but
qmailadmin (http://www.inter7.com/qmailadmin.html) has mailing list
management functionalities.

HTH,
MB


RE: [vchkpw] Temporarily disable mail delivery to domain

2004-05-20 Thread Michael Bellears
 
 I think I saw a qmail patch that let you use a badrcptto or 
 badmailto file in /var/qmail/controls.  Check 
 http://www.qmail.org and search for badrcptto (there are two 
 of them right together).  If this works, it would reject the 
 mail at the smtp level.

Thanks for the info.
 
 I think rejecting at the smtp level would be the most 
 efficient since you wouldn't have to accept the whole message then.

I agree.

Regards,
MB


[vchkpw] Temporarily disable mail delivery to domain

2004-05-19 Thread Michael Bellears
Is there a simple way to temporarily disable mail delivery to domain
(i.e. When a client has not paid there bill)

Regards, 
MB


RE: [vchkpw] Temporarily disable mail delivery to domain

2004-05-19 Thread Michael Bellears
 
 With the cdb back end it is easy, sql back ends might be a problem... 
 Move their domain directory to a different name, then run 
 vdeldomain on the domain.  When they pay, run vadddomain, 
 then move the directory back.  If you are using a database, 
 you could possibly use vconvert to copy the data from the 
 database to  cdb storage before moving the directory, then 
 again to put it back once they pay.
 
 Another way would be to remove their domain from the files in 
 /var/qmail/control and /var/qmail/users by hand.  Remember 
 what you remove, and from where.  You have to signal qmail to 
 reload the files once you are done.

Thanks for the info Rick.

Hmm...Think I'll just leave pop+imap disabled.

Regards,
MB

 
 Rick
 
 
 


RE: [vchkpw] Server Farm..

2004-04-07 Thread Michael Bellears
 
 We have been running this particular setup for about a year 
 now... I am happy with the overall performance, however when 
 things break, they have a tendancy to break badly especially 
 with MySQL's replication.
 
 We had a problem with our NFS store dropping out from under the NFS
 server* (the DBs were located on the same machine). This 
 forced a hard restart on the server and when the server would 
 come back up the replication in MySQL was broken between the 
 master and slaves (the master had a different replication 
 point than the slaves, the slaves were requesting a start 
 position that didn't exist. The worst part is we didn't 
 realize it initially until updates to users, etc weren't 
 being seen on the slave servers). This forced us to down the 
 local database servers (slave database servers). This did 
 have the advantage of forcing vpopmail to look at the master 
 server for reads and writes which was a nice fall back 
 position, but the restoration process was difficult and 
 depending on the amount of data in the vpopmail database, 
 very time consuming moving massive database dumps to resync 
 the databases on the slave servers.
 
 I have had to do this process about 5 times since we have 
 started running this setup. Also if you are going to do this, 
 be sure that when you do a mysqldump of your data (you are 
 doing that nightly right?;) ) be sure to use the 
 --master-data option so the slaves will know where to pick up 
 replication with the master. Another tip... Turn off auth 
 logging to mysql if you are doing replication... ICKY.

Thanks for the info!

How do you find NFS performance? (Did you use any special tweaking/mount
options?)
And what are you using for auth?(NIS/LDAP etc)

 
 We are currently looking at a load balancer solution 
 (UltraMonkey/LVS or Foundry ServerIron,

I would like to consider a Linux alternative, but majority of our
support staff are not Linux savvy...

 still haven't decided 
 but UltraMonkey/LVS is working well so far) with DRBD 
 (http://www.drbd.org/) and heartbeat for both the database 
 and NFS servers and cheap clones as the actual mail servers 
 running a combination of qmail+vpopmail+clamav+spamassassin.

Just out of interest - What are you using to sync data(configs etc) -
You also mention NFS servers...So I assume you are running more than
one behind a loadbalancer...how are you synching data between them?

Regards,
MB



RE: [vchkpw] Server Farm..

2004-04-07 Thread Michael Bellears
 
 I don't think samba gives the proper filesystem semantics 
 that would be needed for this to happen.

Thanks!

 
   The other option though, is that
   vpopmail does support a master/slave setup where any writable 
   queries go to server X while readable ones are done locally for 
   performance.  This is a better scenario than two way replication 
   since you don't run the risk of replication breakage.
  
  [that] option sounds much better - If a writable query is 
 performed, I 
  assume I must have master/slave configured (Master 
 obviously being the 
  writable mysql server, which would then update all the slaves?)
 
 right.  We have several of those types of installations up 
 and running. 
 Works pretty well.

Ok - What happens if the master write server is unavailable...does
vpopmail start writing to local read database?

Regards,
MB


RE: [vchkpw] Server Farm..

2004-04-05 Thread Michael Bellears
 
 Never used remote logging for multilog so I can't tell you 
 about that, but it looks pretty straight forward.  NFS 
 settings can be tweaked to improve its performance/bandwidth 
 usage.  I've only seen it chew up a ton of bandwidth when 
 things aren't setup properly, or when a drive couldn't be 
 mounted properly.

Thanks - Would it be worthwhile running Samba only (The NAS will be
serving both Win+Linux boxes)?

 
 As for your mysql two-way replication.  Ordinarily I'd say 
 this was a bad and evil idea, in the case of the vpopmail 
 database it should be fine.
 Since they key their records with text fields and not 
 numerical ones the risk of a duplicate key breaking 
 replication is almost non existent.  Both servers would have 
 to add the same [EMAIL PROTECTED] at the same time, and what 
 are the chances of that...  The other option though, is that 
 vpopmail does support a master/slave setup where any writable 
 queries go to server X while readable ones are done locally 
 for performance.  This is a better scenario than two way 
 replication since you don't run the risk of replication breakage.

Second option sounds much better - If a writable query is performed, I
assume I must have master/slave configured (Master obviously being the
writable mysql server, which would then update all the slaves?)

Regards,
MB


[vchkpw] Server Farm..

2004-04-02 Thread Michael Bellears
I am in the process of migrating our qmail/vpopmail/webmail box to a
server farm (Using ServerIron for Load Balancing)

I have decided to log everything to a central log server (To simplify
support and generation of stats), and came across the following:

The following describes how to log to remote host using multilog and
tcpclient:

http://smarden.org/socklog/network.html

Has anyone used the above - Or has comments suggestions on an
alternative?

I was also thinking of having mysql servers(2 to begin with) in a Mutual
Master-Slave relationship (Sitting behind a loadbalancer), and have all
qmail/vpopmail/webmail boxes connect to the one (Loadbalanced) IP for
authAlthough I have never used Mutual Master-Slave relationship with
MySQL, and do not know how effective it is? (If anyone has an alternate
solution, please let me know!)

We are building the NAS ourselves, and I have had a few reports that NFS
was a total bandwidth whore - Therefore was considering running Samba
only?
Would also appreciate anyones experiences(Difficulty in setting up,
scalability etc) with using either LDAP, Kerberos or (maybe?) Radius for
auth - As I've heard NIS has security issues?


Thanks in advance.

Regards,
MB


RE: [vchkpw] info for installations...

2003-07-07 Thread Michael Bellears
Does anyone have the link that was going around the list for the
installation of vpopmail, imap, spamassassin etc...? 

Thanks, 

http://www.jerfu.com/toaster/FullToaster_1.0.6.html

http://www.pipeline.com.au/staff/mbowe/isp/webmail-server.htm

Regards,
MB



RE: [vchkpw] Automatic Folder creation

2003-06-01 Thread Michael Bellears

  I thought about this patch, too... However, I've planned to 
 implement it
 outside of vpopmail. Now I think that better place will be in vpopmail
 itself, thanks for idea...
 

You could do it quite simply in a mailfilter:

Eg. My Spam mailfilter creates a SPAM folder if it does not already exist, then 
delivers any messages marked as spam to the new dir:

if ((/^X-Spam-Flag:.*YES/))
{
   `test -d ./Maildir/.SPAM`
   if( $RETURNCODE == 1 )
   {
   `maildirmake ./Maildir/.SPAM;chown -R vpopmail.vchkpw ./Maildir/.SPAM`
   `/home/vpopmail/subImapSpam.sh ./`
   }
   to ./Maildir/.SPAM/
}

to ./Maildir/
~

/home/vpopmail/subImapSpam.sh:

#!/bin/bash
IMAP=$1/Maildir/courierimapsubscribed
if [ -f $IMAP ]; then
CHECK=`cat $1/Maildir/courierimapsubscribed | grep INBOX.SPAM`
if [ $CHECK ==  ]; then
echo INBOX.SPAM  $IMAP
fi
else
NEW=INBOX\nINBOX.Sent\nINBOX.Trash\nINBOX.Drafts\nINBOX.SPAM

echo -e $NEW  $IMAP
chown vpopmail.vchkpw $IMAP
chmod 644 $IMAP
fi
~

HTH,
MB

 
  -- 
  Alex.
 
 
 
 
 
 



[vchkpw] Parse with spamassassin, then honour smtproutes?

2003-05-28 Thread Michael Bellears
I have multiple domains running on one server, and have been asked to
accept mail for a domain, parse it with spamassassin, then forward to
remote mail server.

I have tried adding the domain(eg example.com via vqadmin), adding an
smtproutes entry, then creating an .qmail-default:

|/usr/bin/spamc -f -u spamd |forward $DEFAULT@example.com

But the message fails (loops):

2003-05-28 16:33:10.422753500 delivery 10263: failure:
This_message_is_looping:_it_already_has_my_Delivered-To_line._(#5.4.6)


Regards,
MB



[vchkpw] .quotawarn.msg To: field

2003-01-14 Thread Michael Bellears
Quota Warnings are working fine, apart from the To: field not containing
the users correct address: 

.quotawarn.msg example has
To: Valued Customer:;

Just wondering what I could change this to in order to have the users
correct address inserted when the warining is sent?

The header
Delivered-To: 
Contains the correct users address.

Deb 3.0, vpopmail-5.3.9

Regards,
MB




[vchkpw] Vqadmin disable domain..

2002-11-05 Thread Michael Bellears
I'm currently running:

vqadmin 2.3.4
vpopmail5.3.9
qmailadmin  1.0.6

And have just attempted to 'disable' an active domain from vqadmin:

Disable pop access  
Disable imap access 
Disable dialup access 
Disable change password 
Disable web access 
Disable email relay  

Which works for mail delivery/pop and imap access - But the user can still
access qmailadmin?


Regards,
Michael