Re: [vchkpw] Using vdelivermail
Jeremiah Gowdy wrote: I am using qmail with vpopmail, having qmail compiled with QUEUE_EXTRA to log all of the received emails on my domain to a particular address. I want to forward copies of these emails to managers for quality monitoring. I can't use standard qmail forward syntax ( mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]) because if I do, QUEUE_EXTRA will loop the forwarded email back to the log address again, causing a massive email loop. So instead, I'm trying to use vdelivermail to push the email directly into the managers' inboxes to avoid going back through the queue. So I have: /usr/local/vpopmail/domains/blah.com/log/.qmail: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/managerguy |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/othermanager That's it. I just want to pipe copies to those users. Neither user gets the message. There are no messages in my qmail logs from vdelivermail. I'm wondering if my syntax is wrong or how I can figure out what vpopmail is doing and why it doesn't forward the email. Any hints / information greatly appreciated. Try using this syntax [EMAIL PROTECTED] |/usr/local/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] .qmail supports a standard forwarding Ken Jones
RE: [vchkpw] Using vdelivermail
Yeah, I was trying to describe that unfortunately I can't use qmail's standard forwarding system with QUEUE_EXTRA, because the forwarded message passes through the queue, and is then duplicated again back to the log account. This creates an infinite loop of emails that crushes the server pretty quickly. I need a way to deliver the email to the box in question without going back through qmail-queue. I was hoping to use vdelivermail to provide that path. -Original Message- From: Ken Jones [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 10:57 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail Jeremiah Gowdy wrote: I am using qmail with vpopmail, having qmail compiled with QUEUE_EXTRA to log all of the received emails on my domain to a particular address. I want to forward copies of these emails to managers for quality monitoring. I can't use standard qmail forward syntax ( mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]) because if I do, QUEUE_EXTRA will loop the forwarded email back to the log address again, causing a massive email loop. So instead, I'm trying to use vdelivermail to push the email directly into the managers' inboxes to avoid going back through the queue. So I have: /usr/local/vpopmail/domains/blah.com/log/.qmail: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/managerguy |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/othermanager That's it. I just want to pipe copies to those users. Neither user gets the message. There are no messages in my qmail logs from vdelivermail. I'm wondering if my syntax is wrong or how I can figure out what vpopmail is doing and why it doesn't forward the email. Any hints / information greatly appreciated. Try using this syntax [EMAIL PROTECTED] |/usr/local/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] .qmail supports a standard forwarding Ken Jones
Re: [vchkpw] Using vdelivermail
If you know the path to the maildir you can use that instead like: /home/vpopmail/domains/somedomain/someuser/Maildir/ then the vdelivermail line That will keep it out of the queue since qmail-local will just drop it into the Maildir/new directory. Ken Jeremiah Gowdy wrote: Yeah, I was trying to describe that unfortunately I can't use qmail's standard forwarding system with QUEUE_EXTRA, because the forwarded message passes through the queue, and is then duplicated again back to the log account. This creates an infinite loop of emails that crushes the server pretty quickly. I need a way to deliver the email to the box in question without going back through qmail-queue. I was hoping to use vdelivermail to provide that path. -Original Message- From: Ken Jones [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 10:57 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail Jeremiah Gowdy wrote: I am using qmail with vpopmail, having qmail compiled with QUEUE_EXTRA to log all of the received emails on my domain to a particular address. I want to forward copies of these emails to managers for quality monitoring. I can't use standard qmail forward syntax ( mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]) because if I do, QUEUE_EXTRA will loop the forwarded email back to the log address again, causing a massive email loop. So instead, I'm trying to use vdelivermail to push the email directly into the managers' inboxes to avoid going back through the queue. So I have: /usr/local/vpopmail/domains/blah.com/log/.qmail: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/managerguy |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/othermanager That's it. I just want to pipe copies to those users. Neither user gets the message. There are no messages in my qmail logs from vdelivermail. I'm wondering if my syntax is wrong or how I can figure out what vpopmail is doing and why it doesn't forward the email. Any hints / information greatly appreciated. Try using this syntax [EMAIL PROTECTED] |/usr/local/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] .qmail supports a standard forwarding Ken Jones
RE: [vchkpw] Using vdelivermail
On Fri, 2007-07-13 at 11:48 -0700, Jeremiah Gowdy wrote: Yeah, I was trying to describe that unfortunately I can't use qmail's standard forwarding system with QUEUE_EXTRA, because the forwarded message passes through the queue, and is then duplicated again back to the log account. This creates an infinite loop of emails that crushes the server pretty quickly. I need a way to deliver the email to the box in question without going back through qmail-queue. I was hoping to use vdelivermail to provide that path. Your log 'account' shouldn't be an account, just an alias... mail# cat /var/qmail/alias/.qmail-log # Keep a copy of all incoming and outgoing messages # in the /home/archive/.070713_Fri/ folder: /home/archive/.070713_Fri/ mail# ls /var/qmail/alias .qmail-log .qmail-mailer-daemon.qmail-postmaster .qmail-root Where /home/archive/.070713_Fri is a Maildir folder... Rick
RE: [vchkpw] Using vdelivermail
[EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# ls -l .qmail -rw-r--r--1 vpopmail vchkpw104 Jul 13 12:20 .qmail [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# cat .qmail |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/freedomvoice.com/jeremiah/Maildir/ [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# So I created a .qmail file in a test user directory, devemails, and I put in that the line: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/freedomvoice.com/jeremiah/Maildir/ But it does not deliver the email to my user when I email the devemails account. -Original Message- From: Ken Jones [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 11:51 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail If you know the path to the maildir you can use that instead like: /home/vpopmail/domains/somedomain/someuser/Maildir/ then the vdelivermail line That will keep it out of the queue since qmail-local will just drop it into the Maildir/new directory. Ken Jeremiah Gowdy wrote: Yeah, I was trying to describe that unfortunately I can't use qmail's standard forwarding system with QUEUE_EXTRA, because the forwarded message passes through the queue, and is then duplicated again back to the log account. This creates an infinite loop of emails that crushes the server pretty quickly. I need a way to deliver the email to the box in question without going back through qmail-queue. I was hoping to use vdelivermail to provide that path. -Original Message- From: Ken Jones [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 10:57 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail Jeremiah Gowdy wrote: I am using qmail with vpopmail, having qmail compiled with QUEUE_EXTRA to log all of the received emails on my domain to a particular address. I want to forward copies of these emails to managers for quality monitoring. I can't use standard qmail forward syntax ( mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]) because if I do, QUEUE_EXTRA will loop the forwarded email back to the log address again, causing a massive email loop. So instead, I'm trying to use vdelivermail to push the email directly into the managers' inboxes to avoid going back through the queue. So I have: /usr/local/vpopmail/domains/blah.com/log/.qmail: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/managerguy |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/blah.com/othermanager That's it. I just want to pipe copies to those users. Neither user gets the message. There are no messages in my qmail logs from vdelivermail. I'm wondering if my syntax is wrong or how I can figure out what vpopmail is doing and why it doesn't forward the email. Any hints / information greatly appreciated. Try using this syntax [EMAIL PROTECTED] |/usr/local/vpopmail/bin/vdelivermail '' [EMAIL PROTECTED] .qmail supports a standard forwarding Ken Jones
Re: [vchkpw] Using vdelivermail
here is the .qmail-devemails that you need to use copy and paste this: make sure it's in one line |/home/vpopmail//bin/vdelivermail '' /home/vpopmail/domains/freedomvoice.com/devemails Bye, Remo Jeremiah Gowdy wrote: [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# ls -l .qmail -rw-r--r--1 vpopmail vchkpw104 Jul 13 12:20 .qmail [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# cat .qmail |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/freedomvoice.com/jeremiah/Maildir/ [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# So I created a .qmail file in a test user directory, devemails, and I put in that the line: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/freedomvoice.com/jeremiah/Maildir/ But it does not deliver the email to my user when I email the devemails account. -Original Message- From: Ken Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2007 11:51 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail If you know the path to the maildir you can use that instead like: /home/vpopmail/domains/somedomain/someuser/Maildir/ then the vdelivermail line That will keep it out of the queue since qmail-local will just drop it into the Maildir/new directory. Ken Jeremiah Gowdy wrote: to !DSPAM:4697d63148212065312114!
Re: [vchkpw] Using vdelivermail
update forgot the /Maildir/ at the end of the path. Remo Mattei wrote: here is the .qmail-devemails that you need to use copy and paste this: make sure it's in one line |/home/vpopmail//bin/vdelivermail '' /home/vpopmail/domains/freedomvoice.com/devemails Bye, Remo Jeremiah Gowdy wrote: [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# ls -l .qmail -rw-r--r--1 vpopmail vchkpw104 Jul 13 12:20 .qmail [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# cat .qmail |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/freedomvoice.com/jeremiah/Maildir/ [EMAIL PROTECTED]:/usr/local/vpopmail/domains/freedomvoice.com/devemails# So I created a .qmail file in a test user directory, devemails, and I put in that the line: |/usr/local/vpopmail/bin/vdelivermail '' /usr/local/vpopmail/domains/freedomvoice.com/jeremiah/Maildir/ But it does not deliver the email to my user when I email the devemails account. -Original Message- From: Ken Jones [mailto:[EMAIL PROTECTED]] Sent: Friday, July 13, 2007 11:51 AM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail If you know the path to the maildir you can use that instead like: /home/vpopmail/domains/somedomain/someuser/Maildir/ then the vdelivermail line That will keep it out of the queue since qmail-local will just drop it into the Maildir/new directory. Ken Jeremiah Gowdy wrote: to !DSPAM:4697dd1c102413360265985!
[vchkpw] deleting user from mysql backend
Hello all, I'm getting a strange error when I try to delete a domain from the mysql backend. I use command: vdeldomain domain and it returns with: Warning: Failed while attempting to delete domain from auth backend Everything seems to delete okay though, the entry from rcpthosts, virtualdomains, assign, and the directory in ~vpopmail/domains. Any ideas? Matt
Re: [vchkpw] Using vdelivermail
Remo Mattei wrote: here is the .qmail-devemails that you need to use copy and paste this: make sure it's in one line |/home/vpopmail//bin/vdelivermail '' /home/vpopmail/domains/freedomvoice.com/devemails That would be valid contents for .qmail-default in a vpopmail domain directory. That or one of the three variations qmailadmin uses and vdelivermail supports is the ONLY thing that should EVER appear in the .qmail-default file. vdelivermail should NEVER be run from any other place. Recent versions of vdelivermail support all the same options on .qmaial files that it executes as qmail-local, so read man dot-qmail to see the proper syntax for the files. Actually in re-reading the original message it looks like qmail-local is doing the delivery, so man dotqmail definitely applies. Jerimiah wants something like .qmail-whatever -- /path/to/one/maildir /path/to/another/maildir -- Or maybe http://www.inter7.com/?page=qmailtap
Re: [vchkpw] deleting user from mysql backend
Hi Matt, Check your mysql tables. Possible domain is not deleted from MySQL DB for a reason (db connection problem, corrupted tables etc...) Does this happen only when you delete the domain? what about creating domains and users? Friday, July 13, 2007, 10:39:59 PM, you wrote: Hello all, I'm getting a strange error when I try to delete a domain from the mysql backend. I use command: vdeldomain domain and it returns with: Warning: Failed while attempting to delete domain from auth backend Everything seems to delete okay though, the entry from rcpthosts, virtualdomains, assign, and the directory in ~vpopmail/domains. Any ideas? Matt -- Ismail YENIGUL Tel: +90 533 747 3665 [EMAIL PROTECTED] http://www.endersys.com http://www.endersys.com.tr
Re: [vchkpw] Using vdelivermail
good point Rick those options have worked good for me as well. Remo Rick Widmer wrote: Remo Mattei wrote: That would be valid contents for .qmail-default in a vpopmail domain directory. That or one of the three variations qmailadmin uses and vdelivermail supports is the ONLY thing that should EVER appear in the .qmail-default file. vdelivermail should NEVER be run from any other place. Recent versions of vdelivermail support all the same options on .qmaial files that it executes as qmail-local, so read man dot-qmail to see the proper syntax for the files. Actually in re-reading the original message it looks like qmail-local is doing the delivery, so man dotqmail definitely applies. Jerimiah wants something like .qmail-whatever -- /path/to/one/maildir /path/to/another/maildir -- Or maybe http://www.inter7.com/?page=qmailtap !DSPAM:4697ea4c203371427710693!
RE: [vchkpw] Using vdelivermail
Qmailtap is exactly what I'm looking for, thanks! -Original Message- From: Rick Widmer [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 1:27 PM To: vchkpw@inter7.com Subject: Re: [vchkpw] Using vdelivermail Remo Mattei wrote: here is the .qmail-devemails that you need to use copy and paste this: make sure it's in one line |/home/vpopmail//bin/vdelivermail '' /home/vpopmail/domains/freedomvoice.com/devemails That would be valid contents for .qmail-default in a vpopmail domain directory. That or one of the three variations qmailadmin uses and vdelivermail supports is the ONLY thing that should EVER appear in the .qmail-default file. vdelivermail should NEVER be run from any other place. Recent versions of vdelivermail support all the same options on .qmaial files that it executes as qmail-local, so read man dot-qmail to see the proper syntax for the files. Actually in re-reading the original message it looks like qmail-local is doing the delivery, so man dotqmail definitely applies. Jerimiah wants something like .qmail-whatever -- /path/to/one/maildir /path/to/another/maildir -- Or maybe http://www.inter7.com/?page=qmailtap
[vchkpw] Fixup for qmailtaps
I noticed with qmailtaps, if a message matches a tap rule for the from address, it can't match a tap rule for a to address. So I'm trying to use the program with a list of employees for one dept, forwarding to their manager, and a list of employees for another dept etc. If an employee in one dept sends email to an employee in another department, the only manager to get a copy is the manager of the from employee. It seems that the way the taps file would want to work in the case of matching both a from and a to address is to send to both addresses. Maybe this makes sense for my usage but not others. I changed int tapped; to instead be int fromtapped,totapped; and separated the two if statements for from and to, to use their own version of the tapped variable so that both of the rules are honored in the case of intra-office email. Not sure if this has value for anyone else, but this works for me. Thanks for referring me to qmailtaps.
Re: [vchkpw] Using vdelivermail
Jeremiah Gowdy wrote: Qmailtap is exactly what I'm looking for, thanks! Great, glad to hear it. In response to this thread, and several similar, recent threads I've added a README.vdelivermail file to the vpopmail CVS. It should appear in the next stable release. Here it is: == Vdelivermail is the key to the proper operation of your vpopmail installation. When qmail attempts to deliver a message to a vpopmail domain the first thing it does is look for a .qmail file that matches the incoming address within the top level directory for the domain. If no such .qmail-* file is found, qmail-local executes the .qmail-default file for the domain. This is the point where vpopmail takes over the the delivery process. Vdelivermail searches the user database for the domain, and either delivers the message to one of its existing accounts, or looks to its second parameter for instructions on what to do with messages to accounts that do not exist. For vpopmail to operate properly, the .qmail-default file in the domain directory must be setup properly. There should only be one line in the file, and it must look like this: | /path/to/vdelivermail '' delivery-instruction | - The initial pipe tells qmail-local to execute a program. /path/to/vdelivermail - This is the program that must be executed. '' This unused, empty parameter is required for historical reasons. delivery-instruction must be one of: [EMAIL PROTECTED] - an email address anywhere in the world. /path/to/some/Maildir- a Maildir on the local server that the vpopmail user has write access to. delete - Delete all mail to non-existent users bounce-no-mailbox- Bounce all mail to non-existent users Bounce-no-mailbox is no longer recommended, as it allows your mail server to be used in Joe-Jobs. It now seems better to delete all mail to invalid addresses rather than spamming the random senders used by spam-bots. When creating a domain you can use one of the following: vadddomain -b [EMAIL PROTECTED] example.com [password] vadddomain -b /path/to/some/Maildir example.com [password] vadddomain -b delete example.com [password] vadddomain -b bounce-no-mailbox example.com [password] If you are not sure what you are doing writing .qmail files, and mucking around the internals of vpopmail, I strongly suggest you leave this file to the programs. Qmailadmin is probably the easiset way to manage the .qmail-default file once the domain has been created. Due to the requirement that Maildirs accessed by vpopmail must be owned by vpopmail I suggest that if you are going to use vpopmail at all that you place all of your domains under vpopmail. While it is possible to continue to have system users, and other styles of qmail virtual domains on a vpopmail system, you really have to be a qmail guru to make it all work. In summary... the .qmail-default of every virtual domain MUST contain ONLY a single line that executes vdelivermail. The ONLY place you should EVER call vdelivermail is from the .qmail-default directory of a vpopmail based virtual domain. There are four possible delivery options for non-existent mailboxes that must be the second parameter to vdelivermail. The empty first parameter is required.
Re: [vchkpw] Using vdelivermail
On Jul 13, 2007, at 3:31 PM, Rick Widmer wrote: Bounce-no-mailbox is no longer recommended, as it allows your mail server to be used in Joe-Jobs. It now seems better to delete all mail to invalid addresses rather than spamming the random senders used by spam-bots. I still recommend bounce-no-mailbox, certainly if you have the qmail- smtpd chkuser patch installed. It's the best way to reject bogus emails at the SMTP level and avoid wasting resources on spam/virus scanning. With chkuser, is it possible to pull a joe-job? The spammer connects directly to my SMTP server, but I reject it at the SMTP level instead of generating a bounce that I then try to deliver to the actual target (the forged sender of the message). Please reconsider that recommendation. Perhaps some discussion on the list is in order... -- Tom Collins - [EMAIL PROTECTED] Vpopmail - virtual domains for qmail: http://vpopmail.sf.net/ QmailAdmin - web interface for Vpopmail: http://qmailadmin.sf.net/
Re: [vchkpw] Using vdelivermail
Tom Collins wrote: snip Please reconsider that recommendation. Perhaps some discussion on the list is in order... Discussion is most welcome. That's a major reason why I posted it. With chkuser, is it possible to pull a joe-job? The spammer connects directly to my SMTP server, but I reject it at the SMTP level instead of generating a bounce that I then try to deliver to the actual target (the forged sender of the message). Good question. Anyone know off the top of their head how this works. I guess I should, as I use chkuser too. I'm thinking either delete or bounce should act the same and reject non-existent users. I know I can't forward mail to a catchall account and still reject non-existent users. This topic should probably be added to the file since it does affect how deliveries work on the server. Comments anyone? Rick
Re: [vchkpw] Using vdelivermail
Tom Collins wrote: snip Please reconsider that recommendation. Perhaps some discussion on the list is in order... Discussion is most welcome. That's a major reason why I posted it. With chkuser, is it possible to pull a joe-job? The spammer connects directly to my SMTP server, but I reject it at the SMTP level instead of generating a bounce that I then try to deliver to the actual target (the forged sender of the message). Good question. Anyone know off the top of their head how this works. I guess I should, as I use chkuser too. I'm thinking either delete or bounce should act the same and reject non-existent users. I know I can't forward mail to a catchall account and still reject non-existent users. This topic should probably be added to the file since it does affect how deliveries work on the server. Comments anyone? Rick