HowTo Add Mailfiltering to the Falko howto Postfix Guide

Discussion in 'HOWTO-Related Questions' started by rockwilda, Oct 12, 2006.

  1. rockwilda

    rockwilda New Member

    Hello!

    Yesterday I tried out the "Add Mailfiltering to the Falko howto Postfix Guide" howto. When my mailserver receive a mail ich get following message in syslog:

    Code:
    (temporary failure. Command output: /usr/local/maildrop/bin/maildrop: Unable to create log file. )
    Postfix doesn't release the mail until I deativate maildrop.


    Where is my failure?

    Nico
     
  2. falko

    falko Super Moderator

  3. rockwilda

    rockwilda New Member

    Hi,

    yes, it was a problem with the file permissions.

    /var/log/maildrop.log was not writeable

    To change the file permissions is not documented in the howto.

    Another question:
    Why does this howto doesn't work with quota?

    @Falko: It is possible that you make a howto for maildrop + quota?

    Would be very nice!

    best regards,
    Nico
     
  4. falko

    falko Super Moderator

    I've never tried that tutorial, so I don't know...

    Maybe. I can put it on my list (which is very long... :eek: ).
     
  5. rockwilda

    rockwilda New Member

    Next error

    Argh ...

    Now, I got following error:

    Code:
    maildrop[2094]: Unable to change to home directory.
    I created a new mail account with the sql command:

    Code:
    INSERT INTO `users` VALUES ('yes', 'test@fineware.de', 'xxx', 10485760, '/home/vmail/fineware.de/test', 5000, 5000);
    I sent a mail to test@fineware.de and received the error below.

    When i set the dir /home/vmail to 777 than I get the error "maildir doesn't be world-writeable" or something like that.

    Which file persmission do i have to set? Or where is my fault?

    best regards,
    nico
     
  6. falko

    falko Super Moderator

    Does this directory exist? Maybe it must be created first.
     
  7. rockwilda

    rockwilda New Member

    Yes, the maildir doesn't exist. It has to be created automatically when the first e-mail arrives. When I create the maildir manually, all works well.

    best regards,
    nico
     
  8. falko

    falko Super Moderator

    Maybe the directory permissions are wrong somewhere. Or maybe you can write a script that creates the Maildir for you.
     
  9. rockwilda

    rockwilda New Member

    There is a script which creates the maildir. When I execute the script manually, all works well (with root and vmail user).

    Has there to be an maildrop user? The owner of the "maildir_create_scripte" is the vmail user. The owner of the maildir is the vmail user, too.

    The user in master.cf is vmail, too.
    Code:
    maildrop unix - n n - - pipe
    flags=DRhu user=vmail argv=/usr/local/maildrop/bin/maildrop -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} ${sender}
    Do you have an idea?
     
  10. falko

    falko Super Moderator

    I've never tried that tutorial, so I don't know... :eek:
     
  11. rockwilda

    rockwilda New Member

    Hmm... schade. Hätt ja sein können, dass es kein Hotwo spezifisches Problem ist.

    Noch eine allgemeine Frage an dich: Wenn ein Programm, in meinem Fall jetzt Postfix, mit dem user vmail ein script ausführt dann müsste sich doch linux nicht anders verhalten als wie wenn ich das manuell machen, also als vmail user einloggen und script von hand starten. Oder versteh ich das falsch?

    Weißt du wer der autor von diesem howto ist?

    Gruß, Nico
     
  12. falko

    falko Super Moderator

    Please post in English so that everyone can understand.
     
  13. rockwilda

    rockwilda New Member

    Sorry, you are right. I wrote my last post in german, because my english is very poor and I couldn't phrase it in english. Maybe you can help me although?
     
  14. falko

    falko Super Moderator

    That's right.

    You can find the user name of the author at the top of the tutorial. If you like, you can send him a private message.
     
  15. rockwilda

    rockwilda New Member

    Hmmm...

    Couldn't find the name if the autor in the howto -> http://www.howtoforge.com/postfix_mailfilter
     
  16. falko

    falko Super Moderator

    Ok, the author is listed at the top of every tutorial except that one... :rolleyes:
    The username of the author is todgerme.
     

Share This Page