SOLVED: How to exempt some addresses from checks on the mail server?
    ITSEF Admin 
    itsef-admin at itsef.com
       
    Tue Nov 21 16:12:10 CET 2006
    
    
  
Right. Just found out how to allow certain mail addresses to be used as sender 
addresses without having to disable those checks completely:
* Go to /kolab/etc/kolab/templates and edit the file main.cf
* Find the line with "smtpd_sender_restrictions" under
  "## Kolab Policy Server"
* There should be an entry in this line 
  "check_policy_service unix:private/kolabpolicy"
* *Before* this entry, add the following:
  check_sender_access hash:/kolab/etc/postfix/access
  (don't forget the commas to separate from the other entries).
  On Kolab 2.1beta3, the resulting line looks like this (should be one long 
  line):
  smtpd_sender_restrictions = permit_mynetworks, check_sender_access 
hash:/kolab/etc/postfix/access, check_policy_service unix:private/kolabpolicy
* Save the file and run "kolabconf" to create the configuration file and 
  restart postfix
* In the directory /kolab/etc/postfix, edit the file "access"
* For each address you want to allow, add a line like this:
      USER at DOM.AIN   OK
* Save the file and run "postmap access" to generate the corresponding postfix
  db file.
Voila, all addresses listed in /kolab/etc/postfix/access should now be allowed 
as sender addresses. N.B.: You need to run the "postmap" command whenever you 
change that file!
Unless someone finds some faults with this (please do let me know!), I'll put 
it in the Wiki at some point.
Cheerio,
Thomas
    
    
More information about the users
mailing list