Re: [vchkpw] Mail to all users?
Hi, In an ISP situation, i.e. with many domains, each with many users, what's the easiest/best way to send a mail to all users? Here's my thoughts so far: vpopbull - would need to loop over all domains and run vpopbull once for each domain - not a major issue - Seems to write directly to the Maildir so it ignores any forwards ezmlm mailing list - Would be a bit of a pain to keep all addresses current, i.e. to keep the list members syncronised with the accounts on the server Any further ideas? Thanks, R. I use vpopbull. Just leave off the domain to send an email to all the virtual domains. Never noticed about forwards though. Sorry. Matt
Re: [vchkpw] That domain isn't in my list of allowed rcpthosts
The mail server resides at a 172.16.0 net and the client machines at a 192.168.2.0 net. If I have understood the documentation correctly, vpopmail must be configured with --enable-roaming- users if the client machines are on a different net. Correct? The entry in /home/vpopmail/etc/tcp.smtp is 172.16.0.:allow,RELAYCLIENT= and I have done qmailctl cdb qmailctl stop /var/vpopmail/bin/clearopensmtp qmailctl start Maybe I'm missing something too but shouldn't the contents of the tcp.smtp file say: 192.168.2.:allow,RELAYCLIENT= since the connections are coming FROM the 192 network? However, since this is a qmail-smtpd generated error you may want to address questions to the qmail.org mailing list (not that any of these fine people could answer your question mind you). Matt
Re: [vchkpw] NFS and vpopmail
On May 11, 2006, at 10:11 PM, Jeremy Kister wrote: by the phrase entire qmail service, I take it you did not install via LifeWithQmail ? Well the qmailrocks install - which from reading both LWQ and qmailrocks (as far as a basic install goes) qmailrocks seems to be builds upon the LWQ install - could be wrong though. In either case, are you using vpopmaild? I know little about it more than how to spell it, but if you're using it I could imagine it's part of your problem. Could it be an invalid/missing option in my NFS exports or the way I'm trying to mount the NFS share? unlikely. I kind of figured that and felt silly after I hit send. Matt
Re: [vchkpw] NFS and vpopmail
On May 11, 2006, at 10:23 PM, Rick Widmer wrote: I thought that was it too so I did a kill -HUP qmail-send but still nothing. I also stopped/started the entire qmail service (going along with what Rick was saying) and still nothing. Could it be an invalid/missing option in my NFS exports or the way I'm trying to mount the NFS share? Matt How are you updating the files in /var/qmail/control that change when adding/removing a domain? I'm using the vadddomain command. /var/qmail/control is mounted on the NFS share so it should be updated - right? Matt
Re: [vchkpw] NFS and vpopmail
On May 12, 2006, at 6:58 AM, Rick Macdougall wrote: Hummm, Are the system times all within 1 second of each other on all the machines ? Rick The dates were way off - several months. I synced all three servers up with our NTP server - same error: May 12 07:18:03 mail2 vpopmail[15323]: vchkpw-smtp: vpopmail user not found [EMAIL PROTECTED]:10.5.4.41 If I do `vuserinfo [EMAIL PROTECTED] on each machine it will print the postmaster info. So each machine does see that it exists - just not sure after that. Matt
Re: [vchkpw] NFS and vpopmail
On May 12, 2006, at 7:43 AM, MT wrote: On May 12, 2006, at 6:58 AM, Rick Macdougall wrote: Hummm, Are the system times all within 1 second of each other on all the machines ? Rick Oh and a side note - maybe this will help? I can pull the off each server just fine - it only errors when I send the mail. Matt
Re: [vchkpw] NFS and vpopmail
On May 12, 2006, at 7:56 AM, MT wrote: On May 12, 2006, at 7:43 AM, MT wrote: On May 12, 2006, at 6:58 AM, Rick Macdougall wrote: Hummm, Are the system times all within 1 second of each other on all the machines ? Rick Oh and a side note - maybe this will help? I can pull the off each server just fine - it only errors when I send the mail. Matt Well I think I got it. I started from scratch, recompiled qmail and patched using John Simpsons all-in-one patch v. 1.5 - now it works. I'm going to format and do a fresh install to test it again. I'll post back. Matt
Re: [vchkpw] NFS and vpopmail
On May 12, 2006, at 9:01 AM, Tom Collins wrote: On May 12, 2006, at 6:43 AM, MT wrote: May 12 07:18:03 mail2 vpopmail[15323]: vchkpw-smtp: vpopmail user not found [EMAIL PROTECTED]:10.5.4.41 If I do `vuserinfo [EMAIL PROTECTED] on each machine it will print the postmaster info. So each machine does see that it exists - just not sure after that. The qmail-smtpd process doesn't have the correct permissions to read the vpasswd file for the domain (or the vpopmail.mysql file with the MySQL login info). So I'm still reinstalling - nice POS hardware I'm given to use (but that's another story). If anyone could tell me please, what should the permissions be? This is the setup I did: On the NFS server I created /home/domains, /home/users, /home/control I created user/group vpopmail:vchkpw and group qmail. The directories on the NFS server looks like this: drwxr-xr-x 2 root qmail 584 May 12 07:33 control drwxr-xr-x 3 vpopmail vchkpw 160 May 12 07:33 domains drwxr-xr-x 2 root qmail 128 May 12 07:33 users On the mail servers / NFS clients I created directories /mnt/ domains, /mnt/control, /mnt/users Do I change the permissions on the client to? (example) drwxr-xr-x 3 vpopmail vchkpw 160 May 12 07:33 domains Have I got my permissions COMPLETELY screwed up? I know this is more of an NFS question rather than vpopmail - but I figure that anyone who has a working NFS/vpopmail setup should know. thanks, Matt
Re: [vchkpw] NFS and vpopmail
On May 12, 2006, at 11:30 AM, Dave Weiner wrote: Have I got my permissions COMPLETELY screwed up? I know this is more of an NFS question rather than vpopmail - but I figure that anyone who has a working NFS/vpopmail setup should know. The big thing with NFS is make sure that the UID and GID are the _SAME_ on all machines. On the NFS /etc/passwd /etc/group has entry: vpopmail:x:1000:1000::/home/vpopmail:/bin/bash vchkpw:!:1000: On the clients it's: vpopmail:x:1007:1002::/home/vpopmail:/sbin/nologin vchkpw:!:1002: That could explain why after mounting the share on the client it gave the mount a user/group of alias:nofiles I'll try making them use the same UID/GID
Re: [vchkpw] NFS and vpopmail
On May 12, 2006, at 11:47 AM, Tom Collins wrote: On May 12, 2006, at 10:22 AM, MT wrote: The qmail-smtpd process doesn't have the correct permissions to read the vpasswd file for the domain (or the vpopmail.mysql file with the MySQL login info). So I'm still reinstalling - nice POS hardware I'm given to use (but that's another story). If anyone could tell me please, what should the permissions be? This is the setup I did: Just make sure qmail-smtpd runs as user vpopmail. Alright, after a (testing) reboot it seems to be working. Thanks for your help Jeremy, Rick, Rick, Remo, Tom, and Dave. Matt
[vchkpw] NFS and vpopmail
I've searched and searched because I was certain that this question has been asked and answered a thousand times, but I'm sorry to say I can't find what I'm looking for - so I'll turn to the mail list. I have two qmail servers, one for everyday production use and the second strictly as a failover device. I figure I need to have a common mailstore between the two so I decided I'll use an NFS server. From the FAQ it reads: This program [vadddomain] does the following: updates /var/qmail/control/rcpthosts updates /var/qmail/control/virtualdomains updates /var/qmail/users/assign updates /var/qmail/users/cdb runs /var/qmail/bin/qmail-newu sends hup signal to qmail-send to accept new domain So I have /home/vpopmail/domains, /var/qmail/control/, /var/qmail/ users on my NFS. If on 10.0.0.1 I do vadddomain example.com pass it will create the domain and I can use my MUA to send/receive against 10.0.0.1 If I then set my MUA up to send/receive against 10.0.0.2 it fails and the logs report: vpopmail[4034]: vchkpw-smtp: vpopmail user not found [EMAIL PROTECTED]:10.5.4.41 I have to delete / add the domain on 10.0.0.2 to get it to work - but then 10.0.0.1 will give me the same error. I know this is something really simple that I'm missing but ANY help/ ideas would be greatly appreciated. Thanks, Matt
Re: [vchkpw] NFS and vpopmail
On May 11, 2006, at 4:00 PM, Jeremy Kister wrote: Do you have something on 10.0.0.2 that will hup qmail-send when the /var/qmail/users/assign file changes ? Thanks Jeremy, I thought that was it too so I did a kill -HUP qmail-send but still nothing. I also stopped/started the entire qmail service (going along with what Rick was saying) and still nothing. Could it be an invalid/missing option in my NFS exports or the way I'm trying to mount the NFS share? Matt