Incoming Mail Deleted?

Discussion in 'General' started by Jammer4774, Jul 13, 2007.

  1. Jammer4774

    Jammer4774 New Member

    Hello
    I've searched thru everything I can find on the forum, and nothing seems to match my problem.

    I have a server set up with 2 domains on it, web and email.

    Server is a SUSE 10.2 "perfect setup" using ISPConfig with the Courier-IMAP choice.

    Email worked just fine for a while, now outgoing works, but incoming mail appears to just dissapear.

    An excerpt from my mail log

    Code:
    Jul 13 02:29:16 djccc-server-lin postfix/smtpd[31713]: connect from porchwoodplank.com[72.46.129.232]
    Jul 13 02:29:17 djccc-server-lin postfix/smtpd[31713]: 390A62C75E7: client=porchwoodplank.com[72.46.129.232]
    Jul 13 02:29:17 djccc-server-lin postfix/cleanup[31716]: 390A62C75E7: message-id=<[email protected]>
    Jul 13 02:29:17 djccc-server-lin postfix/qmgr[28752]: 390A62C75E7: from=<[email protected]>, size=2815, nrcpt=1 (queue active)
    Jul 13 02:29:17 djccc-server-lin procmail[31721]: Suspicious rcfile "/srv/www/web2/user/web2_jammer/.procmailrc"
    Jul 13 02:29:17 djccc-server-lin postfix/smtpd[31713]: disconnect from porchwoodplank.com[72.46.129.232]
    Jul 13 02:29:17 djccc-server-lin postfix/local[31719]: 390A62C75E7: to=<[email protected]>, orig_to=<[email protected]>,
                    relay=local, delay=0.56, delays=0.44/0.01/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail -f-)
    Jul 13 02:29:17 djccc-server-lin postfix/qmgr[28752]: 390A62C75E7: removed
    note the last line:qmgr[...]removed

    is it deleting my emails or what?
    DNSreports show no problems with sending to the server
    "[Successful connect: Got a good response [250 2.1.5 Ok]] (took 0.969 seconds)"
    My business partner is fed up with it, and wants to go to a host, instead of hosting ourselves. I think there must be somethiing simple I'm missing.

    We are on aa cable inet connection, behind a NAT router. the mail server is in the DMZ of this router. Any suggestions would be much appreciated!!!!
     
  2. bluethunder82

    bluethunder82 Member

    Hey Jammer4774,
    The line:
    Jul 13 02:29:17 djccc-server-lin postfix/qmgr[28752]: 390A62C75E7: removed

    Means the message was delivered to the appropriate maildir and then removed from the queue. You should be able to check your email account and receive your test message.

    Are you not able to receive messages?
     
  3. Jammer4774

    Jammer4774 New Member

    no emails recieved

    no emails are recieved, nor have they been since I believe the 6th of July. 4 email accounts under that domain and 1 account under another(still on that server) all say same thing - no emails
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Did you enable Maildir in ISPConfig (Management > Server > Settings > Email)?
     
  5. Jammer4774

    Jammer4774 New Member

    just doublechecked, yeah its enabled. this worked just fine until about the 6th of this month, then - with no changes, it just stopped working. if it weren't under linux, i'd say it was a shareware's free trial ending :)
     
  6. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    postconf -n
    ?
     
  7. Jammer4774

    Jammer4774 New Member

    Code:
    djccc-server-lin:/home/jammer # postconf -n
    alias_maps = hash:/etc/aliases
    biff = no
    broken_sasl_auth_clients = yes
    canonical_maps = hash:/etc/postfix/canonical
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/lib/postfix
    debug_peer_level = 2
    defer_transports =
    disable_dns_lookups = no
    disable_mime_output_conversion = no
    html_directory = /usr/share/doc/packages/postfix/html
    inet_interfaces = all
    inet_protocols = all
    mail_owner = postfix
    mail_spool_directory = /var/mail
    mailbox_command =
    mailbox_size_limit = 0
    mailbox_transport =
    mailq_path = /usr/bin/mailq
    manpage_directory = /usr/share/man
    masquerade_classes = envelope_sender, header_sender, header_recipient
    masquerade_domains =
    masquerade_exceptions = root
    message_size_limit = 10240000
    mydestination = /etc/postfix/local-host-names
    mydomain = duckjammer.com
    myhostname = djccc-server-lin
    mynetworks = 127.0.0.0/8
    mynetworks_style = subnet
    newaliases_path = /usr/bin/newaliases
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/packages/postfix/README_FILES
    relayhost =
    relocated_maps = hash:/etc/postfix/relocated
    sample_directory = /usr/share/doc/packages/postfix/samples
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    sendmail_path = /usr/sbin/sendmail
    setgid_group = maildrop
    smtp_sasl_auth_enable = no
    smtp_tls_note_starttls_offer = yes
    smtp_use_tls = yes
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_local_domain =
    smtpd_sasl_security_options = noanonymous
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    smtpd_tls_auth_only = no
    smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    smtpd_tls_loglevel = 1
    smtpd_tls_received_header = yes
    smtpd_tls_session_cache_timeout = 3600s
    smtpd_use_tls = yes
    strict_8bitmime = no
    strict_rfc821_envelopes = no
    tls_random_source = dev:/dev/urandom
    transport_maps = hash:/etc/postfix/transport
    unknown_local_recipient_reject_code = 450
    virtual_alias_domains = hash:/etc/postfix/virtual
    
     
  8. till

    till Super Moderator Staff Member ISPConfig Developer

    Please check that the quota of the website and the quota of the users is not full with the command:

    repquota -avug

    Also have a look at the directory /var/spool/mail/ if the email maybe get delivered to a mbox file accidently.
     
  9. Jammer4774

    Jammer4774 New Member

    Thank You Till!!!!!

    Thats what it was - it was going into mboxes. I have no quotas set up, all are zeros
    Now, how do I change it back to maildirs? :)
     
    Last edited: Jul 17, 2007
  10. falko

    falko Super Moderator Howtoforge Staff

    Try this:
    Code:
    postconf -e 'home_mailbox = Maildir/'
    postconf -e 'mailbox_command ='
    /etc/init.d/postfix restart
     
  11. Jammer4774

    Jammer4774 New Member

    I did the commands as requested falko.
    emails are still going into the mboxes, evidently:
    before test email
    Code:
    djccc-server-lin:/var/spool/mail # ls -l
    total 63496
    -rw------- 1 admispconfig mail        0 2007-04-19 15:03 admispconfig
    -rw------- 1 web2_admin   mail    60437 2007-06-28 23:51 web2_admin
    -rw------- 1 web2_christy mail        0 2007-07-16 17:19 web2_christy
    -rw------- 1 web2_duck    mail  1260728 2007-07-17 11:29 web2_duck
    -rw------- 1 web2_jammer  mail 63248005 2007-07-17 12:05 web2_jammer
    -rw------- 1 web2_sales   web2    90632 2007-07-17 11:29 web2_sales
    -rw------- 1 web3_jamie   web3        0 2007-05-03 18:22 web3_jamie
    -rw------- 1 web5_gerry   mail        0 2007-07-16 17:19 web5_gerry
    -rw------- 1 web5_jamie   web5   262574 2007-07-17 11:28 web5_jamie
    -rw------- 1 web5_jim     mail        0 2007-07-16 17:19 web5_jim
    after test email
    Code:
    djccc-server-lin:/var/spool/mail # ls -l
    total 63496
    -rw------- 1 admispconfig mail        0 2007-04-19 15:03 admispconfig
    -rw------- 1 web2_admin   mail    60437 2007-06-28 23:51 web2_admin
    -rw------- 1 web2_christy mail        0 2007-07-16 17:19 web2_christy
    -rw------- 1 web2_duck    mail  1261566 2007-07-17 12:23 web2_duck
    -rw------- 1 web2_jammer  mail 63248847 2007-07-17 12:23 web2_jammer
    -rw------- 1 web2_sales   web2    90632 2007-07-17 11:29 web2_sales
    -rw------- 1 web3_jamie   web3        0 2007-05-03 18:22 web3_jamie
    -rw------- 1 web5_gerry   mail        0 2007-07-16 17:19 web5_gerry
    -rw------- 1 web5_jamie   web5   262574 2007-07-17 11:28 web5_jamie
    -rw------- 1 web5_jim     mail        0 2007-07-16 17:19 web5_jim
    do I need to restart the server? I would have thought that restarting postfix would be enough

    *EDIT* I restarted server, and still am not recieving any email that I can get to
     
    Last edited: Jul 17, 2007
  12. till

    till Super Moderator Staff Member ISPConfig Developer

    Please disable the maildir checkbox in ISPConfig under management > server settings, then wait a few minutes and enable it again, so ISPConfig rewrites the config files.
     
  13. Jammer4774

    Jammer4774 New Member

    still nothing

    unchecked maildir, waited 10 minutes, and checked it again. 15 minutes later, still no emails :(
     
  14. Jammer4774

    Jammer4774 New Member

    at this point, would it be easier to switch evrything over to the mbox style? I need the ability to grab emails with thunderbird, but as i understand them, don't need folder ability.:confused:
     
  15. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post an excerpt of the ISPConfig logfile: /home/admispconfig/ispconfig/ispconfig.log

    Do you get any errors in this logfile?
     
  16. Jammer4774

    Jammer4774 New Member

    log

    No errors - lots on INFO and a couple WARN:
    Code:
    18.07.2007 - 15:28:03 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web2_admin 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:03 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web2_admin 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:04 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:04 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 113: symlink /srv/www/web2/Maildir
    18.07.2007 - 15:28:05 => INFO - USER:
    web2_jammer:x:10002:10002:James Clanton:/srv/www/web2/user/web2_jammer:/bin/bash
    18.07.2007 - 15:28:05 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web2_jammer 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:05 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web2_jammer 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:05 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:06 => INFO - USER:
    web2_duck:x:10003:10002:Daniel Fitzgerald:/srv/www/web2/user/web2_duck:/bin/bash
    18.07.2007 - 15:28:06 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web2_duck 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:06 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web2_duck 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:06 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:07 => INFO - USER:
    web2_sales:x:10004:10002:sales account:/srv/www/web2/user/web2_sales:/bin/false
    18.07.2007 - 15:28:07 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web2_sales 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:07 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web2_sales 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:07 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:08 => INFO - USER:
    web3_jamie:x:10009:10003:James Clanton:/srv/www/web3:/bin/bash
    18.07.2007 - 15:28:09 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web3_jamie 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:09 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web3_jamie 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:09 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 113: symlink /srv/www/web3/Maildir
    18.07.2007 - 15:28:10 => INFO - USER:
    web5_jamie:x:10010:10005:James Eugene Clanton:/srv/www/web5:/bin/bash
    18.07.2007 - 15:28:10 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web5_jamie 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:10 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web5_jamie 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:10 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:10 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 113: symlink /srv/www/web5/Maildir
    18.07.2007 - 15:28:11 => INFO - USER:
    web5_jim:x:10011:10005:James Ervin Clanton:/srv/www/web5/user/web5_jim:/bin/false
    18.07.2007 - 15:28:11 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web5_jim 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:11 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web5_jim 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:11 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:12 => INFO - USER:
    web5_gerry:x:10012:10005:Geraldine Clanton:/srv/www/web5/user/web5_gerry:/bin/false
    18.07.2007 - 15:28:12 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web5_gerry 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:12 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 891: setquota -T -u web5_gerry 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:12 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:13 => INFO - USER:
    web2_christy:x:10013:10002:Christy:/srv/www/web2/user/web2_christy:/bin/false
    18.07.2007 - 15:28:13 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 890: setquota -u web2_christy 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:13 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_procmail.lib.php, Line 57: cp -f /root/ispconfig/isp/conf/forward.$
    18.07.2007 - 15:28:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 137: cp -fr /etc/postfix/local-host-names /e$
    18.07.2007 - 15:28:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 284: cp -fr /etc/postfix/virtusertable /etc/$
    18.07.2007 - 15:28:15 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_postfix.lib.php, Line 289: postmap hash:/etc/postfix/virtusertable
    18.07.2007 - 15:28:15 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1230: cp -fr /etc/apache2/vhosts/Vhosts_ispconfig.conf /etc/apa$
    18.07.2007 - 15:28:16 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1891: cp -fr /etc/proftpd_ispconfig.conf /etc/proftpd_ispconfig$
    18.07.2007 - 15:28:16 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1926: WARNING: could not groupadd -g 12002 web2_anonftp &> /dev$
    18.07.2007 - 15:28:16 => WARN - /root/ispconfig/scripts/lib/config.lib.php, Line 1927: WARNING: could not useradd -d /srv/www/web2/ftp -g web2_a$
    18.07.2007 - 15:28:16 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1937: setquota -u web2_anonftp 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:16 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1938: setquota -T -u web2_anonftp 604800 604800 -a &> /dev/null
    18.07.2007 - 15:28:16 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1939: setquota -g web2_anonftp 0 0 0 0 -a &> /dev/null
    18.07.2007 - 15:28:16 => INFO - /root/ispconfig/scripts/lib/config.lib.php, Line 1940: setquota -T -g web2_anonftp 604800 604800 -a &> /dev/null
    18.07.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix stop &> /dev/null
    18.07.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 53: cp -f /var/log/mail /var/log/mail.18-07-07_23-59-02
    18.07.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 55: touch /var/log/mail.ispconfigsave
    18.07.2007 - 23:59:02 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 56: cat /var/log/mail >> /var/log/mail.ispconfigsave
    18.07.2007 - 23:59:03 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/proftpd stop &> /dev/null
    18.07.2007 - 23:59:03 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 58: cp -f /var/log/xferlog /var/log/xferlog.18-07-07_23-59-02
    18.07.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/proftpd start &> /dev/null
    18.07.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.duckjammer.com
    18.07.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.duckjammer.com
    18.07.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.clanton.ath.cx
    18.07.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.clanton.ath.cx
    18.07.2007 - 23:59:04 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 96: cat /dev/null > /var/log/xferlog.www.clantons.us
    18.07.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 121: rm -f /var/log/xferlog.www.clantons.us
    18.07.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/ftp_logs.php, Line 124: rm -f /var/log/xferlog.18-07-07_23-59-02
    18.07.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/lib/classes/ispconfig_system.lib.php, Line 706: /etc/init.d/postfix start &> /dev/null
    18.07.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 136: rm -f /var/log/mail.www.duckjammer.com
    18.07.2007 - 23:59:05 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 136: rm -f /var/log/mail.www.clanton.ath.cx
    18.07.2007 - 23:59:06 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 136: rm -f /var/log/mail.www.clantons.us
    18.07.2007 - 23:59:06 => INFO - /root/ispconfig/scripts/shell/mail_logs.php, Line 138: rm -f /var/log/mail.18-07-07_23-59-02
    
    
     
  17. falko

    falko Super Moderator Howtoforge Staff

    What's in the .procmailrc file in web2_jammer's homedir?
     
  18. Jammer4774

    Jammer4774 New Member

    .procmailrc
    Code:
    MAILDIR=$HOME/Maildir/
    DEFAULT=$MAILDIR
    ORGMAIL=$MAILDIR
    
    INCLUDERC=/srv/www/web2/user/web2_jammer/.mailsize.rc
    ## INCLUDERC=/srv/www/web2/user/web2_jammer/.quota.rc
    INCLUDERC=/srv/www/web2/user/web2_jammer/.antivirus.rc
    ## INCLUDERC=/srv/www/web2/user/web2_jammer/.local-rules.rc
    ## INCLUDERC=/srv/www/web2/user/web2_jammer/.html-trap.rc
    INCLUDERC=/srv/www/web2/user/web2_jammer/.spamassassin.rc
    ## INCLUDERC=/srv/www/web2/user/web2_jammer/.autoresponder.rc

    .antivirus.rc
    Code:
    :0fw
    | /home/admispconfig/ispconfig/tools/clamav/bin/clamassassin
    
    :0:
    * ^X-Virus-Status: Yes
    /dev/null
    .mailsize.rc
    Code:
    SHELL=/bin/sh
    
    :0
    {
      :0 c
      | wc -c | formail -A"X-Loop: ${LOGNAME}@localhost.localdomain" \
                        -I"Subject: Mailsize: ${LOGNAME}" | \
      $SENDMAIL -oi [email protected]
    }
    .spamassassin.rc
    Code:
    # SpamAssassin sample procmailrc
    #
    # Pipe the mail through spamassassin (replace 'spamassassin' with 'spamc'
    # if you use the spamc/spamd combination)
    # The condition line ensures that only messages smaller than 250 kB
    # (250 * 1024 = 256000 bytes) are processed by SpamAssassin. Most spam
    # isn't bigger than a few k and working with big messages can bring
    # SpamAssassin to its knees.
    :0fw
    * < 256000
    | /home/admispconfig/ispconfig/tools/spamassassin/usr/bin/spamassassin --prefs-file=/srv/www/web2/user/web2_jammer/.user_prefs
    
    # Mails with a score of 15 or higher are almost certainly spam (with 0.05%
    # false positives according to rules/STATISTICS.txt). Let's put them in a
    # different mbox. (This one is optional.)
    #:0:
    #* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
    #/dev/null
    
    # All mail tagged as spam (eg. with a score higher than the set threshold)
    # is moved to "/dev/null".
    #:0:
    #* ^X-Spam-Status: Yes
    #/dev/null
    
    # Work around procmail bug: any output on stderr will cause the "F" in "From"
    # to be dropped.  This will re-add it.
    :0
    * ^^rom[ ]
    {
      LOG="*** Dropped F off From_ header! Fixing up. "
    
      :0 fhw
      | sed -e '1s/^/F/'
    }
    
     
  19. kernel26

    kernel26 New Member

    Same problem

    I ran into the same problem while opening a lot of sites and mail accounts.
    The funny thing is that just five user account went wrong, all opened one after the other. The user account opened before and after this series are all correctly writing to maildir (the five wrong were writing to mailbox in /var/mail)
    The .procmailrc files were completely identical, only the rights on the "new", "tmp" and "cur" were different. Also the folder ".spamassassin" was missing.

    After a while trying, I just copied the Mailboxes and recreated the accounts. Now everything is working fine.
    (don't forget to copy the Mailboxes :) )

    Now I just have to figure out how to transform the Mailboxes in maildir. (Will try mb2md)
     
  20. kernel26

    kernel26 New Member

    faster than mb2md

    There is something easier then mb2md:

    I just copied the Mailbox files on my local Linux, then imported them with the import function of KMail (Files -> Import Messages , and chose Import mbox files (UNIX,...) ). KMail will create a "cur" folder. Just copy all files back to the server into the *new* folder and chown webxx_user:webxx * and chmod 600 * . Done !
     
    Last edited: Jul 20, 2007

Share This Page