master.cf.common.erb 1.58 KB
Newer Older
Raphaël Pinson's avatar
Raphaël Pinson committed
1
<% if @use_amavisd %>
2
amavis unix - - <%= @jail %> - <%= @amavis_procs %> smtp
3
4
5
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes

Angel L. Mateo's avatar
Angel L. Mateo committed
6
127.0.0.1:10025 inet n - <%= @jail %> - - smtpd
7
8
9
10
11
12
13
14
15
16
17
        -o content_filter=
        -o local_recipient_maps=
        -o relay_recipient_maps=
        -o smtpd_restriction_classes=
        -o smtpd_client_restrictions=
        -o smtpd_helo_restrictions=
        -o smtpd_sender_restrictions=
        -o smtpd_recipient_restrictions=permit_mynetworks,reject
        -o mynetworks=127.0.0.0/8
        -o strict_rfc821_envelopes=yes
        -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks
farlerac's avatar
farlerac committed
18
        -o smtp_bind_address=127.0.0.1
19
<% end -%>
Raphaël Pinson's avatar
Raphaël Pinson committed
20
<% if @use_dovecot_lda %>
21
dovecot   unix  -       n       n       -       -       pipe
Raphaël Pinson's avatar
Raphaël Pinson committed
22
  flags=DRhu user=<%= @mail_user %>:<%= @mail_user %> argv=/usr/lib/dovecot/deliver -d ${recipient}
23
<% end -%>
Raphaël Pinson's avatar
Raphaël Pinson committed
24
<% if @use_schleuder %>
25
<% if @use_schleuder == 2 %>
26
27
schleuder  unix  -       n       n       -       -       pipe
  flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
28
29
30
31
<% else %>
schleuder  unix  -       n       n       -       -       pipe
  flags=DRhu user=schleuder argv=/usr/bin/schleuder work ${recipient}
<% end -%>
32
<% end -%>
Raphaël Pinson's avatar
Raphaël Pinson committed
33
<% if @use_sympa %>
34
35
36
37
38
sympa        unix  -       n       n       -       -       pipe
  flags=R user=sympa argv=/usr/lib/sympa/bin/queue ${recipient}
sympabounce  unix  -       n       n       -       -       pipe
  flags=R user=sympa argv=/usr/lib/sympa/bin/bouncequeue ${user}
<% end -%>
39
40
41
<% if @master_entries %>
<%= @master_entries.join("\n") %>
<% end -%>