master.cf.common.erb 1.39 KB
Newer Older
Raphaël Pinson's avatar
Raphaël Pinson committed
1
<% if @use_amavisd %>
Angel L. Mateo's avatar
Angel L. Mateo committed
2
amavis unix - - <%= @jail %> - 2 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 18 19
        -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
        -o smtpd_bind_address=127.0.0.1
<% 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 26 27
schleuder  unix  -       n       n       -       -       pipe
  flags=DRhu user=schleuder argv=/usr/bin/schleuder ${user}
<% end -%>
Raphaël Pinson's avatar
Raphaël Pinson committed
28
<% if @use_sympa %>
29 30 31 32 33
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 -%>
34 35 36
<% if @master_entries %>
<%= @master_entries.join("\n") %>
<% end -%>