Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. 1. Add the following line in /etc/postfix/main.cf . All outgoing emails will have this address in the FROM field, but the name of the sender will not be modified. Replace <FQDN> with your fully qualified domain name.
  2.  
  3. ```
  4. sender_canonical_maps = static:no-reply@<FQDN>
  5. ```
  6.  
  7. 2. To modify the name as well, you need to create a file in /etc/postfix/header_checks which contains this line:
  8.  
  9. ```
  10. /^From:[[:space:]]+(.*)/ REPLACE From: "Your Name" <email@company.com>
  11. ```
  12.  
  13. 3. Then run the following commands:
  14.  
  15. ```
  16. cd /etc/postfix
  17. postmap header_checks
  18. postconf -e 'smtp_header_checks = regexp:/etc/postfix/header_checks'
  19. service postfix reload
  20. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement