[vchkpw] Re: SMTP-AUTH, yet again...
Thanks for the pointers, everybody... At 11:22 PM -0500 12/3/02, Kit Halsted wrote: <...> Tried 0.31 tonight, no luck. Maybe my other patches are interfering? I'll try it at home as the only patch & see how that goes. 2.) Try to run qmail-smtpd as root. Just for testing, but this avoids "access denied" to vpasswd.cdb and therefore excludes one possible culprit. Also no luck. Urgh. Just tried again on my home box, which starts qmail/vpopmail from rc.local instead daemontools. (OpenBSD 3.1, virgin qmail 1.03 + elysium.pl 0.31 auth patch only, vpopmail 5.2.1... D'oh!, okay, vpopmail 5.3.9 now.) I'm back to square one now with relay by IP only, but it sure did fail interestingly for a while. Below is what I was trying to do, I've since reverted back to a working setup so I can send & receive. - From rc.local: /usr/local/bin/tcpserver -u 1001 -g 1000 -x /home/vpopmail/etc/tcp.smtp.cdb 0 25 \ /var/qmail/bin/qmail-smtpd yabox.kithalsted.com /home/vpopmail/bin/vchkpw /usr/b in/true \ 2>&1 | /var/qmail/bin/splogger smtpd 3 & <...> /usr/local/bin/tcpserver -u 1001 -g 1000 -H -R 0 110 \ /var/qmail/bin/qmail-popup yabox.kithalsted.com \ /home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir & (Linewraps courtesy of less, the files are wrapped correctly.) - yabox# ls -al /var/qmail/bin/qmail-smtpd -rwxr-xr-x 1 vpopmail vchkpw 40960 Dec 4 20:54 /var/qmail/bin/qmail-smtpd yabox# ls -al /home/vpopmail/etc/tcp.smtp.cdb -rwxr-xr-x 1 vpopmail vchkpw 4359 Dec 4 22:09 /home/vpopmail/etc/tcp.smtp.cdb - Log entries corresponding to failed send/check from Eudora on my TiBook: yabox# tail /var/log/maillog Dec 4 23:36:51 yabox qmail: 1039063011.757314 end msg 889600 Dec 4 23:41:18 yabox qmail: 1039063278.163871 status: local 0/10 remote 0/20 Dec 4 23:41:18 yabox qmail: 1039063278.270637 new msg 889600 Dec 4 23:41:18 yabox qmail: 1039063278.270823 info msg 889600: bytes 230 from <[EMAIL PROTECTED]> qp 24677 uid 0 Dec 4 23:41:18 yabox qmail: 1039063278.328081 end msg 889600 Dec 4 23:41:36 yabox vpopmail[5686]: vchkpw-smtp: password fail [EMAIL PROTECTED]:208.36.84.242 Dec 4 23:41:36 yabox vpopmail[32015]: vchkpw-pop3: setgid 1001 failed errno 1 [EMAIL PROTECTED]:208.36.84.242 Dec 4 23:41:37 yabox vpopmail[26305]: vchkpw-pop3: setgid 1001 failed errno 1 [EMAIL PROTECTED]:208.36.84.242 Dec 4 23:41:56 yabox vpopmail[30076]: vchkpw-pop3: setgid 1001 failed errno 1 [EMAIL PROTECTED]:208.36.84.242 Dec 4 23:41:56 yabox vpopmail[18542]: vchkpw-pop3: setgid 1001 failed errno 1 [EMAIL PROTECTED]:208.36.84.242 - (Yes, uid 1001 is vpopmail & gid 1000 is vchkpw.) -Kit -- "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin "...qui desiderat pacem, praeparet bellum" (...if you would have peace, be prepared for war) -Flavius Vegetius Renatus
[vchkpw] Mail not being delivered to list on main domain from alias
Hello, I am struggling to get my mailing lists to work correctly. I am on the following versions. Qmail 1.03 Qmailadmin 1.0.6 Vpopmail5.21 ezmlm 0.53 I have the main domain set up like mail.domain.com and I have used the vaddaliasdomain to point domain1.com and domain2.com, etc to mail.domain.com. Email sent to [EMAIL PROTECTED] gets to the account at [EMAIL PROTECTED] just fine. I have lists set up like [EMAIL PROTECTED] delivers to [EMAIL PROTECTED] and [EMAIL PROTECTED] The problem is that email sent to [EMAIL PROTECTED] gets rejected instead of being delivered to the [EMAIL PROTECTED] The error that comes back to the sender is <[EMAIL PROTECTED]>: ezmlm-reject: fatal: List address must be in To: or Cc: (#5.7.0) I have inquired several times on the ezmlm users group without any response. Is there a way to make vpopmail carry the originating sendto address across to the ezmlm list in the To: portion so that it can be handled correctly at the [EMAIL PROTECTED] point? Erik T Murray eInformation Manager Ferro Color & Glass Performance Materials http://www.ferro.com/our+products/glass/ [EMAIL PROTECTED] Manager of Information Technology Ferro Graphics Inc http://www.ferrographicsinc.com [EMAIL PROTECTED]
RE: [vchkpw] Access denied error message
Probably a permissions problem. Ensure that the existing directories match the ownership and permissions of the new ones that are being created. Regards, Tren -Original Message- From: Chris Wilson [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 3:26 PM To: [EMAIL PROTECTED] Subject: [vchkpw] Access denied error message Hello! I am trying to migrate from freebsd to linux (on one of my web servers), and I have moved over my data from the vpopmail directory (/usr/local/vpopmail/domains), and my qmail configuration (from /var/qmail/control and /var/qmail/users). Everything has been setup properly on the new server, and qmail works great, except, when I try to login I get the following errors: Dec 5 04:35:42 talis vpopmail[24164]: vchkpw: autocreate dir errno 13 /usr/local/vpopmail/domains/test.com/postmaster [EMAIL PROTECTED]:127.0.0.1 I also get the following error when trying to deliver mail: Dec 5 04:44:28 talis qmail: 1039092268.012419 new msg 227595 Dec 5 04:44:28 talis qmail: 1039092268.024325 info msg 227595: bytes 730 from <[EMAIL PROTECTED]> qp 24179 uid 501 Dec 5 04:44:28 talis qmail: 1039092268.102016 starting delivery 1: msg 227595 to local [EMAIL PROTECTED] Dec 5 04:44:28 talis qmail: 1039092268.102059 status: local 1/10 remote 0/20 Dec 5 04:44:28 talis qmail: 1039092268.103366 delivery 1: deferral: Unable_to_switch_to_/usr/local/vpopmail/domains/test.com:_access_denied. _(#4 .3.0)/ Dec 5 04:44:28 talis qmail: 1039092268.103391 status: local 0/10 remote 0/20 if I add a new domain, it works fine. However i would like to preserve the existing user accounts/mail. The file permissions on the directory are correct, and the correct uid/gid is in the /var/qmail/users/assign file. Does anyone know a fix/workaround for this? Thanks! :) Chris Wilson
[vchkpw] Access denied error message
Hello! I am trying to migrate from freebsd to linux (on one of my web servers), and I have moved over my data from the vpopmail directory (/usr/local/vpopmail/domains), and my qmail configuration (from /var/qmail/control and /var/qmail/users). Everything has been setup properly on the new server, and qmail works great, except, when I try to login I get the following errors: Dec 5 04:35:42 talis vpopmail[24164]: vchkpw: autocreate dir errno 13 /usr/local/vpopmail/domains/test.com/postmaster [EMAIL PROTECTED]:127.0.0.1 I also get the following error when trying to deliver mail: Dec 5 04:44:28 talis qmail: 1039092268.012419 new msg 227595 Dec 5 04:44:28 talis qmail: 1039092268.024325 info msg 227595: bytes 730 from <[EMAIL PROTECTED]> qp 24179 uid 501 Dec 5 04:44:28 talis qmail: 1039092268.102016 starting delivery 1: msg 227595 to local [EMAIL PROTECTED] Dec 5 04:44:28 talis qmail: 1039092268.102059 status: local 1/10 remote 0/20 Dec 5 04:44:28 talis qmail: 1039092268.103366 delivery 1: deferral: Unable_to_switch_to_/usr/local/vpopmail/domains/test.com:_access_denied._(#4 .3.0)/ Dec 5 04:44:28 talis qmail: 1039092268.103391 status: local 0/10 remote 0/20 if I add a new domain, it works fine. However i would like to preserve the existing user accounts/mail. The file permissions on the directory are correct, and the correct uid/gid is in the /var/qmail/users/assign file. Does anyone know a fix/workaround for this? Thanks! :) Chris Wilson
Re: [vchkpw] massive deletion of accounts
on 12/4/02 2:02 PM, Brendan McAlpine <[EMAIL PROTECTED]> wrote: > Is there an easy way to remove a number of email accounts using > vdeluser all at once? > > My problem is thisI want to remove several thousand mail accounts > from my server, but I don't want to manually run vdeluser for each one. > Is there any way for vdeluser to read from a list of addresses to > remove? > > Is there a better way to do this? If you have a list of addresses, just edit the list to place vdeluser at the beginning of each line. Then run the result as a shell script. For example in vi, escape to ex mode by typing colon and then after the colon type: %s/^/vdeluser / I don't know off-hand if other arguments are needed, so this is just for example. > > TIA > > Brendan > > >
[vchkpw] massive deletion of accounts
Is there an easy way to remove a number of email accounts using vdeluser all at once? My problem is thisI want to remove several thousand mail accounts from my server, but I don't want to manually run vdeluser for each one. Is there any way for vdeluser to read from a list of addresses to remove? Is there a better way to do this? TIA Brendan
[vchkpw] forwarded mail and vpopbull
Hey all, I figured out my earlier question through trial and error with a test domain before I ran it on my production mail server. anyway, i'm left wondering. If a user has a .qmail file that forwards mail for that mailbox to an outside address, will they get the message that vpopbull copies into their Maildir? I'm pretty sure the answer is a resounding NO, but I want to make sure. Is there any way around that problem? Brendan
RE: [vchkpw] Adding users
Yup, with vadduser, just go: ~vpopmail/bin/vadduser -n user@domain -n means no password. To test then, do a: telnet 0 110 USER user@domain PASS whatever QUIT Then do a ~vpopmail/bin/vuserinfo user@domain and look for the password. Regards, Tren -Original Message- From: Pat Walsh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 2:18 PM To: Vchkpw Subject: Re: [vchkpw] Adding users Tren Blackburn wrote: > A simpler solution is to build vpopmail with clear text passwords and > learning passwords. The first time they pop in, it will learn their > pop password, and put it into a clear text field as well as an > encrypted field. Makes it easier for Help Desk people. > I'm pretty sure that I installed with "learning passwords" enabled in anticipation of this migration. Is there a way to verify that? Also, I tried adding a user and it insisted on wanting a password - vadduser and the qmailadmin. I assume for "learning" to take affect you need a blank password. So, how to create a user w/o a password? Pat > Regards, > > Tren > > -Original Message- > From: Pat Walsh [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 04, 2002 10:09 AM > To: Vchkpw > Subject: Re: [vchkpw] Adding users > > > Joe Oaks wrote: > >>This has been covered, check the archives more :) >> >>1) how are your current accounts held, >> /etc/password >> mysql db > > > Current accounts are in post.office on an NT machine. Software.com > sold > out a couple of years ago and the new company dropped post.office. Every > > day that goes by makes me more anxious. > > I've spent time looking at the passwords in post.office (and archives > and google and ...) and haven't found any way to convert. My current > plan is using a sniffer and putting usernames and passwords into a file, > > and then ramming them through vaddsuser. > > >>2) there is vconvert command that will convert to a usuable format >> for vpopmail. > > > I looked at this long enough to determine it wouldn't work with > post.office passwords. > > >>3) the archives have an example script you can do if your user names >> and passwords are in a text file. Search for post from me, as I >> asked this same question. > > > I'll look for the post. Thanks for the response. > > Pat > > > > > > > > -- Pat Walsh Involved, Inc. http://www.involved.com 503-226-4006
Re: [vchkpw] Adding users
Tren Blackburn wrote: A simpler solution is to build vpopmail with clear text passwords and learning passwords. The first time they pop in, it will learn their pop password, and put it into a clear text field as well as an encrypted field. Makes it easier for Help Desk people. I'm pretty sure that I installed with "learning passwords" enabled in anticipation of this migration. Is there a way to verify that? Also, I tried adding a user and it insisted on wanting a password - vadduser and the qmailadmin. I assume for "learning" to take affect you need a blank password. So, how to create a user w/o a password? Pat Regards, Tren -Original Message- From: Pat Walsh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 10:09 AM To: Vchkpw Subject: Re: [vchkpw] Adding users Joe Oaks wrote: This has been covered, check the archives more :) 1) how are your current accounts held, /etc/password mysql db Current accounts are in post.office on an NT machine. Software.com sold out a couple of years ago and the new company dropped post.office. Every day that goes by makes me more anxious. I've spent time looking at the passwords in post.office (and archives and google and ...) and haven't found any way to convert. My current plan is using a sniffer and putting usernames and passwords into a file, and then ramming them through vaddsuser. 2) there is vconvert command that will convert to a usuable format for vpopmail. I looked at this long enough to determine it wouldn't work with post.office passwords. 3) the archives have an example script you can do if your user names and passwords are in a text file. Search for post from me, as I asked this same question. I'll look for the post. Thanks for the response. Pat -- Pat Walsh Involved, Inc. http://www.involved.com 503-226-4006
[vchkpw] vpopmail bouncing problems with procmail
i am using qmail with procmail and vpopmail i change the following line in .qmail-default or one virtual server |/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox with this one |preline /usr/local/bin/procmail -p -m /etc/procmailrc on my /etc/procmailrc i have: -- INCLUDERC=/usr/local/squirrelmail/plugins/block_sender/sqblock.rc :0w : |/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox -- the sqblock.rc is a set of rules (a plugin for squirrelmail webmail) that work fine. the problem is that i dont get bounced messages i have notice that if i add the line: EXITCODE=100 so my code in /etc/procmailrc looks like: -- INCLUDERC=/usr/local/squirrelmail/plugins/block_sender/sqblock.rc :0w : |/usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox EXITCODE=100 -- i get bounce to work but it bounces some vars of the profmail log, something like : --- Hi. This is the qmail-send program at ns3.unixmexico.net. I'm afraid I wasn't able to deliver your message to the following addresses. This is a permanent error; I've given up. Sorry it didn't work out. <[EMAIL PROTECTED]>: procmail: [61493] Wed Dec 4 13:36:07 2002 procmail: Assigning "LOGABSTRACT=yes" procmail: Assigning "LOGFILE=/var/log/procmail.log" procmail: Opening "/var/log/procmail.log" -- any ideas on how to fix or cusomaise the bounce message ? how can i change this: procmail: [61493] Wed Dec 4 13:36:07 2002 procmail: Assigning "LOGABSTRACT=yes" procmail: Assigning "LOGFILE=/var/log/procmail.log" procmail: Opening "/var/log/procmail.log" for something like: "sorry no mailbox with that user name" for example. regards
Re: [vchkpw] Adding users
- Original Message - From: "Pat Walsh" <[EMAIL PROTECTED]> To: "Vchkpw" <[EMAIL PROTECTED]> Sent: Thursday, December 05, 2002 4:09 AM Subject: Re: [vchkpw] Adding users > Current accounts are in post.office on an NT machine. Software.com sold > out a couple of years ago and the new company dropped post.office. Every > day that goes by makes me more anxious. > > I've spent time looking at the passwords in post.office (and archives > and google and ...) and haven't found any way to convert. My current > plan is using a sniffer and putting usernames and passwords into a file, > and then ramming them through vaddsuser. Hi Pat, We had the same problem, when we migrated from Post.Office to vpopmail last year We had a list of original passwords that people used when they 1st signed up with our ISP. But since then many of them had changed their passwords so our list wasnt 100% accurate. In the end we enabled the password capturing features of our RADIUS server so that we could capture peoples passwords as they dialled in. This gave us a pretty complete password list within a week or two. We just set the remaining vpopmail passwords to the original password we had on file This gave us a pretty complete list, and after we migrated all the mailboxes across, we just fielded the tech calls from any remaining users and reset their passwords as appropriate. Make sure you compile vpopmail with "--enable-logging=p" and "--enable-clear-passwd=y". This will let you tech desk staff be able to view what people are typing in as their password should their authentication fail. Also they can see what actual password is stored in the vpopmail account. Michael.
RE: [vchkpw] Adding users
A simpler solution is to build vpopmail with clear text passwords and learning passwords. The first time they pop in, it will learn their pop password, and put it into a clear text field as well as an encrypted field. Makes it easier for Help Desk people. Regards, Tren -Original Message- From: Pat Walsh [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 10:09 AM To: Vchkpw Subject: Re: [vchkpw] Adding users Joe Oaks wrote: > This has been covered, check the archives more :) > > 1) how are your current accounts held, >/etc/password >mysql db Current accounts are in post.office on an NT machine. Software.com sold out a couple of years ago and the new company dropped post.office. Every day that goes by makes me more anxious. I've spent time looking at the passwords in post.office (and archives and google and ...) and haven't found any way to convert. My current plan is using a sniffer and putting usernames and passwords into a file, and then ramming them through vaddsuser. > > 2) there is vconvert command that will convert to a usuable format >for vpopmail. I looked at this long enough to determine it wouldn't work with post.office passwords. > > 3) the archives have an example script you can do if your user names >and passwords are in a text file. Search for post from me, as I >asked this same question. I'll look for the post. Thanks for the response. Pat
Re: [vchkpw] Adding users
Joe Oaks wrote: This has been covered, check the archives more :) 1) how are your current accounts held, /etc/password mysql db Current accounts are in post.office on an NT machine. Software.com sold out a couple of years ago and the new company dropped post.office. Every day that goes by makes me more anxious. I've spent time looking at the passwords in post.office (and archives and google and ...) and haven't found any way to convert. My current plan is using a sniffer and putting usernames and passwords into a file, and then ramming them through vaddsuser. 2) there is vconvert command that will convert to a usuable format for vpopmail. I looked at this long enough to determine it wouldn't work with post.office passwords. 3) the archives have an example script you can do if your user names and passwords are in a text file. Search for post from me, as I asked this same question. I'll look for the post. Thanks for the response. Pat
Re: [vchkpw] SOLVED! --> POP3 authentication error for default domain (userid without @domain trails)
Dear Friend, It is solved. =) Accidentally. I should do: ./configure --enable-default-domain=testlah.com --enable-mysql=y ... instead of ./configure --enable-default-domain=testlah.com, --enable-mysql=y ... Many thanks to Mr (Ms?--sorry) Cerrito. You give the inspiration after two days hair pulling. =) Regards, ~ Fery Tjhia "Always tell the truth--then run" --why men lie and women cry - Original Message - From: "Andrea Cerrito" <[EMAIL PROTECTED]> > Dec 3 18:29:28 mail vpopmail[8761]: vchkpw: vpopmail user not found > [EMAIL PROTECTED],:192.168.1.108 ---^ > Dec 3 18:29:41 mail vpopmail[8764]: vchkpw: login success > [EMAIL PROTECTED]:192.168.1.108 --- > default domain = testlah.com, --enable-default-domain=testlah.com, ---^ ---^ Hope it helps. Andrea Cerrito IT Manager
[vchkpw] vpopbull question(s)
Before I screw this up and send out emails to everyone on my server, I wanted to run this by everyone on the list. I have two questions. First of all, I want to send a bulletin to all mailboxes on the system except for those in my "do not contact" list. Now, I know I need to run the -e flag to exclude email addresses, but should the addresses in that file be in the form [EMAIL PROTECTED] or just username? I only have one virtual domain on the server. I figure having the full [EMAIL PROTECTED] can't hurt, but I just want to be sure I am doing this right before I send out a blanket email. Also, what format should this file be in? Should each entry have its own line, or should they be tab or comma separated? Secondly, reading the vpopbull man page, it seems to indicate that you can use vpopbull to get a listing of all the mailboxes on the system. If I run vpopbull as follows, will this give me a list of all mailboxes WITHOUT sending them mail: vpopbull -f filename -v -n Thanks for the help. Brendan
RE: [vchkpw] POP3 authentication error for default domain (userid without @domain trails)
> Dec 3 18:29:28 mail vpopmail[8761]: vchkpw: vpopmail user not found > [EMAIL PROTECTED],:192.168.1.108 ---^ > Dec 3 18:29:41 mail vpopmail[8764]: vchkpw: login success > [EMAIL PROTECTED]:192.168.1.108 --- > default domain = testlah.com, --enable-default-domain=testlah.com, ---^ ---^ Hope it helps. Buon lavoro Andrea Cerrito IT Manager +39. 0744. 5441. 1 +39. 348. 4912. 581 www.centromultimediale.tv Vincitore del 35° Smau Industrial Design ICOGRADA Excellence Award 2002 www.centromultimediale.it www.etad.it == /history Due giovani e uno meno giovane si trovano proiettati a causa di una serie di fatalita' in un mondo parallelo dove non esistono le leggi del business ma solo follia e dolore.