Skip to content

Instantly share code, notes, and snippets.

@iammart
Last active December 14, 2015 11:49
Show Gist options
  • Select an option

  • Save iammart/5081784 to your computer and use it in GitHub Desktop.

Select an option

Save iammart/5081784 to your computer and use it in GitHub Desktop.
OSX Server Admin
```
sudo serveradmin command
mail:command = setAutoForward
mail:userID = (the_users_shortname)
mail:fwdAddress = (the_emailaddress_to_forward_to_)
```
To Remove
```
sudo serveradmin command
mail:command = setAutoForward
mail:userID = mailuser1
mail:fwdAddress = ""
```
http://support.apple.com/fr-fr/HT5032
$ sudo serveradmin settings mail:postfix:message_size_limit_enabled = no
# check all available settings
$ sudo serveradmin settings mail
# edit postfix conf
$ sudo /etc/postfix/main.cf
# locate following line
/smtpd_recipient_restrictions
# update to
$ smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination permit
# refresh postfix
$ sudo postfix reload
https://help.apple.com/advancedserveradmin/mac/10.7/#apd5178A1BB-15A5-46B5-ACFD-2C0550626FB2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment