Part of Slepp's ProjectsPastebinTURLImagebinFilebin
Feedback -- English French German Japanese
Create Upload Newest Tools Donate
Sign In | Create Account

Mine
Friday, May 4th, 2007 at 8:44:41am UTC 

  1. # main.cf
  2. # See /usr/share/postfix/main.cf.dist for a commented, more complete version
  3.  
  4. daemon_directory = /usr/lib/postfix
  5. command_directory = /usr/sbin
  6. program_directory = /usr/lib/postfix
  7.  
  8. #smtpd_banner = $myhostname ESMTP $mail_name
  9. smtpd_banner = $mail_name
  10.  
  11. biff = no
  12.  
  13. # appending .domain is the MUA's job.
  14. append_dot_mydomain = no
  15.  
  16. # Uncomment the next line to generate "delayed mail" warnings
  17. delay_warning_time = 4h
  18.  
  19.  
  20. # will it be a permanent error or temporary
  21. unknown_local_recipient_reject_code = 450
  22.  
  23. # how long to keep message on queue before return as failed.
  24. # some have 3 days, I have 16 days as I am backup server for some people
  25. # whom go on holiday with their server switched off.
  26. maximal_queue_lifetime = 7d
  27.  
  28.  
  29.  
  30.  
  31. # max and min time in seconds between retries if connection failed
  32. minimal_backoff_time = 1000s
  33. maximal_backoff_time = 8000s
  34.  
  35.  
  36. # how long to wait when servers connect before receiving rest of data
  37. smtp_helo_timeout = 60s
  38.  
  39. # how many address can be used in one message.
  40. # effective stopper to mass spammers, accidental copy in whole address list
  41. # but may restrict intentional mail shots.
  42. smtpd_recipient_limit = 16
  43.  
  44. # how many error before back off.
  45. smtpd_soft_error_limit = 3
  46. # how many max errors before blocking it.
  47. smtpd_hard_error_limit = 12
  48.  
  49.  
  50.  
  51. # TLS parameters
  52. smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
  53. smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
  54. smtpd_use_tls=yes
  55. smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
  56. smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
  57. smtpd_data_restrictions = reject_unauth_pipelining
  58.  
  59. # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
  60. # information on enabling SSL in the smtp client.
  61.  
  62.  
  63.  
  64.  
  65. myhostname = mail.eudealers.com
  66. mydomain = eudealers.com
  67. mydestination = $myhostname, localhost.$mydomain, localhost
  68. #mailbox_size_limit = 0
  69.  
  70. recipient_delimiter = +
  71. inet_interfaces = all
  72.  
  73.  
  74. # Requirements for the HELO statement
  75. #smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname,  permit
  76.  
  77. #smtpd_helo_restrictions = permit_mynetworks, warn_if_reject reject_non_fqdn_hostname,  reject_invalid_hostname, permit
  78.  
  79. # Requirements for the sender details
  80. #smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unauth_pipelining, permit
  81. #smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks, warn_if_reject reject_non_fqdn_sender, reject_unknown_sender_domain, reject_unauth_pipelining, permit
  82.  
  83.  
  84. # Requirements for the connecting server
  85. #smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org, reject_rbl_client relays.ordb.org, reject_rbl_client blackholes.easynet.nl,  reject_rbl_client dnsbl.njabl.org
  86.  
  87. smtpd_sender_restrictions =     permit_sasl_authenticated,
  88.                                 permit_mynetworks,
  89.                                 reject_non_fqdn_sender,
  90.                                 reject_unknown_sender_domain,
  91.                                 reject_unauth_pipelining, permit
  92.  
  93.  
  94.  
  95.  
  96.  
  97. # Requirement for the recipient address
  98. smtpd_recipient_restrictions =
  99.    permit_mynetworks,
  100.    permit_sasl_authenticated,
  101.    reject_non_fqdn_hostname,
  102.    reject_non_fqdn_sender,
  103.    reject_non_fqdn_recipient,
  104.    reject_unauth_destination,
  105.    reject_unauth_pipelining,
  106.    reject_invalid_hostname,
  107.    reject_rbl_client list.dsbl.org,
  108.    reject_rbl_client sbl-xbl.spamhaus.org,
  109.    permit
  110.  
  111.  
  112.  
  113.  
  114. # require proper helo at connections
  115. #smtpd_helo_required = yes
  116. # waste spammers time before rejecting them
  117. #smtpd_delay_reject = yes
  118. #disable_vrfy_command = yes
  119.  
  120.  
  121.  
  122.  
  123. # Custom stuff for postfix admin
  124. virtual_alias_maps=pgsql:/etc/postfix/pgsql/virtual_alias_maps.cf
  125.  
  126.  
  127. # What (virtual) domains Postfix does mail for
  128. virtual_mailbox_domains = pgsql:/etc/postfix/pgsql/virtual_domains_maps.cf
  129.  
  130.  
  131. # Where Postfix finds the mailbox for $user@$domain
  132. virtual_mailbox_maps = pgsql:/etc/postfix/pgsql/virtual_mailbox_maps.cf
  133.  
  134. # Incase we are a backup MX server for any domains :
  135. relay_domains = pgsql:/etc/postfix/pgsql/relay_domains.cf
  136.  
  137. # Where all mailboxes are under
  138. # (i.e. resulting in /var/mail/vmail/$user@$domain/).
  139. virtual_mailbox_base = /var/mail/vmail
  140. # Quota limit...
  141. virtual_mailbox_limit = 51200000
  142. virtual_minimum_uid = 1001
  143. virtual_transport = virtual
  144. # What UID is used to deliver/own the mail files
  145. # (needs to link in with courier config)
  146. virtual_uid_maps = static:1001
  147. virtual_gid_maps = static:1001
  148.  
  149. # This is necessary for the virtual 'stuff' above to be used
  150. local_transport = virtual
  151. # This tells Postfix to accept mail for users
  152. # which appear in the virtual_mailbox_maps above.
  153. local_recipient_maps = $virtual_mailbox_maps
  154.  
  155.  
  156. smtpd_sasl_auth_enable = yes
  157. broken_sasl_auth_clients = yes
  158. smtpd_sasl_path=sasl
  159. smtpd_sasl_local_domain = $myhostname
  160. smtpd_sasl_security_options = noanonymous
  161. smtpd_sasl_application_name      = smtpd
  162. smtpd_pw_server_security_options = noanonymous
  163.  
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. #
  171. # Postfix master process configuration file.  For details on the format
  172. # of the file, see the master(5) manual page (command: "man 5 master").
  173. #
  174. # ==========================================================================
  175. # service type  private unpriv  chroot  wakeup  maxproc command + args
  176. #               (yes)   (yes)   (yes)   (never) (100)
  177. # ==========================================================================
  178. smtp      inet  n       -       n       -       -       smtpd
  179. 567  inet n       -       -       -       -       smtpd
  180. #  -o smtpd_enforce_tls=yes
  181. #  -o smtpd_sasl_auth_enable=yes
  182. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  183. smtps     inet  n       -       n       -       -       smtpd
  184.   -o smtpd_tls_wrappermode=yes
  185.   -o smtpd_sasl_auth_enable=yes
  186. #  -o smtpd_client_restrictions=permit_sasl_authenticated,reject
  187. #628      inet  n       -       n       -       -       qmqpd
  188. pickup    fifo  n       -       n       60      1       pickup
  189. cleanup   unix  n       -       n       -       0       cleanup
  190. qmgr      fifo  n       -       n       300     1       qmgr
  191. #qmgr     fifo  n       -       -       300     1       oqmgr
  192. tlsmgr    unix  -       -       n       1000?   1       tlsmgr
  193. rewrite   unix  -       -       n       -       -       trivial-rewrite
  194. bounce    unix  -       -       n       -       0       bounce
  195. defer     unix  -       -       n       -       0       bounce
  196. trace     unix  -       -       n       -       0       bounce
  197. verify    unix  -       -       n       -       1       verify
  198. flush     unix  n       -       n       1000?   0       flush
  199. proxymap  unix  -       -       n       -       -       proxymap
  200. smtp      unix  -       -       n       -       -       smtp
  201. # When relaying mail as backup MX, disable fallback_relay to avoid MX loops
  202. relay     unix  -       -       n       -       -       smtp
  203.         -o fallback_relay=
  204. #       -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
  205. showq     unix  n       -       n       -       -       showq
  206. error     unix  -       -       n       -       -       error
  207. discard   unix  -       -       n       -       -       discard
  208. local     unix  -       n       n       -       -       local
  209. virtual   unix  -       n       n       -       -       virtual
  210. lmtp      unix  -       -       n       -       -       lmtp
  211. anvil     unix  -       -       n       -       1       anvil
  212. scache    unix    -   -  n -        1       scache
  213. #
  214. # ====================================================================
  215. # Interfaces to non-Postfix software. Be sure to examine the manual
  216. # pages of the non-Postfix software to find out what options it wants.
  217. #
  218. # Many of the following services use the Postfix pipe(8) delivery
  219. # agent.  See the pipe(8) man page for information about ${recipient}
  220. # and other message envelope options.
  221. # ====================================================================
  222. #
  223. # maildrop. See the Postfix MAILDROP_README file for details.
  224. # Also specify in main.cf: maildrop_destination_recipient_limit=1
  225. #
  226. maildrop  unix  -       n       n       -       -       pipe
  227.   flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient}
  228. #
  229. # See the Postfix UUCP_README file for configuration details.
  230. #
  231. uucp      unix  -       n       n       -       -       pipe
  232.   flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
  233. #
  234. # Other external delivery methods.
  235. #
  236. ifmail    unix  -       n       n       -       -       pipe
  237.   flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
  238. bsmtp     unix  -       n       n       -       -       pipe
  239.   flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient
  240. scalemail-backend unix  - n        n       -      2     pipe
  241.   flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension}
  242. mailman   unix  -       n       n       -       -       pipe
  243.   flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
  244.   ${nexthop} ${user}
  245.  
  246.  
  247.  
  248.  
  249.  
  250. ############################
  251. pwcheck_method: authdaemond
  252. authdaemond_path: /var/run/courier/authdaemon/socket
  253. log_level: 3
  254. mech_list: login plain

Update the Post

Either update this post and resubmit it with changes, or make a new post.

You may also comment on this post.

update paste below
details of the post (optional)

Note: Only the paste content is required, though the following information can be useful to others.

Save name / title?

(space separated, optional)



Please note that information posted here will expire by default in one month. If you do not want it to expire, please set the expiry time above. If it is set to expire, web search engines will not be allowed to index it prior to it expiring. Items that are not marked to expire will be indexable by search engines. Be careful with your passwords. All illegal activities will be reported and any information will be handed over to the authorities, so be good.

comments powered by Disqus
worth-right
worth-right
worth-right