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 27th September 2006, 01:45
tommytomato tommytomato is offline
Senior Member
 
Join Date: Aug 2006
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Default

/etc/postfix/main.cf

I think I fixed this bit

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

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
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

myhostname = rockinghamgateway.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = rockinghamgateway.com, localhost, localhost.localdomain
mydestination = localhost, localhost.localdomain
relayhost = 
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
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
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_use_tls = yes
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
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 = "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
Sponsored Links
  #12  
Old 27th September 2006, 21:54
herbie herbie is offline
Member
 
Join Date: Sep 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default Quota Warn Messages

I am pleased with the setup of two servers we did, but I'm having a problem figuring out how to edit the automatic quota messages.

I don't know if messages are sent by quota, courier, or postfix...

Users automatically get messages when they are 80%, 90% or over quota and I'd like to alter the message they receive. For example, one message indicates there may be charges for excedding quotas and I'd like to change it to 'call in to increase your mailbox size'.

Also courious as to how to edit the Spamassassin "whitelist". I'd like to set Spamassassin to delete everything marked as spam instead of simply marking it, but I'd need to have an adequate whitelist first.
thx
Reply With Quote
  #13  
Old 28th September 2006, 20:26
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

Quote:
Originally Posted by herbie
Users automatically get messages when they are 80%, 90% or over quota and I'd like to alter the message they receive. For example, one message indicates there may be charges for excedding quotas and I'd like to change it to 'call in to increase your mailbox size'.
You can change that in /etc/postfix/main.cf. Have a look at the virtual_maildir_limit_message setting.

Quote:
Originally Posted by herbie
Also courious as to how to edit the Spamassassin "whitelist". I'd like to set Spamassassin to delete everything marked as spam instead of simply marking it, but I'd need to have an adequate whitelist first.
thx
You can set up whitelists in /etc/amavis/amavisd.conf. Have a look at the default /etc/amavis/amavisd.conf that comes with the amavisd package. It has lots of commented examples.
__________________
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 30th September 2006, 20:09
herbie herbie is offline
Member
 
Join Date: Sep 2006
Posts: 66
Thanks: 3
Thanked 0 Times in 0 Posts
Default

/etc/postfix/main.cf's limit_message is the reply to someone sending to a full mailbox. I was looking for the messages sent to the mailbox users...

thx for the amavisd tip, I forgot I should use amavis rather than spamassassin for that. If I want to set spamassassin to reject mail classed as spam instead of simply mark it and pass it through, would I also look into the amavisd settings instead?
Reply With Quote
  #15  
Old 1st October 2006, 13:46
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

Quote:
Originally Posted by herbie
/etc/postfix/main.cf's limit_message is the reply to someone sending to a full mailbox. I was looking for the messages sent to the mailbox users...
You cannot send a message to such a user because his mailbox is full...

Quote:
Originally Posted by herbie
If I want to set spamassassin to reject mail classed as spam instead of simply mark it and pass it through, would I also look into the amavisd settings instead?
Yes. Have a look at the $final_spam_destiny option.
__________________
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
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ruskicar HOWTO-Related Questions 26 20th July 2007 16:28
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs hdtpsi HOWTO-Related Questions 10 24th September 2006 13:52
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs Rocky Installation/Configuration 24 9th February 2006 11:08


All times are GMT +2. The time now is 17:08.


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