Re: Need some very very basic help with Maildrop please

Fabio Catunda <[email protected]>
Newsgroups gmane.mail.maildrop
Message-ID <[email protected]>
Brian,

I really don't know what exactly is your problem, but maybe I can help 
you to debug it.

First, witch Debian package do you have?
In my machine I have this one:
ii  maildrop                             
2.2.0-3.1                          mail delivery agent with filtering 
abilities

But in my mail server I have this one:
ii  courier-maildrop                  0.60.0-2                   Courier 
mail server - mail delivery agent

They have some differences.

Second, put fetchmail and your user on the mail group, it might solve 
your problem:
# gpasswd -a fetchmail mail
# gpasswd -a brian mail

Try to run some things by hand and see what happens:
<Log in with your user and run>
$ echo "Hello" | maildrop -d brian

With DEFAULT="$HOME/Maildir" you should receive a message on your 
Maildir folder, tested here right now and ir works.

After this, try to run the same thing logged in as fetchmail user and 
see what happens.

Well, by now I think thats it.

Regards,

Fábio Catunda.


On 12-11-2011 08:11, brian wrote:
> Hi,
> I am currently running a small home server with Fetchmail and Dovecot 
> as imap server.
> This works OK. I want to do certain actions when emails arrive and 
> looked for SW that would scan incoming emails.
> Maildrop was recommended. I installed the debian packet for Maildrop 
> and have the following maildroprc file in
> /etc/courier:
>
> #
> # Global maildrop filter file
> # /etc/courier/maildroprc
> #
> SHELL="/bin/bash"
> DEFAULT = "/home/brian/Maildir/"
> MAILDIR = "/home/brian/Maildir/"
> VERBOSE=on
>
> logfile "maildrop.log"
> # Put in a Date/Time line
> foo = `date`
> log "------------------- $foo -------------------\n"
>
> # no filters yet!
> to $DEFAULT
>
> fetchmailrc is:
>
> poll
>     popmail.t-online.de
>     protocol pop3
>     user "[email protected]" there is brian here
>     with password "xxxxxx"
>     mda "/usr/bin/maildrop -d username"
>     options keep
>
>
>
>
> Maildrop is called by fetchmail, but now my problems start:
>
> 1. The Log file is written to /var/lib/fetchmail/maildrop.log. 
> Anything else and I get permission problems.
> Cant even write it to /var/log/maildrop.log
>
> Fetchmail is running under:
>
> PATH=/sbin:/bin:/usr/sbin:/usr/bin
> DAEMON=/usr/bin/fetchmail
> USER=fetchmail
> OPTIONS=""
> CONFFILE="/etc/fetchmailrc"
>
> STill I dont seem to get everything in the log yet.
>
> 2. Dovecot used the following directory structure:
>
> /home/brian/Maildir/.....  And in Maildir I have the various Folders, 
> including /cur /new/tmp
>
> Each mail processed by Maildrop gives "fetchmail[3762]: MDA returned 
> nonzero status 67"
> and I would like to debug this.
>
> I cant tell exactly what should be in $DEFAULT. I would like to use a 
> variable so that I can
> then get mail for multiple users in fetchmail. $HOME doesnt't seem to 
> be set and usable
> by maildrop.
>
> Sorry but I'm a bit stuck and would be grateful for any help.
>
> Cheers Brian
>
>
>
>
>
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
>
>
> _______________________________________________
> Courier-maildrop mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/courier-maildrop
>

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1

_______________________________________________
Courier-maildrop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/courier-maildrop
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.