Download presentation
Presentation is loading. Please wait.
Published byBertram Carr Modified over 9 years ago
1
1 Module 6 Managing Recipients and Aliases
2
2 Address Rewriting alice@example.com bob@example.com carl@example.com Alice.Adams@example.com Bob.Barnes@example.com Carl.Carson@example.com /opt/insight/etc/postfix/canonical_sender: Alice.Adams@example.com Bob.Barnes@example.com Carl.Carson@example.com alice@example.com bob@example.com carl@example.com /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:
3
3 Hiding Host Names Masquerading intentionally hides internal hostnames carl@paper.example.org carl@example.org In main.cf: masquerade_domains = example.org
4
4 Hiding Host Names Masquerading intentionally hides internal hostnames carl@paper.example.org carl@example.org In main.cf: masquerade_domains = example.com, example.net, example.org, !sales.example.com masquerade_exceptions = alice, bob
5
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 = alice local_recipient_maps =
6
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: carl@example.comcarl@example.net @example.orgexample.net
7
7 Relocating Users and Domains Relocated User Relocated Domain
8
8 Types of Aliases Postfix supports numerous types of aliases SCOoffice Server stores aliases two ways Stored in LDAP Stored in a file
9
9 Types of Aliases From /opt/insight/etc/postfix/main.cf: alias_maps = hash:/opt/insight/etc/mail/aliases alias_database = hash:/opt/insight/etc/mail/aliases local_recipient_maps = $alias_maps ldap:ldapsource
10
10 Types of Aliases From /opt/insight/etc/mail/aliases: MAILER-DAEMON:admin@example.com abuse:admin@example.com postmaster:admin@example.com webmaster:admin@example.com root:admin@example.com virusalert:admin@example.com spam.police:admin@example.com apache:admin@example.com uucp:admin@example.com
11
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
12
12 Exercise: Adding a New Alias File Edit /opt/insight/etc/postfix/aliases Process the alias file Reload Postfix
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.