File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Debian and Virtualmin Server Setup
22
33> [ !NOTE]
4- > Last update: 2025-09-10
4+ > Last update: 2025-10-09
55
66``` .sh
77# Settings
@@ -393,6 +393,41 @@ Additionally, add the following record:
393393- Name: ` _dmarc `
394394- Content: ` v=DMARC1; p=none; fo=1; adkim=s; aspf=s `
395395
396+ ### Sender Canonical Maps (Per-User Mapping)
397+
398+ #### Create Sender Canonical Map
399+
400+ ``` .sh
401+ nano /etc/postfix/sender_canonical
402+ ```
403+
404+ Add mappings for each virtual server user:
405+
406+ ``` .txt
407+ website noreply@website.com
408+ ```
409+
410+ #### Configure Postfix
411+
412+ ``` .sh
413+ nano /etc/postfix/main.cf
414+ ```
415+
416+ Add this line:
417+
418+ ``` .txt
419+ sender_canonical_maps = hash:/etc/postfix/sender_canonical
420+ ```
421+
422+ Apply changes:
423+
424+ ``` .sh
425+ postmap /etc/postfix/sender_canonical
426+ systemctl reload postfix
427+ ```
428+
429+ To verify: ` Webmin ` → ` Servers ` → ` Postfix Mail Server ` → ` Canonical Mapping ` → ` Tables for sender addresses ` : ` hash:/etc/postfix/sender_canonical ` .
430+
396431### Troubleshooting
397432
398433To diagnose general email sending/receiving issues: Open server's mail log in real-time to monitor activity:
You can’t perform that action at this time.
0 commit comments