[qmailadmin] Qmailadmin and .qmail files
Hello, I have been running the freebsdrocks.net website for several years now and I have a client that is asking me if there is a way to tell the autoresponder not to reply to spams. I did some digging and I found this artcile via Google: http://meepzor.com/packages/autoresponder/ I was looking at the examples at the bottom and then and I saw this: - SNIP - EXAMPLES All of these examples are of usage in *.qmail* files, and assume that the * autoresponder* script is invoked using the following single line in the * .qmail* file: *| /home/doe/autoresponder-script* This is because *.qmail* files cannot contain continuation lines. Therefore, the examples show modifications to the *autoresponder-script*file, not the *.qmail* file proper. If */home/doe/autoresponder-script* contains: *#!/bin/sh /home/doe/autoresponder \ --from=john@nowhere.com \ --no-reply-to=mailer-dae...@.* \ --ignore-header=X-Spam-Status:^yes \ --subject=On holiday (was: %s) \ --file=$HOME/vacation.txt*This will cause all messages received by the account to get an response back, *unless* the incoming message came from a MAILER-DAEMON address *or* the value of the *X-Spam-Status* header field starts with the word 'yes'. The subject of the response will be altered; if the original subject was Meeting Tuesday, the subject of the automatic response would be On holiday (was: Meeting Tuesday). *Note:* If this is the only entry in the *.qmail* file, no copy of the original message will be kept. - SNIP - I am interested MOST in the section that says *--ignore-header=X-Spam-Status:^yes \ * Basically the way the freebsdrocks setup works is when a user is created (via the CLI or qmailadmin itself) the files from ~vpopmail/skel are copied to the users home dir. This includes a .qmail file (contents are | preline -f /usr/local/bin/maildrop mailfilter ) and the mailfilter as well as a Maildir with a .Spam folder in it. The way this works is if Spams come in they are automagically filtered. What my issue here is where (or how) does qmailadmin modify the .qmail file? I was looking at the source of qmailadmin (latest) and I was looking at both autorespond.c and .h and I cannot figure this out. Another idea I had was to have a wrapper around autorespond. I just wanted to get some ideas from all of you. Please let me know if you need any additional information. Thank you for your time. Bill http://www.goodcleanemail.com http://www.freebsdrocks.net !DSPAM:4cd2dc3a32714210113152!
Re: [qmailadmin] Re: [SPAM] Whitelist rDNS for a single server
I believe that is for sending mail only ... not receiving. If I am not mistaken. Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Wed, Aug 24, 2011 at 2:28 PM, Eric Shubert e...@shubes.net wrote: Sorry, that's something I've never seen before. I'm guessing it's a patch to qmail-smtpd, but that's not worth much. As a short term work-around, you might try adding an entry to the tcp.smtp file for the server in question, with the RELAYCLIENT= variable set, eg: 70.254.229.27:RELAYCLIENT=,...(plus whatever other variables your server uses typically) This will essentially make your server an open relay for that IP address. I expect this would work, but be careful with it. And don't forget to qmailctl cdb after changing the tcp.smtp file. -- -Eric 'shubes' On 08/24/2011 11:03 AM, Rob Wright wrote: Thanks for the reply. It's definitely not spamdyke, as we do not have this installed. When Inter7 did the setup for is SpamAssassin was installed. Here's what I've got in my log file, it's qmail-smtpd doing the rejection. @40004e5539281689fb3c tcpserver: ok 10664 mail.poncacity.net:70.254.229.**3:25 :70.254.229.27::53562 @40004e5539281aedc6a4 CHKUSER accepted rcpt: from rwright@callisto.poncacity.**net:unknown: remote callisto.poncacity.net:unknow**n:70.254 .229.27 rcptrwri...@poncacity.net : found existing recipient @40004e5539281db9851c qmail-smtpd: senders must have valid reverse DNS @40004e5539281dbe47dc tcpserver: end 10664 status 256 Part of the problem here is that I can't figure out what they've hacked to get qmail-smtpd to do the rejection. In my /var/qmail/control directory there is an 'rdns' file with a value of 1; rdns checking is either on or off. Any further ideas? I suppose this may be a lesson for the boss to install your own mail server but that bridge is already crossed. If there's no clear answer I'll just have to call Inter7 for support and let them deal with it. Rob On Wednesday 24 August 2011 11:49:44 Eric Shubert wrote: That would take care of things if the rejection is due to an RBL, but the rejection is stated as being due to lack of rDNS, which is different. The only thing I know of that rejects due to missing rDNS (using qmail) is spamdyke (a very good anti-spam tool btw). What specifically is causing the reject? You might post a sample from your smtp log if you can't tell. If it's spamdyke, then the spamdyke config has several ways of whitelisting. http://cr.yp.to/ucspi-tcp/**rblsmtpd.htmlhttp://cr.yp.to/ucspi-tcp/rblsmtpd.html Edit your tcp.smtp file and put the address in and set RBLSMTPD= and it will bypass the RBL check for that IP address. Afterwards, rebuild your tcp.smtp.cdb file (depending on how your built your toaster it'll be as easy as qmailctl cdb, or some other manual command) Hope that helps. On 11-08-24 9:14 AM, Rob Wrightdebianrob@poncacity.**netdebian...@poncacity.net wrote: Greetings. I hope this list is still intact and that I'm on-topic. I've searched for a solution and haven't been able to come up with anything. I've got a problem sprung up recently and can't quite figure out how to get around it. While I'm waiting for a bureaucracy to unsnaggle some DNS information on their side, is there anyway for us to whitelist a single mail server that's being rejected for not having rDNS? The mail server is known to us and I feel comfortable with taking this action. Hopefully this won't be a permanent solution but just a dirty hack while I wait for others to do their jobs. We've got a vanilla Inter7 installed vpopmail/qmail system and I have not been able to figure out of this is do-able or not. If it's possible how can I go about doing so? Thanks for any help or pointers. Rob Wright debian...@poncacity.net !DSPAM:4e55431f32715312255702!
Re: [qmailadmin] Centos 64 bit and qmailadmin
Piss off Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Mon, Nov 21, 2011 at 2:01 PM, Itamar Reis Peixoto ita...@ispbrasil.com.br wrote: On Mon, Nov 21, 2011 at 4:56 PM, William Olson wol...@gmail.com wrote: Please remove yourself from this list if you are no longer using qmail Or can someone please unsubscribe this guy? He's clearly a postfix user. Any admins kicking around? Bill http://www.goodcleanemail.com http://www.freebsdrocks.net is this list open to everyone ? If remove me you will be alone. how many active users this list have ? I receive very little amount of messages from this list does inter7 still alive ? the development seems to be stalled. look at the history of this list and you will see for how long time I am a postfix user. -- Itamar Reis Peixoto msn, google talk: ita...@ispbrasil.com.br +55 11 4063 5033 (FIXO SP) +55 34 9158 9329 (TIM) +55 34 8806 3989 (OI) +55 34 3221 8599 (FIXO MG) !DSPAM:4ecaa02232717212743747!
Re: TR: [qmailadmin] please
JUSUS CHRIST PEOPLE CAN'T YOU FUCKING READ THE EMAILS?? Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Mon, Nov 21, 2011 at 3:24 PM, Federico Fros ff...@uy.ibm.com wrote: please remove me from this list * Federico Fros* IBM Certified Systems Expert - Unix and High Availability IBM Uruguay Tel. (598) 2902-3617 int 5239 Tieline. 761-5239 e-mail: *ff...@uy.ibm.com * ff...@uy.ibm.com From:Claude Chiasson cla...@chiasson.com To:qmailadmin@inter7.com Date:11/21/2011 04:48 PM Subject:TR: [qmailadmin] please -- Pleae remove me too !!! -- *De :* TT [mailto:tho...@almostsync.de tho...@almostsync.de] * Envoyé :* 21 novembre 2011 14:44* À :* qmailadmin@inter7.com* Objet :* [qmailadmin] please please remove me from this list -- *Mit freundlichen Grüßen* *Thomas Tirel* *www.audioframes.de* http://www.audioframes.de/ !DSPAM:4ecab4c432714299215373! image/jpegimage/jpegimage/jpeg
Re: [qmailadmin] the qmailadmin demo wont let me login
Use the right password? Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Thu, Apr 19, 2012 at 12:14 PM, Postmaster postmas...@gatworks.comwrote: http://www.inter7.com/index.**php?page=qmailadminhttp://www.inter7.com/index.php?page=qmailadmin everytime i try, it says invalid login. !DSPAM:4f903ba33484822119!
Re: [qmailadmin] Softlimit
soft limit was something you used in the old qmailrocks setup. If this is something you used wow ... it should be updated. It would be found in the qmail-smtpd/run file. If you're using John Simpsons qmail-smtpd/run file it won't be there. It is not needed. What district are you running? Bill On Oct 23, 2012 5:35 PM, Giulio Nuti giulio.n...@grupponuti.it wrote: Hi all Hi Thibs How can I set the softlimit in your flavour qmail setup? Thanks all Giulio !DSPAM:508714ee34175173888173!
Re: [qmailadmin] [SPAM] Auto-empty trash items older then a certain age
Hello, Background: I created a website years and years ago called http://freebsdrocks.net for qmail so when you created users the spams would automatically go to the users' spam folder. After time the Spam folder would just continually build up. With some help from friends this script will train spamassassin for the spams in the .Spam folder and then delete anything over 30 days which is set as a default. If you want to use the same principal for the Trash, you will need to edit the following script http://wolson.dyndns.info/files/spamlearn.sh This may work in the same fashion but you will need to change the current functionality to delete the messages in the Trash folder and not the Spam folder and not train them with spamassassin. I would try this on a test box first :-) Bill Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Wed, Nov 7, 2012 at 9:51 PM, William Olson wol...@gmail.com wrote: I can answer this tomorrow. I have a script at work that keeps the last 30 days of spams and it's customizable. You may just need to change .Spam to .Trash within the script. Bill Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Wed, Nov 7, 2012 at 6:19 PM, Frank Chan fc...@molsci.org wrote: Hi Matt, If you referring to Squirrelmail webmail there is a plugin called Empty trash where you can configure when to purge the trash folder in Squirrelmail. Here is the link to the Squirrelmail plugin page to Empty Trash plugin: http://www.squirrelmail.org/**plugin_view.php?id=92http://www.squirrelmail.org/plugin_view.php?id=92 If this is not correct please specify which mail client you are referring to. I hope this helps, Frank On 07-11-2012 14:43, Matt Rauch wrote: Hello, Sorry if this isn't the place to ask, but I've looked all over and haven't managed to find a clear solution. I'm looking for a way to have items that have been in the user's .Trash folder for a certain period of time (lets say 30 days or older) removed automatically. I thought there must be built-in functionality for this, or a script someone has come up with to manage this sort of thing. I've see a squirrelmail plugin that does it based on number of logins or every x number of days, but it empties the whole trash and doesn't check each message's age individually. Any help would be greatly appreciated. Thanks, Matt Rauch !DSPAM:509afa9f33995129038296!
Re: [qmailadmin] [SPAM] Auto-empty trash items older then a certain age
Hi, I would run the script every day. Provided you make the changes as suggested it will only keep the last 30 days of messages in the trash and nothing more. Bill Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Thu, Nov 8, 2012 at 10:24 AM, Matt Rauch mattr-li...@eagle.ca wrote: Thanks everyone for the help. We're using qmail, Vpopmail, Dovecot and Squirrelmail. If there is something built in to Dovecot I could try that. The squirelmail plugin doesn't really look at the date of the message, and can only be set to remvoe entire trash after x number of days or x number of logins. I'll also have a look at Bill's script to see if I can apply it. So is the find command I listed not a sae way of going about it? Maybe Cron it for every 30 days or something? Matt -Original Message- From: Bob Miller [mailto:b...@computerisms.ca] Sent: November-07-12 10:28 PM To: qmailadmin@inter7.com Subject: Re: [qmailadmin] [SPAM] Auto-empty trash items older then a certain age if you happen to be using dovecot, a good server-side soltuion is to set up doveadm to purge old messages using cron. On Wed, 2012-11-07 at 17:43 -0500, Matt Rauch wrote: Hello, Sorry if this isn't the place to ask, but I've looked all over and haven't managed to find a clear solution. I'm looking for a way to have items that have been in the user's .Trash folder for a certain period of time (lets say 30 days or older) removed automatically. I thought there must be built-in functionality for this, or a script someone has come up with to manage this sort of thing. I've see a squirrelmail plugin that does it based on number of logins or every x number of days, but it empties the whole trash and doesn't check each message's age individually. Any help would be greatly appreciated. Thanks, Matt Rauch !DSPAM:509ba6b133991297616107!
Re: [qmailadmin] [SPAM] Auto-empty trash items older then a certain age
6.0 RELEASE? WOW That is one old box! Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Thu, Nov 8, 2012 at 11:56 AM, Matt Rauch mattr-li...@eagle.ca wrote: Il 08/11/2012 17:15, Matt Rauch ha scritto: The best way to do this is to run: doveadm expunge -A mailbox Trash savedbefore 30d (if you use dovecot with MySQL for auth) or doveadm expunge -u u...@domain.com mailbox Trash savedbefore 30d (if you use dovecot with vpopmail auth) Any other script, like find -exec rm, will break user's quota since is not updating maildirsize file. Form more information see http://wiki2.dovecot.org/Tools/Doveadm/Expunge and http://wiki2.dovecot.org/Plugins/Expire Ciao Ok so I tested this method with search instead of expunge to see what would hit. if I try the first command (doveadm expunge -A mailbox Trash savedbefore 30d), I get an error message: # doveadm search -A mailbox Trash savedbefore 30d doveadm(mattr): Error: User listing returned failure doveadm: Error: Failed to iterate through some users If I use the second option (doveadm expunge -u u...@domain.com mailbox Trash savedbefore 30d) it works, but I have to specify the username for each user. Is there a way to do it so that it affects all users? (which I thought the -A would do). The -A need dovecot auth with mysql like this: ## vpopmail ## # Query to get a list of all usernames. iterate_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user FROM vpopmail # driver = mysql connect = host=localhost dbname=vpopmail user=vpopmail password=mypwd default_pass_scheme = MD5-CRYPT user_query = SELECT pw_dir as home, 89 AS uid, 89 AS gid, concat('*:backend=', pw_shell) as quota_rule FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' password_query = SELECT CONCAT(pw_name, '@', pw_domain) AS user, pw_passwd AS password, concat('*:backend=', pw_shell) as userdb_quota_rule FROM vpopmail WHERE pw_name = '%n' AND pw_domain = '%d' What kind of dovecot authentication are you using? I'm not entirely sure to be honest with you. Are you able to tell from the output of dovecot -n? imap# dovecot -n # 2.0.9: /usr/local/etc/dovecot/dovecot.conf # OS: FreeBSD 6.0-RELEASE-p5 i386 auth_mechanisms = plain login cram-md5 auth_verbose = yes base_dir = /var/run/dovecot/ default_client_limit = 1005 default_login_user = dovecot default_process_limit = 500 disable_plaintext_auth = no dotlock_use_excl = yes first_valid_uid = 89 last_valid_uid = 89 log_path = /dev/stderr log_timestamp = passdb { args = webmail=127.0.0.1 driver = vpopmail } plugin { quota = maildir } protocols = imap service auth { user = root } ssl_cert = /var/qmail/control/servercert.pem ssl_key = /var/qmail/control/servercert.pem userdb { args = quota_template=quota_rule=*:backend=%q driver = vpopmail } verbose_proctitle = yes Matt !DSPAM:509bbb8533991985611242!
Re: [qmailadmin] How could SPAM ...
Your question is not clear enough. Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Sat, Nov 17, 2012 at 3:56 PM, Giulio Nuti giulio.n...@grupponuti.itwrote: Hi I wonder why a spam could arrive to my email after being marked as SPAM... Could You help me pls? Thanks G --**--** From - Wed Nov 14 21:43:10 2012 X-Account-Key: account1 X-UIDL: UID1593-1352316642 X-Mozilla-Status: 0001 X-Mozilla-Status2: X-Mozilla-Keys: Return-Path: ad...@mydomain.com Delivered-To: giulio.n...@grupponuti.it Received: (qmail 27111 invoked by uid 89); 14 Nov 2012 07:58:56 +0100 Delivered-To: grupponuti.it-webmaster@**grupponuti.itgrupponuti.it-webmas...@grupponuti.it Received: (qmail 27108 invoked by uid 168); 14 Nov 2012 07:58:56 +0100 X-Qmail-Scanner-Diagnostics: from 101.80.2.177 by v-server (envelope-from ad...@mydomain.com, uid 89) with qmail-scanner-2.10st (clamdscan: 0.97.6/15574. mhr: 1.0. spamassassin: 3.3.1. perlscan: 2.10st. Clear:RC:0(101.80.2.177):SA:1(**9.0/5.0):. Processed in 6.030113 secs); 14 Nov 2012 06:58:56 - X-Spam-Status: Yes, hits=9.0 required=5.0 X-Spam-Level: + X-Qmail-Scanner-Mail-From: ad...@mydomain.com via v-server X-Qmail-Scanner: 2.10st (Clear:RC:0(101.80.2.177):SA:**1(9.0/5.0):. Processed in 6.030113 secs Process 27095) Received: from unknown (HELO mydomain.com) (101.80.2.177) by v-server.cad with SMTP; 14 Nov 2012 07:58:48 +0100 Received-SPF: unknown (v-server.cad: parse error in SPF record at esendmail.com) Received: from mydomain.com by webmail ; 2012-11-14 14:58 +0800 (CST) From: =?gb2312?B?vqu14834?= ad...@mydomain.com To: webmas...@grupponuti.it Subject: =?gb2312?B?0fSzzrr+**tPPVotC3MTAuODjUqi/** Wu6OhzvexsczYsvrXqML0o6HQwr2us**aHGpLrLzNK087rs1Oaj oQ==?= Date: Wed, 14 Nov 2012 14:58:56 +0800 MIME-Version: 1.0 X-Mailer: outlook Content-Type: multipart/alternative; boundary=_=NextPart=_**jezc2nbwcx0kn4sks54ut0clhi3qiz**q12kir Message-ID: 1352876329103327095@v-server X-Antivirus: AVG for E-mail 2013.0.2793 [2629/5894] X-AVG-ID: ID53CED553-535A43C --**--** !DSPAM:50a7e1a133993532888536!
Re: [qmailadmin] How could SPAM ...
Your english is horribly broken. If you're quarantining message at 5 then that is a very low threshold. Bill http://www.goodcleanemail.com http://www.freebsdrocks.net http://www.centosrocks.net On Sat, Nov 17, 2012 at 5:19 PM, Giulio Nuti giulio.n...@grupponuti.itwrote: Il 17/11/2012 23:08, William Olson ha scritto: Your question is not clear enough. Bill Processed in 6.030113 secs); 14 Nov 2012 06:58:56 - X-Spam-Status: Yes, hits=9.0 required=5.0 X-Spam-Level: + Hi I found in my mailbox this email. As You can see Spam-status hits is 9, a value 5 should be enough to be put to quarantine and not delivered to the mailbox. Despite of this the subject was not modified and I found this and two othe emails in my mailbox. It is good 2 errors (IMHO) in two months, but is only to understand if I made some mistake or the server has some config error. Tks !DSPAM:50a7f43e33995563916630!