1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting [email protected] [email protected]...
-
Upload
bertram-carr -
Category
Documents
-
view
221 -
download
0
Transcript of 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting [email protected] [email protected]...
![Page 1: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/1.jpg)
1
Module 6
Managing Recipients and Aliases
![Page 2: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/2.jpg)
2
Address Rewriting
[email protected]@[email protected]
[email protected]@[email protected]
/opt/insight/etc/postfix/canonical_sender:
[email protected]@[email protected]
[email protected]@[email protected]
/opt/insight/etc/postfix/canonical_recipient:
sender_canonical_maps =hash:/opt/insight/etc/postfix/canonical_sender
recipient_canonical_maps = hash:/opt/insight/etc/postfix/canonical_recipient
/opt/insight/etc/postfix/main.cf:
![Page 3: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/3.jpg)
3
Hiding Host Names
Masquerading intentionally hides internal hostnames
[email protected] [email protected]
In main.cf:masquerade_domains = example.org
![Page 4: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/4.jpg)
4
Hiding Host Names
Masquerading intentionally hides internal hostnames
[email protected] [email protected]
In main.cf:masquerade_domains = example.com, example.net,
example.org,!sales.example.com
masquerade_exceptions = alice, bob
![Page 5: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/5.jpg)
5
Directing Email Sent to Unknown Users
Email sent to unknown users: Returned to sender by default Can be directed to an email user or alias
Beware of spammers
In main.cf:luser_relay = alicelocal_recipient_maps =
![Page 6: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/6.jpg)
6
Relocating Users and Domains
Relocation maps used when users or domains move
Configure relocation rules in main.cf:
relocated_maps = hash:/opt/insight/etc/postfix/relocated
Define relocation rules in lookup table:
[email protected]@example.net
@example.org example.net
![Page 7: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/7.jpg)
7
Relocating Users and Domains
Relocated User
Relocated Domain
![Page 8: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/8.jpg)
8
Types of Aliases
Postfix supports numerous types of aliases
SCOoffice Server stores aliases two ways
Stored in LDAPStored in a file
![Page 9: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/9.jpg)
9
Types of Aliases
From /opt/insight/etc/postfix/main.cf:alias_maps = hash:/opt/insight/etc/mail/aliasesalias_database = hash:/opt/insight/etc/mail/aliaseslocal_recipient_maps = $alias_maps ldap:ldapsource
![Page 10: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/10.jpg)
10
Types of Aliases
From /opt/insight/etc/mail/aliases:
MAILER-DAEMON:[email protected]: [email protected]:[email protected]:[email protected]: [email protected]:[email protected]: [email protected]:[email protected]: [email protected]
![Page 11: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/11.jpg)
11
Types of Aliases
Process alias files with postalias(1):
# postalias hash:/opt/insight/etc/mail/aliases
Reload Postfix if a new alias lookup table is added to main.cf:
# postfix reload
![Page 12: 1 Module 6 Managing Recipients and Aliases. 2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com.](https://reader036.fdocuments.net/reader036/viewer/2022062715/56649da75503460f94a93972/html5/thumbnails/12.jpg)
12
Exercise: Adding a New Alias File
Edit /opt/insight/etc/postfix/aliases Process the alias file Reload Postfix