Hi, I configure a server mail, postfix + courier + mysql (spamassassin,amavis,pop-before-smtp) on a debian. I patched postfix with the patch VDA. The quota is ok. But when I exceed my quota, the server send this mail Code: This is the mail system at host mail.domain.com. I'm sorry to have to inform you that your message could not be delivered to one or more recipients. It's attached below. For further assistance, please send mail to postmaster. If you do so, please include this problem report. You can delete your own text from the attached returned message. The mail system <[email protected]>: maildir delivery failed: user overdrawn his diskspace quota How this mail is create? Can I modifie it? Regards.
You can run this: Code: postconf -e 'virtual_maildir_limit_message = "The user you are trying to reach is over quota."' /etc/init.d/postfix restart to change the error message.
I had already set this line : Code: virtual_maildir_limit_message = "Vous avez atteint votre quota, merci." But the text in the mail, is still the same. Where is the problem? Regards.
main.cf Code: smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no append_dot_mydomain = no smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache myhostname = mail.server.com alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases myorigin = /etc/mailname mydestination = mail.artwai.fr, localhost, localhost.localdomain relayhost = mynetworks = 127.0.0.0/8,ipserver,localhost,localhost.localdomain,hash:/var/lib/pop-before-smtp/hosts mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all 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 transport_maps = proxy:mysql:/etc/postfix/mysql-virtual_transports.cf virtual_create_maildirsize = yes virtual_mailbox_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 = "Vous avez atteint la limite de votre compte mail." 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 = smtp-amavis:[127.0.0.1]:10024 receive_override_options = no_address_mappings
Looks ok. Did you follow this tutorial? http://www.howtoforge.com/virtual_postfix_mysql_quota_courier
Not exactly. I use the version 2.3.7-3 of postfix (I install package testing on my debian sarge). And I use pop-before-smtp and not TLS. Regards