[vchkpw] auto create dir for spam email
http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter vpopmail.c in order to create directory for spam email automatically. However, it is only for version 5.3.11. Is there any link that can show me related information about vpopmail 5.4.1 ? Regards, Frankie
[vchkpw] possible bug in vdelivermail (v5.3.24)
hi I tried to run an extension of the filter possibilities of sqwebmail taking into account the .qmail in the user home created by qmailadmin using the maildrop filter below. However I run into trouble if there is a forward address entry in the qmailadmin .qmail file ([EMAIL PROTECTED]). Everything works fine if I dont have [EMAIL PROTECTED] in the .qmail file, files are delivered, vacancy message works etc. if I have a forward address set in .qmail the e-mail is not forwarded. There is no error visible in the logs, the e-mail simply disappears. If I select the forward and local store in qmailadmin, the e-mail is stored locally but not forwarded. If I have no .qmail file everything works fine. Is that a known problem? Is it already solved in newer versions of vpopmail (I use 5.3.24)? thanks andrej # mailfilter written by [EMAIL PROTECTED] to # work with qmail, vpopmail, sqwebmail, qmailadmin # 1. check if .Spam maildir exists and deliver if its spam # 2. check if .qmail in virtual home and proceed with vdelivermail # 3. check if mailfilters from sqwebmail in virtual home and include them # 4. standard mail delivery with vdelivermail # PREREQUISITS # needs program to check if file exists /usr/bin/test # file in ./Maildir or /usr/local/share/sqwebmail called maildirfilterconfig # with # MAILDIRFILTER=../.mailfilter # MAILDIR=$VHOME/Maildir # this filter is called by .qmail-default # | maildrop mailfilter SENDMAIL=/var/qmail/bin/sendmail VPOP=| /mailboxen/vpopmail/bin/vdelivermail '' bounce-no-mailbox #VPOP=| /mailboxen/vpopmail/bin/vdelivermail '' /var/qmail/popboxes/vpopmail/domains/sfgb-b.ch/0/d.stettler # virtual user home VHOME=`/mailboxen/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED] HOME=$VHOME #logfile $VHOME/log logfile /var/log/maildrop log VPOP: $VPOP log VHOME: $VHOME log SENDMAIL: $SENDMAIL `/usr/bin/test -d $VHOME` if( $RETURNCODE != 0 ) { echo 'Sorry, no mailbox here by that name. vpopmail (#5.1.1)' EXITCODE=100 log bouncing exit } #log $SENDMAIL # spam directory for automatic spam filtering SPAMDIR=$VHOME/Maildir/.Spam `/usr/bin/test -d $SPAMDIR` SPAMDIRF=$RETURNCODE log SPAMDIR: $SPAMDIR SPAMDIRF: $SPAMDIRF # dotqmail DOTQMAIL=$VHOME/.qmail `/usr/bin/test -f $DOTQMAIL` DOTQMAILF=$RETURNCODE log DOTQMAIL: $DOTQMAIL DOTQMAILF: $DOTQMAILF # further maildrop filters (configured via sqwebmail) SQMAILF=$VHOME/.mailfilter `/usr/bin/test -f $SQMAILF` SQMAILFF=$RETURNCODE log SQMAILF: $SQMAILF SQMAILFF: $SQMAILFF if ($SPAMDIRF == 0) { if (/^X-Spam-Flag: *YES/) { log xspam yes and spamdir exists exception { # to Spamfolder to $SPAMDIR } } } if ($DOTQMAILF == 0) { exception { # proceed with .qmail log .qmail exists to $VPOP } } if ($SQMAILFF == 0) { exception { # proceed with maildrop filters log include filters include $VHOME/.mailfilter } exception { # proceed log standard delivery after filter inclusion to $VPOP } } else { exception { # proceed log standard delivery to $VPOP } } log end
Re: [vchkpw] Re: strange behaviour in local delivery
Maurice Snellen wrote: On Thursday, February 26, 2004 at 11:46 Jan Reilink wrote: [local delivery, catch-all, forwards] Is this a known issue, is there a solution? The problem is that you are setting the catchall for example.com to a postmaster address. As you are probably aware, upon creating a domain with vadddomain, there is one e-mail account which is always created and cannot be deleted with qmailadmin: postmaster. What you need to be aware of, is that the catch-all only works for e-mail sent to addresses within a domain that are _NOT_ already defined as forwards or regular accounts. Thus, your setup will always fail as the postmaster account is always there. Yes, but what about: :/var/vpopmail/domains/example.com# cat .qmail-default | /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] :/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster [EMAIL PROTECTED] ? Email sent directly to [EMAIL PROTECTED] is nicely forwarded to [EMAIL PROTECTED], but email sent to [EMAIL PROTECTED] (which is caught by the catch-all [EMAIL PROTECTED]) is delivered locally to this Maildir. In our system, postmaster@ is a normal emailaddress which can be used by the customer. You could remedy this by setting the catch-all address of example.com to an non-existant address in example2.com, such as [EMAIL PROTECTED] True, I already knew about this solution but it doesn't fit in our system, because it involves manually adding and editing dot-qmail files (trust me, you don't want to do this for +20.000 virtual domains :-) Someone on the qmail mailinglist answerd: http://marc.theaimsgroup.com/?l=qmailm=107824934618016w=2 q Update vpopmail to ver. 5.2.2 and it will magically work, I ran into this last weekend. /q I'll test with vpopmail ver 5.2.2. when this server goes live on March 13, unfortunaly I can't test it sooner. Anyway, thanks for your answer. -- Met vriendelijke groet / Best regards, Jan Reilink, VEVIDA Nederland BV Postbus 329, 9700 AH GRONINGEN, +31(0)50 - 5492234
[vchkpw] how to make sender does not receive it's own email ?
Hi list, I'm running a classic setup using qmail + vpopmail + qmailadmin. I've some aliases defined and i want sender which is belong to an alias does not receive its own email. exemple, i've defined an alias like [EMAIL PROTECTED] - [EMAIL PROTECTED], [EMAIL PROTECTED] if [EMAIL PROTECTED] sends a mail to [EMAIL PROTECTED], i want [EMAIL PROTECTED] does _not_ receive its own email, only other members, in this case : [EMAIL PROTECTED] Is there a way to do so ? Then, using ezmlm-idx, i want to to the same so that senders does not receive its own email when sending mail to the list in which he belongs to. Thanks for help, Matthieu
[vchkpw] Re: strange behaviour in local delivery
On Thursday, March 04, 2004 at 12:20 Jan Reilink wrote: Yes, but what about: :/var/vpopmail/domains/example.com# cat .qmail-default | /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] :/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster [EMAIL PROTECTED] As long as /var/vpopmail/domains/anotherexample.com/postmaster exists, this will not work as it has preference over the .qmail-postmaster file. In that case, you'd have to move your .qmail-postmaster to /var/vpopmail/domains/anotherexample.com/postmaster and rename it to simply .qmail This may require you to upgrade your vpopmail though. I'm not exactly sure as of which version .qmail files in virtual domain accounts are supported. -- Greetings, Maurice
Re: [vchkpw] auto create dir for spam email
Hi, qmailadmin has hooks that will allow you to send info to other places when you add, delete or modify a user. Read the document /var/src/qmailadmin-x/README.hooks for details. Basically, it'll tell you to create a .qmailadmin-hooks file, what to put in it and the various places you may want to place the file. Make sure that .qmailadmin-hooks has the correct user and group ownership, too. I use it to call a bash script. It could probably also call /usr/lib/courier-imap/bin/maildirmake. If you want my script file let me know. Barry [EMAIL PROTECTED] wrote: http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter vpopmail.c in order to create directory for spam email automatically. However, it is only for version 5.3.11. Is there any link that can show me related information about vpopmail 5.4.1 ? Regards, Frankie
Re: [vchkpw] Re: strange behaviour in local delivery
Maurice Snellen wrote: On Thursday, March 04, 2004 at 12:20 Jan Reilink wrote: Yes, but what about: :/var/vpopmail/domains/example.com# cat .qmail-default | /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] :/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster [EMAIL PROTECTED] As long as /var/vpopmail/domains/anotherexample.com/postmaster exists, this will not work as it has preference over the .qmail-postmaster file. Thanks, this clarifies a lot. -- Met vriendelijke groet / Best regards, Jan Reilink, VEVIDA Nederland BV Postbus 329, 9700 AH GRONINGEN, +31(0)50 - 5492234
Re: [vchkpw] Re: strange behaviour in local delivery
On Thu, 2004-03-04 at 09:13, Maurice Snellen wrote: On Thursday, March 04, 2004 at 12:20 Jan Reilink wrote: Yes, but what about: :/var/vpopmail/domains/example.com# cat .qmail-default | /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] :/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster [EMAIL PROTECTED] As long as /var/vpopmail/domains/anotherexample.com/postmaster exists, this will not work as it has preference over the .qmail-postmaster file. no, because qmail-local will call .qmail-postmaster before it calls .qmail-default man dot-qmail -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] Re: strange behaviour in local delivery
On Thu, 2004-03-04 at 09:25, Jan Reilink wrote: Maurice Snellen wrote: On Thursday, March 04, 2004 at 12:20 Jan Reilink wrote: Yes, but what about: :/var/vpopmail/domains/example.com# cat .qmail-default | /var/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] :/var/vpopmail/domains/anotherexample.com# cat .qmail-postmaster [EMAIL PROTECTED] As long as /var/vpopmail/domains/anotherexample.com/postmaster exists, this will not work as it has preference over the .qmail-postmaster file. Thanks, this clarifies a lot. but it's wrong. -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
Re: [vchkpw] possible bug in vdelivermail (v5.3.24)
On Mar 4, 2004, at 2:45 AM, Andreas Wiesmann wrote: Is that a known problem? Is it already solved in newer versions of vpopmail (I use 5.3.24)? We made a lot of changes between 5.3.24 and the final 5.4.0 release. Please go to http://vpopmail.sf.net/ and upgrade to 5.4.0 and then report back if you're still having problems. 5.4.0 is the stable culmination of the 5.3.x development series, and everyone running 5.3.x should upgrade. -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
[vchkpw] Re:?vchkpw]?uto?reate?ir?or?pam?mail
I will be pleased if you can send me your script in order to let me have a better reference for my own script design. Regards, Frankie Hi, qmailadmin has hooks that will allow you to send info to other places when you add, delete or modify a user. Read the document /var/src/qmailadmin-x/README.hooks for details. Basically, it'll tell you to create a .qmailadmin-hooks file, what to put in it and the various places you may want to place the file. Make sure that .qmailadmin-hooks has the correct user and group ownership, too. I use it to call a bash script. It could probably also call /usr/lib/courier-imap/bin/maildirmake. If you want my script file let me know. Barry [EMAIL PROTECTED] wrote: http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter vpopmail.c in order to create directory for spam email automatically. However, it is only for version 5.3.11. Is there any link that can show me related information about vpopmail 5.4.1 ? Regards, Frankie
Re: [vchkpw] Re:?vchkpw]?uto?reate?ir?or?pam?mail
Hi, Here's my scripts. There is probably a better way to do this but it works on our system. .qmailadmin-hooks: --snip-- adduser /home/vpopmail/domains/make_dirs.sh --snip-- make_dirs.sh: --snip-- #!/bin/bash NEWFOLDER=.Sent # From qmailadmin hooks USERNAME=$1 DOMAIN=$2 PASSWORD=$3 FULLNAME=$4 THEDIR=`cat /home/vpopmail/domains/$DOMAIN/vpasswd | grep $USERNAME | awk -F: '{print $6}'` mkdir $THEDIR/Maildir/$NEWFOLDER /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/new /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/cur /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/tmp /dev/null echo INBOX$NEWFOLDER $THEDIR/Maildir/courierimapsubscribed chown -R vpopmail.vchkpw $THEDIR/Maildir/ #only needed if script not run by vpopmail chmod -R 700 $THEDIR/Maildir/$NEWFOLDER #only needed if script not run by vpopmail --snip-- Good luck! Barry Frankie Wong wrote: I will be pleased if you can send me your script in order to let me have a better reference for my own script design. Regards, Frankie Hi, qmailadmin has hooks that will allow you to send info to other places when you add, delete or modify a user. Read the document /var/src/qmailadmin-x/README.hooks for details. Basically, it'll tell you to create a .qmailadmin-hooks file, what to put in it and the various places you may want to place the file. Make sure that .qmailadmin-hooks has the correct user and group ownership, too. I use it to call a bash script. It could probably also call /usr/lib/courier-imap/bin/maildirmake. If you want my script file let me know. Barry [EMAIL PROTECTED] wrote: http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter vpopmail.c in order to create directory for spam email automatically. However, it is only for version 5.3.11. Is there any link that can show me related information about vpopmail 5.4.1 ? Regards, Frankie
[vchkpw] Delays in vdelivermail to large default domain
Hi there, I had a big giant email planned here, but as I was writing it I narrowed down the scope of the problem we're having to a recursive stat call (I think) in vdelivermail.c First, some background on the setup: I'm in the process of migrating a 12 G, ~5000 user sendmail/aliases/virtualuser system to a qmail/vpopmail one, using MySQL as the backend and am having a single problem holding me up. We've got a cluster of 3 delivery machines, with a /vpopmail parition shared over NFS. The NFS server is also the MySQL DB server where the backend is done. /vpopmail is a 3Ware RAID 10 running ReiserFS. (We've tried both the defaults and noatime/notail.) All the 800 or so virtual domains are empty (save for the postmaster account) and filled with .qmail-vuser files that forward to [EMAIL PROTECTED] When a vpopmail user is made at one of those domains, delivery happens instantaneously. Delivering to any vpopmail user at the default domain results in vdelivermail hanging for 2-10 minutes before finally delivering the message. vuserinfo -d [EMAIL PROTECTED] works fine, which led me to believe it was not a MySQL table problem (we're not using many_domains). The vdelivery hang occurs whether delivering directly ON the NFS server, or delivering on one of the cluster servers (though the time of the delay varies unpredictably), which leads me to think that it's not an NFS problem. Standard NFS read/writes are fine. Additionally, copying files into and out of user's Maildirs manually works fine, and squirrelmail and courier-imap are handling the situation fine as well. Attempted delivery to non-existant addresses gives a failure message immediately. Manual testing was done with a line like below, to verify it wasn't anything else in qmail: cat /vpopmail/testing/samplemail.txt | env EXT=cleaver HOST=defaultdomain.com vdelivermail '' bounce-no-mailbox Okay, as I was writing the above message, I decided to strace the running vdelivermail process and discovered that vdelivermail was looping here: stat64(/etc/vpopmail/domains/defaultdomain.com/5/charlenes/Maildir//new/1078418383.M015727P2293.haku.defaultdomain.com, {st_mode=S_IFREG|0644, st_size=11180, ...}) = 0 stat64(/etc/vpopmail/domains/defaultdomain.com/5/charlenes/Maildir//new/1078418397.M208677P5866.haku.defaultdomain.com, {st_mode=S_IFREG|0644, st_size=2123, ...}) = 0 stat64(/etc/vpopmail/domains/defaultdomain.com/5/charlenes/Maildir//new/1078418401.M185492P7109.haku.defaultdomain.com, {st_m [later] stat64(/etc/vpopmail/domains/defaultdomain.com/E/gary/Maildir//new/1078419549.M564758P6609.haku.defaultdomain.com, {st_mode=S_IFREG|0644, st_size=2744, ...}) = 0 stat64(/etc/vpopmail/domains/defaultdomain.com/E/gary/Maildir//new/1078419549.M438602P6573.haku.defaultdomain.com, {st_mode=S It appears to be stating every single message in every user underneath the default domain's directory(!). Given that there is about 12 GB of mail that's being transferred over in the test systems (before we go live), that would explain the long delay. As it gets cached by NFS or the local disk array, the time the stats take vary. Any ideas on why it might be doing this? I'm looking over count_dir in vdelivermail.c right now and not seeing it. =( Sincerely, Japheth J.C. Cleaver
Re: [vchkpw] Delays in vdelivermail to large default domain
On Mar 4, 2004, at 1:36 PM, Japheth Cleaver wrote: It appears to be stating every single message in every user underneath the default domain's directory(!). Given that there is about 12 GB of mail that's being transferred over in the test systems (before we go live), that would explain the long delay. As it gets cached by NFS or the local disk array, the time the stats take vary. Maybe domain quotas were turned on, and it's trying to see how much space is used? -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
Re: [vchkpw] Delays in vdelivermail to large default domain
D'oh! That makes total sense, and I hadn't considered it all. I've recompiled with --disable-domainquotas and things are delivering fine. It might be worth putting a warning in the migration FAQ about long delivery times for people who move everything over to a single domain like this... Thanks again! -jc At 12:55 PM 3/4/2004, you wrote: On Mar 4, 2004, at 1:36 PM, Japheth Cleaver wrote: It appears to be stating every single message in every user underneath the default domain's directory(!). Given that there is about 12 GB of mail that's being transferred over in the test systems (before we go live), that would explain the long delay. As it gets cached by NFS or the local disk array, the time the stats take vary. Maybe domain quotas were turned on, and it's trying to see how much space is used? -- Tom Collins - [EMAIL PROTECTED] QmailAdmin: http://qmailadmin.sf.net/ Vpopmail: http://vpopmail.sf.net/ Info on the Sniffter hand-held Network Tester: http://sniffter.com/
[vchkpw] Re:?vchkpw] Auto create dir for spam email
I have tried the follows but it can't work .qmailadmin-hooks: /adduser /home/vpopmail/domains/mkspamdirs.sh mkspamdirs.sh: USERNAME=$1 DOMAIN=$2 SPAMFOLDER=.Spam THEDIR=`/home/vpopmail/domains/$DOMAIN/$USERNAME` exec /usr/local/bin/maildirmake `$THEDIR/Maildir/$SPAMFOLDER` Please point out what error in my script because I am newbie to shell script. Regards, Frankie Hi, Here's my scripts. There is probably a better way to do this but it works on our system. .qmailadmin-hooks: --snip-- adduser /home/vpopmail/domains/make_dirs.sh --snip-- make_dirs.sh: --snip-- #!/bin/bash NEWFOLDER=.Sent # From qmailadmin hooks USERNAME=$1 DOMAIN=$2 PASSWORD=$3 FULLNAME=$4 THEDIR=`cat /home/vpopmail/domains/$DOMAIN/vpasswd | grep $USERNAME | awk -F: '{print $6}'` mkdir $THEDIR/Maildir/$NEWFOLDER /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/new /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/cur /dev/null mkdir $THEDIR/Maildir/$NEWFOLDER/tmp /dev/null echo INBOX$NEWFOLDER $THEDIR/Maildir/courierimapsubscribed chown -R vpopmail.vchkpw $THEDIR/Maildir/ #only needed if script not run by vpopmail chmod -R 700 $THEDIR/Maildir/$NEWFOLDER #only needed if script not run by vpopmail --snip-- Good luck! Barry Frankie Wong wrote: I will be pleased if you can send me your script in order to let me have a better reference for my own script design. Regards, Frankie Hi, qmailadmin has hooks that will allow you to send info to other places when you add, delete or modify a user. Read the document /var/src/qmailadmin-x/README.hooks for details. Basically, it'll tell you to create a .qmailadmin-hooks file, what to put in it and the various places you may want to place the file. Make sure that .qmailadmin-hooks has the correct user and group ownership, too. I use it to call a bash script. It could probably also call /usr/lib/courier-imap/bin/maildirmake. If you want my script file let me know. Barry [EMAIL PROTECTED] wrote: http://www.jerfu.com/toaster/FullToaster_1.0.6.html show me a way to alter vpopmail.c in order to create directory for spam email automatically. However, it is only for version 5.3.11. Is there any link that can show me related information about vpopmail 5.4.1 ? Regards, Frankie
[vchkpw] vpopmail with mysql authentication of installer specified database
Hi to vpopmail users, I remember reading from the proftpd forum that a vpopmail+proftpd enthusiast was using his own defined mysql table to authenticate both vpopmail and proftpd users. Is it possible to do this without changing the source code? (I am not overly happy about changing source since the vpopmail installation will be updated with time). Regards, Phillip Lucs
Re: [vchkpw] vpopmail with mysql authentication of installer specified database
On Fri, 2004-03-05 at 01:12, [EMAIL PROTECTED] wrote: Hi to vpopmail users, I remember reading from the proftpd forum that a vpopmail+proftpd enthusiast was using his own defined mysql table to authenticate both vpopmail and proftpd users. Is it possible to do this without changing the source code? (I am not overly happy about changing source since the vpopmail installation will be updated with time). pure-ftpd has support for vpopmail authentication, and it also doesn't have the security record of proftpd. You might give it a shot. -Jeremy -- Jeremy Kitchen Systems Administrator [EMAIL PROTECTED] Kitchen @ #qmail on EFNet - Join the party! . Inter7 Internet Technologies, Inc. www.inter7.com 866.528.3530 toll free 847.492.0470 int'l 847.492.0632 fax GNUPG key ID: 93BDD6CE
[vchkpw] Re: vpopmail with mysql authentication of installer specified database
Hi, At the moment I am using a mysql database for vpopmail authentication. Does pure-ftpd use vpopmail authentication so it would use the same database table as defined by vpopmail? If you know the URL, would you please be able to point me to it? I am currently googling for all references to vpopmail and pure-ftpd. Regards, Phillip