41c665baca22a301189c43a0f6a042173d5a40a5
howto/EMail.md
| ... | ... | @@ -19,3 +19,25 @@ This is controlled by the `ignore_target_hosts` variable in the configuration fi |
| 19 | 19 | Don't forget to add your dn42 domains to the list of local domains, so that you accept incoming emails. On Debian, it is controlled by `dc_other_hostnames` in `update-exim4.conf.conf`. For instance: |
| 20 | 20 | |
| 21 | 21 | dc_other_hostnames='myself.org;myself.dn42;myserver.myself.dn42' |
| 22 | + |
|
| 23 | + |
|
| 24 | +## Postfix |
|
| 25 | + |
|
| 26 | +### Sending Mails |
|
| 27 | +If your machine sends/receives Mails in "clearnet" with specific bound IP's you need to create an additional transport in master.cf |
|
| 28 | + |
|
| 29 | + out_dn42 unix - - n - - smtp |
|
| 30 | + -o smtp_bind_address=172.23.67.1 |
|
| 31 | + -o smtp_bind_address6=fd70:96c9:ef25::1 |
|
| 32 | + -o smtp_helo_name=ns1.mhm.dn42 |
|
| 33 | + -o syslog_name=postfix-dn42 |
|
| 34 | + |
|
| 35 | +and add this transport to /etc/postfix/transport for dn42 (and dont forget to postmap) |
|
| 36 | + |
|
| 37 | + .dn42 out_dn42: |
|
| 38 | + |
|
| 39 | +This should to the trick for sending mails via your DN42-IP |
|
| 40 | + |
|
| 41 | +### Receiving emails |
|
| 42 | + |
|
| 43 | +The Domain mails should be received for has to be added to 'mydestination =' in main.cf |
|
| ... | ... | \ No newline at end of file |