Changes

Jump to navigation Jump to search
687 bytes added ,  20:58, 6 January 2014
Line 555: Line 555:     
===Disable mail to a user from an external network===
 
===Disable mail to a user from an external network===
 +
However, this seems to only affect /var/qmail/control/badrcptto - denying external delivery to your users but allowing outbound emails:
 +
http://forums.contribs.org/index.php?topic=40449.5
 +
 
Can be either a user, pseudonym or group
 
Can be either a user, pseudonym or group
 
  db accounts setprop groupname/username Visible internal
 
  db accounts setprop groupname/username Visible internal
 +
signal-event email-update
 +
 +
If you want to remove
 +
db accounts delprop groupname/username Visible
 +
signal-event email-update
 +
 +
* If you need to restrict emails for all users you can perform this command line
 +
 +
db accounts show | awk -F "="  '/\=user/ {print $1}' |while read USER; do db accounts setprop $USER Visible internal; done
 +
signal-event email-update
 +
 +
If you want to remove
 +
db accounts show | awk -F "="  '/\=user/ {print $1}' |while read USER; do db accounts delprop $USER Visible; done
 
  signal-event email-update
 
  signal-event email-update
  

Navigation menu