Re: how configure two instances of postfix...

From: Miguel Angel Tormo (no email)
Date: Mon Apr 02 2007 - 08:31:11 EDT

  • Next message: Richard Foley: "Re: domain (real + virtual) mapping question"

    El Lunes 02 Abril 2007 14:17, Fernando Martínez escribió:
    > Hi list,
    > I have two instances of postfix running on my machine but I have some
    > doubts about how they have to be their behavior.
    >
    > I want one instance for inbound mail and the other one to outbound mail.
    >
    > postfixin -> inbound mail:
    > I have this instance receiving mail from anywhere. But how can I do
    > to avoid this instance send mail?
    smtpd_recipient_restrictions =
    permit_mynetworks
    reject_unauth_destination

    >
    > postfixout -> outbound mail:
    > I have this instance sending mail with authentification. But how can I
    > do to avoid this instance receive mail?
    What you have in your conf should work.

    >
    > Do the two instances have to work so?
    >
    > thanks in advance
    >
    > postconf -n of postfixin
    > alias_database = hash:/etc/aliases
    > alias_maps = hash:/etc/aliases
    > alternate_config_directories = /etc/postfix-out
    > broken_sasl_auth_clients = yes
    > command_directory = /usr/sbin
    > config_directory = /etc/postfix
    > daemon_directory = /usr/libexec/postfix
    > debug_peer_level = 2
    > html_directory = no
    > inet_interfaces = www.example.com
    > mail_owner = postfix
    > mailq_path = /usr/bin/mailq.postfix
    > manpage_directory = /usr/share/man
    > mydestination = /etc/postfix/local-host-names
    > mynetworks = 127.0.0.0/8
    > myorigin = www.example.com
    > newaliases_path = /usr/bin/newaliases.postfix
    > queue_directory = /var/spool/postfix
    > readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    > sample_directory = /usr/share/doc/postfix-2.3.3/samples
    > sendmail_path = /usr/sbin/sendmail.postfix
    > setgid_group = postdrop
    > smtp_tls_note_starttls_offer = yes
    > smtp_use_tls = yes
    > smtpd_recipient_restrictions =
    > permit_sasl_authenticated,permit_mynetworks, reject
    > smtpd_sasl_auth_enable = yes
    > smtpd_sasl_local_domain =
    > smtpd_sasl_security_options = noanonymous
    > smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    > smtpd_tls_auth_only = no
    > smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    > smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    > smtpd_tls_loglevel = 1
    > smtpd_tls_received_header = yes
    > smtpd_tls_session_cache_timeout = 3600s
    > smtpd_use_tls = yes
    > syslog_facility = local1
    > syslog_name = postfixin
    > tls_random_source = dev:/dev/urandom
    > unknown_local_recipient_reject_code = 550
    >
    >
    > postconf -n of postfixout
    >
    > alias_database = hash:/etc/aliases
    > alias_maps = hash:/etc/aliases
    > command_directory = /usr/sbin
    > config_directory = /etc/postfix
    > daemon_directory = /usr/libexec/postfix
    > debug_peer_level = 2
    > html_directory = no
    > inet_interfaces = mail.example.com
    > mail_owner = postfix
    > mailq_path = /usr/bin/mailq.postfix
    > manpage_directory = /usr/share/man
    > mydestination = /etc/postfix/local-host-names
    > mynetworks = 127.0.0.0/8 192.168.3.0/24
    > myorigin = www.example.com
    > newaliases_path = /usr/bin/newaliases.postfix
    > queue_directory = /var/spool/postfix
    > readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
    > sample_directory = /usr/share/doc/postfix-2.3.3/samples
    > sendmail_path = /usr/sbin/sendmail.postfix
    > setgid_group = postdrop
    > smtp_tls_note_starttls_offer = yes
    > smtp_use_tls = yes
    > smtpd_recipient_restrictions = permit_sasl_authenticated, reject
    > smtpd_sasl_auth_enable = yes
    > smtpd_sasl_local_domain =
    > smtpd_sasl_security_options = noanonymous
    > smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
    > smtpd_tls_auth_only = no
    > smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
    > smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
    > smtpd_tls_loglevel = 1
    > smtpd_tls_received_header = yes
    > smtpd_tls_session_cache_timeout = 3600s
    > smtpd_use_tls = yes
    > syslog_facility = local2
    > syslog_name = postfixout
    > tls_random_source = dev:/dev/urandom
    > unknown_local_recipient_reject_code = 550
    >


  • Next message: Richard Foley: "Re: domain (real + virtual) mapping question"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD