Advertisement
Guest User

Untitled

a guest
Jul 24th, 2015
327
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.65 KB | None | 0 0
  1. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL # ./postfinger.sh
  2. postfinger - postfix configuration on Thu Jul 2 14:48:42 CET 2015
  3. version: 1.30
  4.  
  5. Warning: postfinger output may show private configuration information,
  6. such as ip addresses and/or domain names which you do not want to show
  7. to the public. If this is the case it is your responsibility to modify
  8. the output to hide this private information. [Remove this warning with
  9. the --nowarn option.]
  10.  
  11. --System Parameters--
  12. mail_version = 2.7.1
  13. hostname = messagerie.algerian-radio.dz
  14. uname = Linux messagerie.algerian-radio.dz 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC 2014 x86_64 GNU/Linux
  15.  
  16. --Packaging information--
  17. looks like this postfix comes from deb package: postfix-2.7.1-1+squeeze1
  18.  
  19. --main.cf non-default parameters--
  20. alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  21. alias_maps = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases
  22. append_dot_mydomain = no
  23. biff = no
  24. body_checks = regexp:/etc/postfix/body_checks
  25. broken_sasl_auth_clients = yes
  26. content_filter = amavis:[127.0.0.1]:10024
  27. enable_original_recipient = no
  28. header_checks = regexp:/etc/postfix/header_checks
  29. html_directory = /usr/share/doc/postfix/html
  30. inet_protocols = all
  31. mailbox_command = procmail -a "$EXTENSION"
  32. mailbox_size_limit = 0
  33. message_size_limit = 20971520
  34. mime_header_checks = regexp:/etc/postfix/mime_header_checks
  35. mydestination = messagerie.algerian-radio.dz, localhost, localhost.localdomain
  36. mynetworks = 127.0.0.0/8 [::1]/128
  37. myorigin = /etc/mailname
  38. nested_header_checks = regexp:/etc/postfix/nested_header_checks
  39. owner_request_special = no
  40. proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
  41. recipient_delimiter = +
  42. relay_domains = mysql:/etc/postfix/mysql-virtual_relaydomains.cf
  43. relay_recipient_maps = mysql:/etc/postfix/mysql-virtual_relayrecipientmaps.cf
  44. smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
  45. smtpd_client_message_rate_limit = 100
  46. smtpd_client_restrictions = check_client_access mysql:/etc/postfix/mysql-virtual_client.cf
  47. smtpd_recipient_restrictions = check_recipient_access mysql:/etc/postfix/mysql-virtual_recipient.cf, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
  48. smtpd_sasl_auth_enable = yes
  49. smtpd_sasl_authenticated_header = yes
  50. smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/mysql-virtual_sender.cf
  51. smtpd_tls_cert_file = /etc/postfix/smtpd.cert
  52. smtpd_tls_key_file = /etc/postfix/smtpd.key
  53. smtpd_tls_security_level = may
  54. smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
  55. smtpd_use_tls = yes
  56. smtp_tls_security_level = may
  57. smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
  58. transport_maps = hash:/var/lib/mailman/data/transport-mailman, proxy:mysql:/etc/postfix/mysql-virtual_transports.cf
  59. virtual_alias_domains =
  60. virtual_alias_maps = proxy:mysql:/etc/postfix/mysql-virtual_forwardings.cf, proxy:mysql:/etc/postfix/mysql-virtual_email2email.cf, hash:/var/lib/mailman/data/virtual-mailman
  61. virtual_gid_maps = static:5000
  62. virtual_mailbox_base = /var/vmail
  63. virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf
  64. virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf
  65. virtual_transport = maildrop
  66. virtual_uid_maps = static:5000
  67.  
  68. --master.cf--
  69. smtp inet n - - - - smtpd
  70. pickup fifo n - - 60 1 pickup
  71. cleanup unix n - - - 0 cleanup
  72. qmgr fifo n - n 300 1 qmgr
  73. tlsmgr unix - - - 1000? 1 tlsmgr
  74. rewrite unix - - - - - trivial-rewrite
  75. bounce unix - - - - 0 bounce
  76. defer unix - - - - 0 bounce
  77. trace unix - - - - 0 bounce
  78. verify unix - - - - 1 verify
  79. flush unix n - - 1000? 0 flush
  80. proxymap unix - - n - - proxymap
  81. proxywrite unix - - n - 1 proxymap
  82. smtp unix - - - - - smtp
  83. relay unix - - - - - smtp
  84. -o smtp_fallback_relay=
  85. showq unix n - - - - showq
  86. error unix - - - - - error
  87. retry unix - - - - - error
  88. discard unix - - - - - discard
  89. local unix - n n - - local
  90. virtual unix - n n - - virtual
  91. lmtp unix - - - - - lmtp
  92. anvil unix - - - - 1 anvil
  93. scache unix - - - - 1 scache
  94. maildrop unix - n n - - pipe
  95. flags=DRhu user=vmail argv=/usr/bin/maildrop -d vmail ${extension} ${recipient} ${user} ${nexthop} ${sender}
  96. uucp unix - n n - - pipe
  97. flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  98. ifmail unix - n n - - pipe
  99. flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  100. bsmtp unix - n n - - pipe
  101. flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  102. scalemail-backend unix - n n - 2 pipe
  103. flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  104. mailman unix - n n - - pipe
  105. flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  106. ${nexthop} ${user}
  107. amavis unix - - - - 2 smtp
  108. -o smtp_data_done_timeout=1200
  109. -o smtp_send_xforward_command=yes
  110. 127.0.0.1:10025 inet n - - - - smtpd
  111. -o content_filter=
  112. -o local_recipient_maps=
  113. -o relay_recipient_maps=
  114. -o smtpd_restriction_classes=
  115. -o smtpd_client_restrictions=
  116. -o smtpd_helo_restrictions=
  117. -o smtpd_sender_restrictions=
  118. -o smtpd_recipient_restrictions=permit_mynetworks,reject
  119. -o mynetworks=127.0.0.0/8
  120. -o strict_rfc821_envelopes=yes
  121. -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
  122.  
  123. -- end of postfinger output --
  124. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL #
  125.  
  126.  
  127. Jul 2 15:47:20 messagerie postfix/smtpd[28241]: connect from messagerie.algerian-radio.dz[10.10.10.19]
  128. Jul 2 15:47:20 messagerie postfix/smtpd[28241]: NOQUEUE: reject: RCPT from messagerie.algerian-radio.dz[10.10.10.19]: 550 5.1.1 <r.betrouni@algerian-radio.dz>: Recipient address rejected: User unknown in virtual mailbox table; from=<a.chaouche@algerian-radio.dz> to=<r.betrouni@algerian-radio.dz> proto=ESMTP helo=<messagerie.algerian-radio.dz>
  129.  
  130.  
  131. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL # authtest r.batrouni@algerian-radio.dz
  132. Authentication succeeded.
  133.  
  134. Authenticated: r.batrouni@algerian-radio.dz (uid 5000, gid 5000)
  135. Home Directory: /var/vmail
  136. Maildir: /var/vmail/algerian-radio.dz/r.batrouni
  137. Quota: 1073741824
  138. Encrypted Password: 4>8jNieltrGVo
  139. Cleartext Password: (none)
  140. Options: disableimap=n,disablepop3=n
  141. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL #
  142.  
  143. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL # postmap hash:/etc/postfix/mysql-virtual_mailboxes.cfroot@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL # postmap -q r.batrouni@algerian-radio.dz hash:/etc/postfix/mysql-virtual_mailboxes.cf
  144. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL #
  145.  
  146.  
  147. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL # cat /etc/postfix/mysql-virtual_mailboxes.cf
  148. user = ispconfig
  149. password = xxx
  150. dbname = dbispconfig
  151. table = mail_user
  152. select_field = CONCAT(SUBSTRING_INDEX(email,'@',-1),'/',SUBSTRING_INDEX(email,'@',1),'/')
  153. where_field = login
  154. additional_conditions = and postfix = 'y' and server_id = 1
  155. hosts = 127.0.0.1
  156. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL #
  157.  
  158.  
  159. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL # mysql -ubackup -pxxx dbispconfig -e "select email,name,password from mail_user where email like '%batrouni%'"
  160. +------------------------------+---------------+---------------+
  161. | email | name | password |
  162. +------------------------------+---------------+---------------+
  163. | r.batrouni@algerian-radio.dz | Riad BATROUNI | 4>8jNieltrGVo |
  164. +------------------------------+---------------+---------------+
  165. root@messagerie-secours[10.10.10.19] ~/SCRIPTS/MAIL #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement