Skip to content

Commit 9b349d2

Browse files
committed
Update
1 parent a57fb16 commit 9b349d2

1 file changed

Lines changed: 36 additions & 1 deletion

File tree

‎technology/server/server-setup.md‎

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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

398433
To diagnose general email sending/receiving issues: Open server's mail log in real-time to monitor activity:

0 commit comments

Comments
 (0)