Advertisement
Guest User

Untitled

a guest
Aug 15th, 2015
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.83 KB | None | 0 0
  1. +-----------------------------------------------------------------------------+
  2. | Grants for postfix@localhost |
  3. +-----------------------------------------------------------------------------+
  4. | GRANT USAGE ON *.* TO 'postfix'@'localhost' IDENTIFIED BY PASSWORD <secret> |
  5. | GRANT ALL PRIVILEGES ON `postfix`.* TO 'postfix'@'localhost' |
  6. +-----------------------------------------------------------------------------+
  7. +-------------------+
  8. | Tables_in_postfix |
  9. +-------------------+
  10. | alias |
  11. | comptes |
  12. | domaines |
  13. +-------------------+
  14. +-----------------------------------+---------------+-------+------+------+------+
  15. | email | password | quota | etat | imap | pop3 |
  16. +-----------------------------------+---------------+-------+------+------+------+
  17. | p-n@p-n.com | Zf8r245E1KNM | 0 | 1 | 1 | 1 |
  18. | p-n | QqR.0ITzYHvgI| 0 | 1 | 1 | 1 |
  19. +-----------------------------------+---------------+-------+------+------+------+
  20.  
  21. envoi d'un mail depuis g mail:
  22. -------------------------------------------------------------------------------
  23. Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
  24. Aug 15 17:54:36 postserv postfix/smtpd[30933]: connect from mail-vk0-f50.google.com[209.85.213.50]
  25. Aug 15 17:54:36 postserv postfix/trivial-rewrite[30936]: warning: do not list domain p-n.com in BOTH mydestination and virtual_mailbox_domains
  26. Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support
  27. Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: restriction `reject_unauthenticated_sender_login_mismatch' ignored: no SASL support
  28. Aug 15 17:54:36 postserv postfix/smtpd[30933]: warning: restriction `reject_authenticated_sender_login_mismatch' ignored: no SASL support
  29. Aug 15 17:54:36 postserv postfix/smtpd[30933]: NOQUEUE: reject: RCPT from mail-vk0-f50.google.com[209.85.213.50]: 550 5.1.1 <p-ne@p-n.com>: Recipient address rejected: User unknown in local recipient table; from=<sp.p@gmail.com> to=<p-n@p-n.com> proto=ESMTP helo=<mail-vk0-f50.google.com>
  30. Aug 15 17:54:36 postserv postfix/smtpd[30933]: disconnect from mail-vk0-f50.google.com[209.85.213.50]
  31. Aug 15 17:57:56 postserv postfix/anvil[30935]: statistics: max connection rate 1/60s for (smtp:209.85.213.50) at Aug 15 17:54:36
  32. Aug 15 17:57:56 postserv postfix/anvil[30935]: statistics: max connection count 1 for (smtp:209.85.213.50) at Aug 15 17:54:36
  33. Aug 15 17:57:56 postserv postfix/anvil[30935]: statistics: max cache size 1 at Aug 15 17:54:36
  34. -------------------------------------------------------------------------------------------------------
  35. main.cf
  36.  
  37. #************************** 09.15.2015 *********************************
  38. #test:
  39. #append_dot_mydomain = yes
  40. append_at_myorigin = no
  41. debug_peer_level = 2
  42. delay_warning_time = 4h
  43. myhostname = postserv.p-n.com
  44. mydomain = p-n.com
  45. masquerade_domains = p-n.com
  46. mydestination = $myhostname, $mydomain, localhost.$mydomain, localhost
  47. #************************************************************************
  48. mynetworks = 127.0.0.1
  49. inet_protocols = ipv4
  50. inet_interfaces = all
  51.  
  52. #myhostname = postserv
  53. #mydestination = localhost,panthere-noire.com,myhostname
  54.  
  55. smtpd_banner = $myhostname ESMTP $mail_name (GNU)
  56. smtpd_helo_required = yes
  57. biff = no
  58. append_dot_mydomain = no
  59. mailbox_size_limit = 0
  60. append_dot_mydomain = no
  61.  
  62. #Si aucun relayhost n'est renseigné, le courrier est routé directement
  63. #vers sa destination finale (champs MX)
  64. relayhost =
  65.  
  66. #Ceci arrête certaines techniques utilisées pour obtenir des adresses mail.
  67. disable_vrfy_command = yes
  68.  
  69. # Gestion des boites mails virtuelle par: mysql
  70. # mysql:/etc/postfix/mysql-virtual_aliases_comptes.cf
  71. virtual_alias_maps = mysql:/etc/postfix/mysql-virtual_aliases.cf
  72. virtual_mailbox_domains = mysql:/etc/postfix/mysql-virtual_domains.cf
  73. virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual_comptes.cf
  74.  
  75. # Le dossier ou seront contenu les mails
  76. virtual_mailbox_base = /var/spool/vmail/
  77. virtual_uid_maps = static:5000
  78. virtual_gid_maps = static:5000
  79.  
  80. #utile ?
  81. # Séparateur entre le nom d'utilisateur et les extensions d'adresses
  82. recipient_delimiter = +
  83.  
  84. smtpd_recipient_restrictions =
  85. permit_mynetworks,
  86. # permit_sasl_authenticated,
  87. reject_invalid_hostname,
  88. # reject_non_fqdn_sender,
  89. reject_non_fqdn_recipient,
  90. reject_unknown_recipient_domain,
  91. reject_invalid_helo_hostname,
  92. reject_unlisted_sender,
  93. reject_unknown_sender_domain,
  94. reject_sender_login_mismatch,
  95. reject_authenticated_sender_login_mismatch,
  96. reject_unauth_destination,
  97. reject_rbl_client sbl-xbl.spamhaus.org,
  98. reject_rbl_client
  99. zen.spamhaus.org,
  100. reject_rbl_client bl.spamcop.net,
  101. permit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement