HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   HOWTO-Related Questions (http://www.howtoforge.com/forums/forumdisplay.php?f=2)
-   -   HowTo Add Mailfiltering to the Falko howto Postfix Guide (http://www.howtoforge.com/forums/showthread.php?t=7411)

rockwilda 12th October 2006 11:47

HowTo Add Mailfiltering to the Falko howto Postfix Guide
 
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

falko 13th October 2006 16:06

I guess it's a problem with your permissions. Please compare your setup again with this guide: http://www.howtoforge.com/postfix_mailfilter

rockwilda 13th October 2006 16:35

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

falko 14th October 2006 15:25

Quote:

Originally Posted by rockwilda
Another question:
Why does this howto doesn't work with quota?

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

Quote:

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

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

rockwilda 14th October 2006 15:45

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

falko 15th October 2006 14:11

Quote:

Originally Posted by rockwilda
Argh ...

Now, I got following error:

Code:

maildrop[2094]: Unable to change to home directory.

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

rockwilda 15th October 2006 15:40

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

falko 16th October 2006 15:03

Quote:

Originally Posted by rockwilda
It has to be created automatically when the first e-mail arrives.

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

rockwilda 16th October 2006 15:36

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?

falko 17th October 2006 17:39

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


All times are GMT +2. The time now is 10:38.

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