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
  #11  
Old 8th July 2008, 15:33
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

Falko,

A quick answer to your question is Yes. I did follow the 8.04 Virtual User How-To.

I carefully reviewed the two How-To's (7.10 and 8.04) and there were only minor differences. When it came to the quota notifications, they appeared to be identical. That is why I posted here in this forum.

To clarify, I am receiving emails daily with percentages reported. However, the maildirsize file that is placed in each user's mail folder is not being created or updated.

Therefore, the only accounts reported in the quota notification are the ones that were moved over from the 7.10 server to the 8.04. They don't appear to have been updated since the move. Any new accounts created after the move to 8.04 never have the maildirsize file created and as such, don't show up in the quota notification.

Thanks.
Reply With Quote
Sponsored Links
  #12  
Old 9th July 2008, 07:55
thecaoticone thecaoticone is offline
Member
 
Join Date: Nov 2007
Posts: 89
Thanks: 1
Thanked 18 Times in 16 Posts
Default

I have also upgraded to 8.04, using falko's guide and making the same changes to to the /etc/postfix/main.cf as I did in 7.10, and all is well.

Did you reload or restart postfix after the change?
Reply With Quote
  #13  
Old 9th July 2008, 14:59
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Did you disable AppArmor?
__________________
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
  #14  
Old 10th July 2008, 07:30
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

Yes, I did disable AppArmor. I never can get BIND to start without errors unless I completely remove it, as Till had mentioned.

I also did restart Postfix after the changes, then sent emails with the hopes that the maildirsize files would be created.

Did you completely replace the old line with the change, or do you have both lines, one with "box" and one with "dir"?
Reply With Quote
  #15  
Old 11th July 2008, 06:30
thecaoticone thecaoticone is offline
Member
 
Join Date: Nov 2007
Posts: 89
Thanks: 1
Thanked 18 Times in 16 Posts
Default

I only change the one line.

Below is my main.cf file for you to compare to your file.

Maybe this will help.


Code:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

readme_directory = /usr/share/doc/postfix

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = mail.domain.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = mail.domain.com, localhost, localhost.localdomain
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
html_directory = /usr/share/doc/postfix/html
virtual_alias_domains = 
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, mysql:/etc/postfix/mysql-virtual_email2email.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
virtual_mailbox_base = /home/vmail
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
virtual_mailbox_limit_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailbox_limit_maps.cf
virtual_mailbox_limit_override = yes
virtual_maildir_limit_message = "The user you are trying to reach is over quota."
virtual_overquota_bounce = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps     $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps     $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps
content_filter = amavis:[127.0.0.1]:10024
receive_override_options = no_address_mappings
Reply With Quote
The Following User Says Thank You to thecaoticone For This Useful Post:
feeninuoumn (2nd January 2014)
  #16  
Old 11th July 2008, 23:39
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

Thanks, that helped a lot. I compared your file to mine and it exactly the same with the exception of the hostname, which is what I would expect.

Yet, I still am not getting the maildirsize files created in the user's folders.

I can only think of two changes I have made to my configuration that are different than the How-To and would not show up in the main.cf file.

I installed Yaa through another tutorial here on How To Forge. That only required adding a table to the mail database.

The other change was that I added a field to both the domain and user tables titled 'enabled'. I then modified the WHERE statement in the Postfix queries to ensure that the account was enabled before accepting mail.

This wouldn't have anything to do with the problem I am experiencing now, would it? I can't see how that would matter, but I don't claim to be an expert on this.

Thanks.
Reply With Quote
  #17  
Old 15th July 2008, 07:54
thecaoticone thecaoticone is offline
Member
 
Join Date: Nov 2007
Posts: 89
Thanks: 1
Thanked 18 Times in 16 Posts
Default

atjensen11,

Sorry for taking so long to respond.

After reading your last post, I agree that the changes you made should not affect the quota report or the maildirsize file.

Postfix should be taking care of this file every time a piece of mail is added or removed from the account.

I wish I could be more helpful in solving this issue, however, at this point you have me scratching my head.

If I can think of a possible solution, I will be sure to post.
Reply With Quote
The Following User Says Thank You to thecaoticone For This Useful Post:
AbannyvabVask (20th December 2013)
  #18  
Old 13th September 2008, 04:59
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

I finally got around to looking into this problem again tonight. I think I found what the problem was.

I downloaded the Postfix source code again and rebuilt the package to have quota support. I then reinstalled the packages and all is well.

Perhpas an apt-get upgrade command did something along the way and changed the Postfix packages back to the versions that don't support quota.

I just thought I would post the solution in case anyone else comes along the same problem in the future.

Thanks again for a great community forum.
Reply With Quote
  #19  
Old 9th May 2012, 00:28
Oceanic Oceanic is offline
Junior Member
 
Join Date: May 2011
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
Default

Thanks atjensen11. I think I have the same problem as the maildirsize file are not being created.

I woud be very grateful if you could provide details on how to download the source code and rebuild the package as I don't know how to do this and have alway relied on apt-get to install the packages. Also if you do this will it break the use of apt-get upgrade for security patches in the future?

Many thanks
Reply With Quote
The Following User Says Thank You to Oceanic For This Useful Post:
AbannyvabVask (22nd December 2013)
  #20  
Old 19th November 2013, 16:02
kt3000 kt3000 is offline
Junior Member
 
Join Date: Nov 2013
Posts: 1
Thanks: 0
Thanked 1 Time in 1 Post
 
Default

Hi,
I know that this topic is little out of date but I would like to share how to send notification about quota again after upgrading postfix.

Just like atjensen11 said, problem occured when apt-get upgrade was made.
After this, you need to patch your postfix and postfix-mysql package once again (it is described in section 3, first page of Gutsy tutorial).
To prevent those two packages from upgrading in the future, you need to do:
Code:
echo "postfix hold" | dpkg --set-selections
and
Code:
echo "postfix-mysql hold" | dpkg --set-selections
Sorry for taking out this old topic .

Greetings from Poland!
Reply With Quote
The Following User Says Thank You to kt3000 For This Useful Post:
feeninuoumn (23rd December 2013)
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
Postfix Quota Notification Email Script asyadiqin Installation/Configuration 14 23rd July 2010 13:35
Postfix Email Delivery Problem sedat1903 HOWTO-Related Questions 2 22nd December 2008 11:19
postfix myysql quota 40esp Server Operation 9 26th July 2008 11:33
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 05:39.


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