c756e6820b18defea598cbe08a87953d71c40ab9
howto/EMail.md
... | ... | @@ -48,6 +48,29 @@ and add this transport to /etc/postfix/transport for dn42 (and dont forget to po |
48 | 48 | |
49 | 49 | This should to the trick for sending mails via your DN42-IP |
50 | 50 | |
51 | +If you use `smtpd_recipient_restrictions` you can use the following rule to white-list dn42 as sender. |
|
52 | + |
|
53 | +``` |
|
54 | +smtpd_recipient_restrictions = permit_mynetworks, |
|
55 | + permit_sasl_authenticated, |
|
56 | + check_client_access cidr:/etc/postfix/dn42.cidr, |
|
57 | + reject_non_fqdn_sender, |
|
58 | + # ... |
|
59 | + permit |
|
60 | +``` |
|
61 | + |
|
62 | +``` |
|
63 | +#/etc/postfix/dn42.cidr |
|
64 | +172.16.0.0/12 OK |
|
65 | +10.0.0.0/8 OK |
|
66 | +fc00::/7 OK |
|
67 | +``` |
|
68 | + |
|
69 | +``` |
|
70 | +$ postmap /etc/postfix/dn42.cidr |
|
71 | +``` |
|
72 | + |
|
73 | + |
|
51 | 74 | ### Receiving emails |
52 | 75 | |
53 | 76 | The Domain mails should be received for has to be added to `mydestination =` in main.cf |