Created
October 18, 2014 09:23
-
-
Save lorello/73935f1415f7b1f6fb43 to your computer and use it in GitHub Desktop.
Add DKIM to IspConfig3 domain on Ubuntu Pricise 12.04 LTS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| DOMAIN=$1 | |
| PEMPATH=/var/db/dkim | |
| cd $PEMPATH | |
| amavisd-new genrsa $DOMAIN.key.pem | |
| chown amavis:amavis $PEMPATH/$DOMAIN.key.pem | |
| echo "Add to /etc/amavis/conf.d/51-dkim" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Source: http://stinebaugh.info/add-dkim-signing-to-your-ispconfig-server-ubuntu-12-04-lts/ | |
| $enable_dkim_signing = 1; | |
| dkim_key('mydomain.org', 'mail', '/var/db/dkim/mydomain.org.key.pem'); | |
| dkim_key('myotherdomain.org', 'mail', '/var/db/dkim/myother.org.key.pem'); | |
| @dkim_signature_options_bysender_maps = ( | |
| { | |
| '.' => { ttl => 21*24*3600, c => 'relaxed/simple' } | |
| } | |
| ); | |
| # list your internal networks | |
| @mynetworks = qw(0.0.0.0/8 127.0.0.0/8 10.254.0.0/16 172.16.0.0/12 192.168.0.0/16); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment