getting loops on multi-instance configuration

From: Gerardo Herzig (no email)
Date: Thu Mar 04 2010 - 16:54:56 EST

  • Next message: Clayton Keller: "Re: Dual Transports"

    Hi all. Im getting a loop in my postfix-multi configuration, and cant
    see what is wrong. I try to follow the README [1] as close as i could.

    Here is a sample of /var/log/mail after a email is received:
    Mar 4 18:43:28 vmailmulti postfix-in/smtpd[28733]: connect from
    mail.fmed.uba.ar[157.92.152.1]
    Mar 4 18:43:28 vmailmulti postfix-in/smtpd[28733]: 4DD09D81D1:
    client=mail.fmed.uba.ar[157.92.152.1]
    Mar 4 18:43:28 vmailmulti postfix-in/cleanup[28735]: 4DD09D81D1:
    message-id=<>
    Mar 4 18:43:28 vmailmulti postfix-in/qmgr[28731]: 4DD09D81D1:
    from=<>, size=726, nrcpt=1 (ueue active)
    Mar 4 18:43:28 vmailmulti postfix-in/smtpd[28733]: disconnect from
    mail.fmed.uba.ar[157.92.152.1]
    Mar 4 18:43:32 vmailmulti postfix-out/smtpd[28737]: connect from
    localhost[127.0.0.1]
    Mar 4 18:43:32 vmailmulti postfix-out/smtpd[28737]: 9EFA2D81D2:
    client=mail.fmed.uba.ar[157.92.152.1]
    Mar 4 18:43:32 vmailmulti postfix-out/cleanup[28739]: 9EFA2D81D2:
    message-id=<>
    Mar 4 18:43:32 vmailmulti postfix-out/smtpd[28737]: disconnect from
    localhost[127.0.0.1]
    Mar 4 18:43:32 vmailmulti postfix-out/qmgr[28668]: 9EFA2D81D2:
    from=<>, size=1398, nrcpt=1(queue active)
    Mar 4 18:43:32 vmailmulti postfix-in/smtpd[28733]: connect from
    unknown[157.92.152.62]
    Mar 4 18:43:32 vmailmulti postfix-in/smtpd[28733]: AA33AD81D3:
    client=unknown[157.92.152.62]
    Mar 4 18:43:32 vmailmulti postfix-in/cleanup[28735]: AA33AD81D3:
    message-id=<>
    Mar 4 18:43:32 vmailmulti amavis[28480]: (28480-04) Passed SPAMMY,
    [157.92.152.1] [157.92.152.105] <> ->
    <gherzig at vmail dot fmed dot uba dot ar>, Message-ID: <4B902860 dot 6060307 at fmed dot uba dot ar>,
    mail_id: x6Po8fRtlSTq, its: 6.333, size: 726, queued_as: 9EFA2D81D2, 4351 ms
    Mar 4 18:43:32 vmailmulti postfix-in/smtp[28736]: 4DD09D81D1:
    to=<>, relay=127.0.0.1127.0.0.1]:10025,
    delay=4.4, delays=0.03/0.01/0/4.4, dsn=2.0.0, status=sent (250 2.0.0 Ok,
    id=28480-04, from MA([127.0.0.1]:10026): 250 2.0.0 Ok: queued as 9EFA2D81D2)
    Mar 4 18:43:32 vmailmulti postfix-in/qmgr[28731]: 4DD09D81D1: removed
    Mar 4 18:43:32 vmailmulti postfix-in/smtpd[28733]: disconnect from
    unknown[157.92.152.62]
    Mar 4 18:43:32 vmailmulti postfix-in/qmgr[28731]: AA33AD81D3:
    from=<>, size=1599, nrcpt=1 queue active)
    Mar 4 18:43:32 vmailmulti postfix-out/smtp[28740]: 9EFA2D81D2:
    to=<>,
    relay=vmail.fmd.uba.ar[157.92.152.62]:25, delay=0.08,
    delays=0.04/0.01/0/0.02, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued s
    AA33AD81D3)
    Mar 4 18:43:32 vmailmulti postfix-out/qmgr[28668]: 9EFA2D81D2: removed
    Mar 4 18:43:36 vmailmulti postfix-out/smtpd[28737]: connect from
    localhost[127.0.0.1]
    Mar 4 18:43:36 vmailmulti postfix-out/smtpd[28737]: B8EEED81D1:
    client=unknown[157.92.152.62]
    Mar 4 18:43:36 vmailmulti postfix-out/cleanup[28739]: B8EEED81D1:
    message-id=<>
    Mar 4 18:43:36 vmailmulti postfix-out/smtpd[28737]: disconnect from
    localhost[127.0.0.1]
    Mar 4 18:43:36 vmailmulti postfix-out/qmgr[28668]: B8EEED81D1:
    from=<>, size=2097, nrcpt=1(queue active

    So, the email comes to postfix-in, it send trough amavis, and later a
    new (repeated) mail appear. It never goes to the central hub. Eventualy,
    i get

    Mar 4 18:48:17 vmailmulti postfix-out/smtp[28770]: 80A9AD814C:
    to=<>,
    relay=vmail.fmed.uba.ar[157.92.152.62]:25, delay=385,
    delays=385/0.01/0.01/0.02, dsn=4.4.0, status=deferred (host
    vmail.fmed.uba.ar[157.92.152.62] said: 454 4.4.0 Error: too many hops
    (in reply to end of DATA command))

    Here is my config files:
    /etc/postfix-in/main.cf
    soft_bounce = yes
    queue_directory = /var/spool/postfix-in
    command_directory = /usr/sbin
    daemon_directory = /usr/lib/postfix
    data_directory = /var/lib/postfix-in
    mail_owner = postfix
    inet_interfaces = all
    mydestination =
    local_recipient_maps =
    unknown_local_recipient_reject_code = 550
    alias_maps =
    alias_database =

    debug_peer_level = 2
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = maildrop
    html_directory = /usr/share/doc/packages/postfix-doc/html
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/packages/postfix-doc/samples
    readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
    master_service_disable =
    authorized_submit_users = root
    multi_instance_group = mta
    multi_instance_name = postfix-in
    local_transport = error:5.1.1 Mailbox unavaiable
    local_header_rewrite_clients =
    default_transport = smtp:[127.0.0.1]:10025
    relay_transport = $default_transport
    virtual_transport = $default_transport
    smtp_send_xforward_command = yes
    smtp_destination_recipient_limit = 1000
    smtp_data_done_timeout = 1200s
    smtpd_client_port_logging = no
    multi_instance_enable = yes
    smtpd_authorized_xclient_hosts = 127.0.0.1

    /etc/postfix-out/main.cf:
    soft_bounce = yes
    queue_directory = /var/spool/postfix-out
    command_directory = /usr/sbin
    daemon_directory = /usr/lib/postfix
    data_directory = /var/lib/postfix-out
    mail_owner = postfix
    myhostname = multi-out.fmed.uba.ar
    inet_interfaces = loopback-only
    mydestination =
    local_recipient_maps =
    unknown_local_recipient_reject_code = 550
    mynetworks_style = host
    relay_domains = vmail.fmed.uba.ar
    alias_maps =
    alias_database =
    recipient_delimiter = +

    debug_peer_level = 2
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = maildrop
    html_directory = /usr/share/doc/packages/postfix-doc/html
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/packages/postfix-doc/samples
    readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
    master_service_disable =
    authorized_submit_users = root
    multi_instance_group = mta
    multi_instance_name = postfix-out
    smtpd_authorized_xforward_hosts = $mynetworks
    smtpd_client_connection_count_limit = 0
    smtpd_client_event_limit_exceptions = $mynetworks
    smtp_bind_address = 0.0.0.0
    local_header_rewrite_clients =
    local_transport_error = error:5.1.1 Mailbox unavaiable
    smtpd_recipient_restrictions = permit_mynetworks, reject
    smtpd_timeout = 1200s
    parent_domain_matches_subdomains =
    smtpd_client_port_logging = no
    multi_instance_enable = yes

    /etc/postfix/main.cf:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/lib/postfix
    data_directory = /var/lib/postfix
    mail_owner = postfix
    unknown_local_recipient_reject_code = 550

    debug_peer_level = 2
    debugger_command =
             PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
             ddd $daemon_directory/$process_name $process_id & sleep 5
    sendmail_path = /usr/sbin/sendmail
    newaliases_path = /usr/bin/newaliases
    mailq_path = /usr/bin/mailq
    setgid_group = maildrop
    html_directory = /usr/share/doc/packages/postfix-doc/html
    manpage_directory = /usr/share/man
    sample_directory = /usr/share/doc/packages/postfix-doc/samples
    readme_directory = /usr/share/doc/packages/postfix-doc/README_FILES
    inet_protocols = all
    biff = no
    mail_spool_directory = /var/mail
    canonical_maps = hash:/etc/postfix/canonical
    virtual_alias_maps = hash:/etc/postfix/virtual
    virtual_alias_domains = hash:/etc/postfix/virtual
    relocated_maps = hash:/etc/postfix/relocated
    transport_maps = hash:/etc/postfix/transport
    sender_canonical_maps = hash:/etc/postfix/sender_canonical
    masquerade_exceptions = root
    masquerade_classes = envelope_sender, header_sender, header_recipient
    myhostname = vmailmulti.fmed.uba.ar
    delay_warning_time = 1h
    message_strip_characters = \0
    program_directory = /usr/lib/postfix
    inet_interfaces = localhost
    masquerade_domains =
    mydomain = vmail.fmed.uba.ar
    myorigin = $mydomain
    master_service_disable = inet
    mydestination =
    defer_transports =
    mynetworks_style = subnet
    disable_dns_lookups = no
    relayhost = [vmailhub.fmed.uba.ar]
    default_database_type = cdb
    indexed = ${default_database_type}:${config_directory}/
    smtp_generic_maps = ${indexed}generic
    virtual_alias_maps = ${indexed}virtual
    mailbox_command =
    mailbox_transport =
    strict_8bitmime = no
    disable_mime_output_conversion = no
    smtpd_sender_restrictions = hash:/etc/postfix/access
    smtpd_client_restrictions =
    smtpd_helo_required = no
    smtpd_helo_restrictions =
    strict_rfc821_envelopes = no
    smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
    smtp_sasl_auth_enable = no
    smtpd_sasl_auth_enable = no
    smtpd_use_tls = no
    smtp_use_tls = no
    alias_database =
    alias_maps =
    local_recipient_maps =
    mailbox_size_limit = 0
    message_size_limit = 10240000
    local_transport = error:5.1.1 Mailbox unavaiable
    multi_instance_wrapper = ${command_directory}/postmulti -p --
    multi_instance_enable = yes
    multi_instance_directories = /etc/postfix-out /etc/postfix-in

    Any hints?
    Thanks!

    Gerardo


  • Next message: Clayton Keller: "Re: Dual Transports"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD