Advertisement
load-net

postfix-без авторизации

Mar 11th, 2024 (edited)
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. apt install -y rsyslog
  2. apt remove sendmail --purge
  3. apt-get install postfix libsasl2-modules mailutils mc -y
  4.  
  5.  
  6. mcedit /etc/postfix/main.cf
  7.  
  8. smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated defer_unauth_destination
  9. myhostname = localhost.localdomain
  10. alias_maps = hash:/etc/aliases
  11. alias_database = hash:/etc/aliases
  12. mydestination =.
  13. relayhost =.
  14. mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
  15. mailbox_command = procmail -a "$EXTENSION"
  16. mailbox_size_limit = 0
  17. recipient_delimiter = +
  18. inet_interfaces = loopback-only
  19. inet_protocols = all
  20. virtual_alias_maps = hash:/etc/postfix/virtual
  21.  
  22.  
  23. mcedit /etc/postfix/virtual
  24. postmaster [email protected]
  25.  
  26. postmap /etc/postfix/virtual
  27.  
  28.  
  29. sudo dpkg-reconfigure postfix
  30. sudo postfix reload
  31. sudo postfix check
  32. sudo postfix reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement