Advertisement
Guest User

Untitled

a guest
Jun 17th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. XXXX = domainname
  2.  
  3. #postconf -n:
  4. alias_database = hash:/etc/aliases
  5. alias_maps = hash:/etc/aliases
  6. append_dot_mydomain = no
  7. biff = no
  8. broken_sasl_auth_clients = yes
  9. config_directory = /etc/postfix
  10. inet_protocols = ipv4
  11. message_size_limit = 50000000
  12. mydestination = $myhostname localhost
  13. myhostname = XXXX.org
  14. mynetworks = 127.0.0.0/8
  15. myorigin = /etc/mailname
  16. smtp_sasl_auth_enable = no
  17. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  18. smtpd_banner = XXXX ESMTP Server
  19. smtpd_enforce_tls = no
  20. smtpd_helo_required = yes
  21. smtpd_recipient_restrictions = reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, permit_sasl_authenticated, permit_mynetworks, reject_unverified_recipient, reject_unauth_destination, permit
  22. smtpd_sasl_auth_enable = yes
  23. smtpd_sasl_local_domain = $myhostname
  24. smtpd_sasl_security_options = noanonymous
  25. smtpd_tls_auth_only = yes
  26. smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
  27. smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
  28. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  29. smtpd_tls_session_cache_timeout = 3600s
  30. smtpd_use_tls = yes
  31. strict_rfc821_envelopes = yes
  32. virtual_alias_domains =
  33. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_alias_maps.cf
  34. virtual_gid_maps = static:2000
  35. virtual_mailbox_base = /var/kunden/mail/
  36. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_mailbox_domains.cf
  37. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_mailbox_maps.cf
  38. virtual_uid_maps = static:2000
  39.  
  40.  
  41. #cat /etc/aliases
  42. # See man 5 aliases for format
  43. root: username@XXXX.org
  44. postmaster: root
  45. logcheck: root
  46.  
  47. #When used echo Message | mail -s "Subject" root , in syslog
  48.  
  49. Sep 27 14:09:52 XXXX postfix/pickup[14780]: 025162CA7F0C: uid=0 from=<root>
  50. Sep 27 14:09:52 XXXX postfix/cleanup[752]: 025162CA7F0C: message-id=<20100927120952.025162CA7F0C@XXXX.org>
  51. Sep 27 14:09:52 XXXX postfix/qmgr[14782]: 025162CA7F0C: from=<root@XXXX.org>, size=280, nrcpt=1 (queue active)
  52. Sep 27 14:09:52 XXXX postfix/trivial-rewrite[783]: warning: do not list domain XXXX.org in BOTH mydestination and virtual_mailbox_domains
  53. Sep 27 14:09:52 XXXX postfix/local[795]: 025162CA7F0C: to=<username@XXXX.org>, orig_to=<root>, relay=local, delay=0.06, delays=0.04/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "username")
  54. Sep 27 14:09:52 XXXX postfix/cleanup[752]: 0D9762CA8BA1: message-id=<20100927120952.0D9762CA8BA1@XXXX.org>
  55. Sep 27 14:09:52 XXXX postfix/bounce[796]: 025162CA7F0C: sender non-delivery notification: 0D9762CA8BA1
  56. Sep 27 14:09:52 XXXX postfix/qmgr[14782]: 0D9762CA8BA1: from=<>, size=1964, nrcpt=1 (queue active)
  57. Sep 27 14:09:52 XXXX postfix/trivial-rewrite[783]: warning: do not list domain XXXX.org in BOTH mydestination and virtual_mailbox_domains
  58. Sep 27 14:09:52 XXXX postfix/qmgr[14782]: 025162CA7F0C: removed
  59. Sep 27 14:09:52 XXXX postfix/local[795]: 0D9762CA8BA1: to=<username@XXXX.org>, orig_to=<root@XXXX.org>, relay=local, delay=0.04, delays=0.03/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user: "username")
  60. Sep 27 14:09:52 XXXX postfix/qmgr[14782]: 0D9762CA8BA1: removed
  61.  
  62. But the important thing is, i can change
  63. root: username@XXXX.org to whatever i want, and nothing changes after newalias and a reload of proftpd
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement