Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
mailsystem [2015/01/20 15:04] – brot | mailsystem [2016/08/09 08:15] (current) – [Konfiguration] brot | ||
---|---|---|---|
Line 51: | Line 51: | ||
- exit | - exit | ||
- echo "user: user" >> / | - echo "user: user" >> / | ||
- | - postalias | + | - postmap |
- eintragen " | - eintragen " | ||
- " | - " | ||
Line 101: | Line 101: | ||
=== Postfix === | === Postfix === | ||
- | <file bash / | ||
- | # | ||
- | # Postfix master process configuration file. For details on the format | ||
- | # of the file, see the master(5) manual page (command: "man 5 master" | ||
- | # | ||
- | # Do not forget to execute " | ||
- | # | ||
- | # ========================================================================== | ||
- | # service type private unpriv | ||
- | # | ||
- | # ========================================================================== | ||
- | #smtp inet n | ||
- | smtp inet n | ||
- | #submission inet n | ||
- | # -o smtpd_tls_security_level=encrypt | ||
- | # -o smtpd_sasl_auth_enable=yes | ||
- | # -o smtpd_client_restrictions=permit_sasl_authenticated, | ||
- | # -o milter_macro_daemon_name=ORIGINATING | ||
- | # | ||
- | smtps | ||
- | # -o smtpd_tls_wrappermode=yes | ||
- | # -o smtpd_sasl_auth_enable=yes | ||
- | # -o smtpd_client_restrictions=permit_sasl_authenticated, | ||
- | # -o milter_macro_daemon_name=ORIGINATING | ||
- | #628 inet n | ||
- | pickup | ||
- | cleanup | ||
- | qmgr fifo n | ||
- | #qmgr | ||
- | tlsmgr | ||
- | rewrite | ||
- | bounce | ||
- | defer | ||
- | trace | ||
- | verify | ||
- | flush | ||
- | proxymap | ||
- | proxywrite unix - | ||
- | smtp unix - | ||
- | # When relaying mail as backup MX, disable fallback_relay to avoid MX loops | ||
- | relay | ||
- | -o smtp_fallback_relay= | ||
- | # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 | ||
- | showq | ||
- | error | ||
- | retry | ||
- | discard | ||
- | local | ||
- | virtual | ||
- | lmtp unix - | ||
- | anvil | ||
- | scache | ||
- | # | ||
- | # ==================================================================== | ||
- | # Interfaces to non-Postfix software. Be sure to examine the manual | ||
- | # pages of the non-Postfix software to find out what options it wants. | ||
- | # | ||
- | # Many of the following services use the Postfix pipe(8) delivery | ||
- | # agent. | ||
- | # and other message envelope options. | ||
- | # ==================================================================== | ||
- | # | ||
- | # maildrop. See the Postfix MAILDROP_README file for details. | ||
- | # Also specify in main.cf: maildrop_destination_recipient_limit=1 | ||
- | # | ||
- | # | ||
- | # flags=DRhu user=vmail argv=/ | ||
- | # | ||
- | # ==================================================================== | ||
- | # | ||
- | # The Cyrus deliver program has changed incompatibly, | ||
- | # | ||
- | #old-cyrus unix - | ||
- | # flags=R user=cyrus argv=/ | ||
- | # | ||
- | # ==================================================================== | ||
- | # | ||
- | # Cyrus 2.1.5 (Amos Gouaux) | ||
- | # Also specify in main.cf: cyrus_destination_recipient_limit=1 | ||
- | # | ||
- | # | ||
- | # user=cyrus argv=/ | ||
- | # | ||
- | # ==================================================================== | ||
- | # | ||
- | # See the Postfix UUCP_README file for configuration details. | ||
- | # | ||
- | #uucp unix - | ||
- | # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) | ||
- | # | ||
- | # ==================================================================== | ||
- | # | ||
- | # Other external delivery methods. | ||
- | # | ||
- | # | ||
- | # flags=F user=ftn argv=/ | ||
- | # | ||
- | # | ||
- | # flags=Fq. user=bsmtp argv=/ | ||
- | # | ||
- | # | ||
- | # flags=R user=scalemail argv=/ | ||
- | # ${nexthop} ${user} ${extension} | ||
- | # | ||
- | # | ||
- | # flags=FR user=list argv=/ | ||
- | # ${nexthop} ${user} | ||
- | |||
- | # | ||
- | # user=filter argv=/ | ||
- | |||
- | # =================== | ||
- | # amavisd setup | ||
- | |||
- | amavisfeed unix - | ||
- | -o lmtp_data_done_timeout=1200 | ||
- | -o lmtp_send_xforward_command=yes | ||
- | -o disable_dns_lookups=yes | ||
- | -o max_use=20 | ||
- | |||
- | 127.0.0.1: | ||
- | -o content_filter= | ||
- | -o smtpd_delay_reject=no | ||
- | -o smtpd_client_restrictions=permit_mynetworks, | ||
- | -o smtpd_helo_restrictions= | ||
- | -o smtpd_sender_restrictions= | ||
- | -o smtpd_recipient_restrictions=permit_mynetworks, | ||
- | -o smtpd_data_restrictions=reject_unauth_pipelining | ||
- | -o smtpd_end_of_data_restrictions= | ||
- | -o smtpd_restriction_classes= | ||
- | -o mynetworks=127.0.0.0/ | ||
- | -o smtpd_error_sleep_time=0 | ||
- | -o smtpd_soft_error_limit=1001 | ||
- | -o smtpd_hard_error_limit=1000 | ||
- | -o smtpd_client_connection_count_limit=0 | ||
- | -o smtpd_client_connection_rate_limit=0 | ||
- | -o receive_override_options=no_header_body_checks, | ||
- | -o local_header_rewrite_clients= | ||
- | -o smtpd_tls_security_level=none | ||
- | </ | ||
- | |||
- | |||
<file bash / | <file bash / | ||
# Global Postfix configuration file. This file lists only a subset | # Global Postfix configuration file. This file lists only a subset | ||
Line 356: | Line 214: | ||
# Note: you need to stop/start Postfix when this parameter changes. | # Note: you need to stop/start Postfix when this parameter changes. | ||
# | # | ||
- | #inet_interfaces = all | + | |
- | #inet_interfaces = $myhostname | + | #brot |
- | inet_interfaces = $myhostname, | + | # - since this is a vm, we can only listen on local ips |
- | # | + | inet_interfaces = all |
# The proxy_interfaces parameter specifies the network interface | # The proxy_interfaces parameter specifies the network interface | ||
Line 406: | Line 265: | ||
# | # | ||
# | # | ||
- | mydestination = $myhostname, | + | mydestination = $myhostname, |
# REJECTING MAIL FOR UNKNOWN LOCAL USERS | # REJECTING MAIL FOR UNKNOWN LOCAL USERS | ||
Line 833: | Line 692: | ||
# | # | ||
debugger_command = | debugger_command = | ||
- | PATH=/ | + | PATH=/ |
- | ddd $daemon_directory/ | + | |
# If you can't use X, use this to capture the call stack when a | # If you can't use X, use this to capture the call stack when a | ||
Line 841: | Line 700: | ||
# | # | ||
# debugger_command = | # debugger_command = | ||
- | # | + | # |
- | # echo where) | gdb $daemon_directory/ | + | # |
- | # | + | # |
# | # | ||
# Another possibility is to run gdb under a detached screen session. | # Another possibility is to run gdb under a detached screen session. | ||
Line 851: | Line 710: | ||
# | # | ||
# debugger_command = | # debugger_command = | ||
- | # | + | # |
- | # -dmS $process_name gdb $daemon_directory/ | + | # |
- | # | + | # |
# INSTALL-TIME CONFIGURATION INFORMATION | # INSTALL-TIME CONFIGURATION INFORMATION | ||
Line 915: | Line 774: | ||
smtpd_tls_security_level = may | smtpd_tls_security_level = may | ||
smtpd_tls_auth_only = yes | smtpd_tls_auth_only = yes | ||
+ | |||
+ | #new certs 24.04.2014 | ||
+ | # | ||
+ | # | ||
+ | |||
+ | #new certs minad_selfsigned_v3 25.04 | ||
+ | # | ||
+ | # | ||
#new certs selfsigned without ca 13.08 | #new certs selfsigned without ca 13.08 | ||
Line 945: | Line 812: | ||
- | # default type for the alias db, postalias | + | # default type for the alias db is now postmap |
default_database_type = btree | default_database_type = btree | ||
Line 953: | Line 820: | ||
# since we have new domains, we need to help postfix to sort the mail | # since we have new domains, we need to help postfix to sort the mail | ||
# | # | ||
- | virtual_alias_domains = mail.echorulez.de, | + | |
+ | #virtual_alias_domains = mail.echorulez.de, | ||
+ | |||
+ | #phil server backup | ||
+ | virtual_alias_domains = mail.echorulez.de, | ||
# where to put mails | # where to put mails | ||
virtual_alias_maps = btree:/ | virtual_alias_maps = btree:/ | ||
+ | |||
+ | # | ||
+ | # | ||
# also, we need to tell who owns what domain | # also, we need to tell who owns what domain | ||
smtpd_sender_login_maps = btree:/ | smtpd_sender_login_maps = btree:/ | ||
+ | |||
+ | # | ||
+ | # we are cool now, so we have to sign mails | ||
+ | # | ||
+ | smtpd_milters | ||
+ | non_smtpd_milters = unix:/ | ||
</ | </ | ||
+ | |||
+ | <file bash / | ||
+ | # | ||
+ | # Postfix master process configuration file. For details on the format | ||
+ | # of the file, see the master(5) manual page (command: "man 5 master" | ||
+ | # | ||
+ | # Do not forget to execute " | ||
+ | # | ||
+ | # ========================================================================== | ||
+ | # service type private unpriv | ||
+ | # | ||
+ | # ========================================================================== | ||
+ | #smtp inet n | ||
+ | smtp inet n | ||
+ | #submission inet n | ||
+ | # -o smtpd_tls_security_level=encrypt | ||
+ | # -o smtpd_sasl_auth_enable=yes | ||
+ | # -o smtpd_client_restrictions=permit_sasl_authenticated, | ||
+ | # -o milter_macro_daemon_name=ORIGINATING | ||
+ | # | ||
+ | smtps | ||
+ | # -o smtpd_tls_wrappermode=yes | ||
+ | # -o smtpd_sasl_auth_enable=yes | ||
+ | # -o smtpd_client_restrictions=permit_sasl_authenticated, | ||
+ | # -o milter_macro_daemon_name=ORIGINATING | ||
+ | #628 inet n | ||
+ | pickup | ||
+ | cleanup | ||
+ | qmgr fifo n | ||
+ | #qmgr | ||
+ | tlsmgr | ||
+ | rewrite | ||
+ | bounce | ||
+ | defer | ||
+ | trace | ||
+ | verify | ||
+ | flush | ||
+ | proxymap | ||
+ | proxywrite unix - | ||
+ | smtp unix - | ||
+ | # When relaying mail as backup MX, disable fallback_relay to avoid MX loops | ||
+ | relay | ||
+ | -o smtp_fallback_relay= | ||
+ | # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 | ||
+ | showq | ||
+ | error | ||
+ | retry | ||
+ | discard | ||
+ | local | ||
+ | virtual | ||
+ | lmtp unix - | ||
+ | anvil | ||
+ | scache | ||
+ | # | ||
+ | # ==================================================================== | ||
+ | # Interfaces to non-Postfix software. Be sure to examine the manual | ||
+ | # pages of the non-Postfix software to find out what options it wants. | ||
+ | # | ||
+ | # Many of the following services use the Postfix pipe(8) delivery | ||
+ | # agent. | ||
+ | # and other message envelope options. | ||
+ | # ==================================================================== | ||
+ | # | ||
+ | # maildrop. See the Postfix MAILDROP_README file for details. | ||
+ | # Also specify in main.cf: maildrop_destination_recipient_limit=1 | ||
+ | # | ||
+ | # | ||
+ | # flags=DRhu user=vmail argv=/ | ||
+ | # | ||
+ | # ==================================================================== | ||
+ | # | ||
+ | # The Cyrus deliver program has changed incompatibly, | ||
+ | # | ||
+ | #old-cyrus unix - | ||
+ | # flags=R user=cyrus argv=/ | ||
+ | # | ||
+ | # ==================================================================== | ||
+ | # | ||
+ | # Cyrus 2.1.5 (Amos Gouaux) | ||
+ | # Also specify in main.cf: cyrus_destination_recipient_limit=1 | ||
+ | # | ||
+ | # | ||
+ | # user=cyrus argv=/ | ||
+ | # | ||
+ | # ==================================================================== | ||
+ | # | ||
+ | # See the Postfix UUCP_README file for configuration details. | ||
+ | # | ||
+ | #uucp unix - | ||
+ | # flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) | ||
+ | # | ||
+ | # ==================================================================== | ||
+ | # | ||
+ | # Other external delivery methods. | ||
+ | # | ||
+ | # | ||
+ | # flags=F user=ftn argv=/ | ||
+ | # | ||
+ | # | ||
+ | # flags=Fq. user=bsmtp argv=/ | ||
+ | # | ||
+ | # | ||
+ | # flags=R user=scalemail argv=/ | ||
+ | # ${nexthop} ${user} ${extension} | ||
+ | # | ||
+ | # | ||
+ | # flags=FR user=list argv=/ | ||
+ | # ${nexthop} ${user} | ||
+ | |||
+ | # | ||
+ | # user=filter argv=/ | ||
+ | |||
+ | # =================== | ||
+ | # amavisd setup | ||
+ | |||
+ | amavisfeed unix - | ||
+ | -o lmtp_data_done_timeout=1200 | ||
+ | -o lmtp_send_xforward_command=yes | ||
+ | -o disable_dns_lookups=yes | ||
+ | -o max_use=20 | ||
+ | |||
+ | 127.0.0.1: | ||
+ | -o content_filter= | ||
+ | -o smtpd_delay_reject=no | ||
+ | -o smtpd_client_restrictions=permit_mynetworks, | ||
+ | -o smtpd_helo_restrictions= | ||
+ | -o smtpd_sender_restrictions= | ||
+ | -o smtpd_recipient_restrictions=permit_mynetworks, | ||
+ | -o smtpd_data_restrictions=reject_unauth_pipelining | ||
+ | -o smtpd_end_of_data_restrictions= | ||
+ | -o smtpd_restriction_classes= | ||
+ | -o mynetworks=127.0.0.0/ | ||
+ | -o smtpd_error_sleep_time=0 | ||
+ | -o smtpd_soft_error_limit=1001 | ||
+ | -o smtpd_hard_error_limit=1000 | ||
+ | -o smtpd_client_connection_count_limit=0 | ||
+ | -o smtpd_client_connection_rate_limit=0 | ||
+ | -o receive_override_options=no_header_body_checks, | ||
+ | -o local_header_rewrite_clients= | ||
+ | -o smtpd_tls_security_level=none | ||
+ | </ | ||
+ | |||
=== Dovecot === | === Dovecot === |