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 12th October 2006, 11:47
rockwilda rockwilda is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
Sponsored Links
  #2  
Old 13th October 2006, 16:06
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

I guess it's a problem with your permissions. Please compare your setup again with this guide: http://www.howtoforge.com/postfix_mailfilter
__________________
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
  #3  
Old 13th October 2006, 16:35
rockwilda rockwilda is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #4  
Old 14th October 2006, 15:25
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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... ).
__________________
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
  #5  
Old 14th October 2006, 15:45
rockwilda rockwilda is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
Reply With Quote
  #6  
Old 15th October 2006, 14:11
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
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
  #7  
Old 15th October 2006, 15:40
rockwilda rockwilda is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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
Reply With Quote
  #8  
Old 16th October 2006, 15:03
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

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.
__________________
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
  #9  
Old 16th October 2006, 15:36
rockwilda rockwilda is offline
Junior Member
 
Join Date: Oct 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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?
Reply With Quote
  #10  
Old 17th October 2006, 17:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
 
Default

I've never tried that tutorial, so I don't know...
__________________
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
DSpam + Postfix Mail Gateway HowTo? Rocky Suggest HOWTO 2 5th November 2010 15:30
OT: Problems sending emails to gmail. I used postfix debian install (based falko) tuflipes HOWTO-Related Questions 20 29th May 2007 00:01
Howto: How add footer in postfix osanet Suggest HOWTO 1 15th September 2006 20:03
Virtual Users And Domains With Postfix, Courier And MySQL [+ procmail ?] immobilia HOWTO-Related Questions 5 29th June 2006 23:20
Add Mailfiltering to the Falko howto Postfix Guide Query bluegrass Server Operation 1 19th May 2006 15:11


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


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