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
Next revisionBoth sides next revision
linux:postfix [2018/08/01 11:43] niziaklinux:postfix [2020/06/16 11:21] niziak
Line 1: Line 1:
 +====== Postfix ======
 +
 ====== relay only for one user ====== ====== relay only for one user ======
  
Line 18: Line 20:
  
 <file | main.cf> <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 # A sender-dependent override for the global relayhost parameter setting
 sender_dependent_relayhost_maps = hash:/etc/postfix/relay_by_sender sender_dependent_relayhost_maps = hash:/etc/postfix/relay_by_sender
 +smtp_sender_dependent_authentication = yes
 +smtp_sasl_auth_enable = yes
 +smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
 +smtp_sasl_security_options = noanonymous
 </file> </file>
- 
- 
  
  
Line 31: Line 33:
  
 Test email: Test email:
-cat /etc/issue | mailx -r "cloudservice@example.org" -s "test relaya" "destination@email.org"+<code bash>cat /etc/issue | mailx -r "cloudservice@example.org" -s "test relaya" "destination@email.org"</code>
  
 ====== Issues ====== ====== Issues ======
  
 (SASL authentication failed; cannot authenticate to server smtp.server.org[11.22.33.44]: no mechanism available) (SASL authentication failed; cannot authenticate to server smtp.server.org[11.22.33.44]: no mechanism available)
 +solution: smtp_sasl_security_options = noanonymous