meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
linux:postfix [2018/08/01 13:25] niziaklinux:mail:postfix [2023/02/13 12:49] (current) – ↷ Page moved from linux:postfix to linux:mail:postfix niziak
Line 1: Line 1:
-====== relay only for one user ======+====== Postfix ======
  
-<file |/etc/postfix/relay_by_sender> 
-cloudservice@example.org    smtp:[smtp.gmail.com] 
-</file> 
-cd /etc/postfix && postmap  relay_by_sender 
  
-<file | main.cf> 
-# By default this is standalone mail server, so relayhost= is empty 
-relayhost = 
  
-# A sender-dependent override for the global relayhost parameter setting 
-sender_dependent_relayhost_maps = hash:/etc/postfix/relay_by_sender 
-</file> 
- 
-<code bash>service postfix restart</code> 
- 
-Test email: 
-cat /etc/issue | mailx -r "cloudservice@example.org" -s "test relaya" "destination@email.org"