Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 21st June 2007, 16:45
vdvm vdvm is offline
Junior Member
 
Join Date: Sep 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to vdvm
Default Courier-maildrop not working as expected

Hi!

Courier-maildrop isn't working as i was expecting.
On machine #1 i see "delivered via maildrop service" in /var/log/mail.log.
On machine #2 i see "delivered to maildir"

Both machines are feisty.
The software and configs on both machines are identical, only machine #1 did not get the postfix quota patch.

What can i do to make this work?

Thank you!



First i installed a mail enviroment with help from this great tut:
http://www.howtoforge.com/virtual_us...ix_debian_etch

Next i made my own version of:
http://www.howtoforge.com/postfix_mailfilter

Code:
apt-get install courier-maildrop

nano -w /etc/postfix/master.cf

maildrop  unix  -       n       n       -       -       pipe
  flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender}

nano -w /etc/postfix/main.cf

maildrop_destination_recipient_limit=1

/etc/init.d/postfix reload
/etc/init.d/postfix restart
postfix check

nano -w /etc/courier/maildroprc

# /etc/courier/maildroprc
#
# Derived from
# http://www.howtoforge.com/postfix_mailfilter
# http://www.vanadac.com/~dajhorn/projects/fsavp/maildroprc.txt
# http://www.courier-mta.org/maildrop.html

#
# Vars
#

USER="$3"
HOST="$4"
DEFAULT="/home/vmail/$HOST/$USER"

#
# Autocreate maildir, if not existant
#

`test -d "/home/vmail/$HOST"`

if ( $RETURNCODE == 1 )
{
    `mkdir "/home/vmail/$HOST"`
}

`test -d "/home/vmail/$HOST/$USER"`

if ( $RETURNCODE == 1 )
{
    `maildirmake "/home/vmail/$HOST/$USER"`
    `chmod -R 0700 "/home/vmail/$HOST"`
}

#
# Deliver SPAM to Spamfolder
#

if ( /^X-Spam-Flag: YES/ )
{
    # Make sure .Spam folder exists
    `test -d "$DEFAULT/.Spam"`

    if( $RETURNCODE == 1 )
    {
        `maildirmake -f Spam "$DEFAULT/."`
         `echo "INBOX.Spam" >> "$DEFAULT/courierimapsubscribed"`
    }
    to "$DEFAULT/.Spam"
}
else
{
    to "$DEFAULT"
}

# eof

Last edited by vdvm; 21st June 2007 at 17:50.
Reply With Quote
Sponsored Links
  #2  
Old 22nd June 2007, 14:22
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,752 Times in 2,582 Posts
 
Default

I don't think the difference is caused by the quota patch...
Are you absolutely sure that both configurations are identical?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL PCI Modems alexillsley Server Operation 5 9th May 2007 20:32
mod_cband not working as expected ignasigarcia Server Operation 2 18th September 2006 22:49
Virtual Users with Postfix + Maildrop immobilia HOWTO-Related Questions 2 19th July 2006 17:59
postfix+mysql and maildrop filter problem osanet Installation/Configuration 1 2nd June 2006 12:50
Virtual Users And Domains With Postfix, Courier And MySQL - "apt-get" and Courier burritonator HOWTO-Related Questions 3 15th March 2006 21:11


All times are GMT +2. The time now is 21:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.