too many hops!

From: (no name) (no email)
Date: Sun Jan 02 2005 - 17:22:01 EST

  • Next message: Julien Lesaint: "Re: too many hops!"

    I have postfix installed and running. I am now adding virus and spam
    scanning via amavisd-new.

    I have amavisd-new installed and it is listening on port 10024. I have
    installed as well spamassassin and clamd. All are working via the built
    in tests provided by all three systems. When I add to postfix's main.cf
    the following line and reload postfix I get "too many hops" in mail.log
    and then mail is not delivered.

    In main.cf I added:
    content_filter=smtp-amavis:[127.0.0.1]:10024

    I'm sure it is something quite simple to fix in the configuration of
    amavisd and postfix. Below are my main.cf and master.cf config files.
    Thanks in advance for any ideas.

    Regards,
    Nate

    #Begin main.cf
    smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no

    # appending .domain is the MUA's job.
    append_dot_mydomain = no

    # Uncomment the next line to generate "delayed mail" warnings
    #delay_warning_time = 4h

    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    myorigin = /etc/mailname
    mydestination = domains.tld
    mynetworks = 127.0.0.0/8
    mailbox_command =
    mailbox_size_limit = 0
    recipient_delimiter = +

    smtpd_recipient_restrictions =
    permit_mynetworks,reject_invalid_hostname,reject_unknown_sender_domain,reject_unauth_pipelining,reject_unknown_recipient_domain,reject_non_fqdn_sender,reject_non_fqdn_recipient,check_client_access
    mysql:/etc/postfix/pbsp.cf,reject_unauth_destination

    mailbox_transport = dbmail-smtp:
    local_recipient_maps = mysql:/etc/postfix/sql-recipients.cf

    content_filter = smtp-amavis:[127.0.0.1]:10024 #End main.cf

    #Begin master.cf
    smtp inet n - n - - smtpd
    #submission inet n - - - - smtpd
    # -o smtpd_etrn_restrictions=reject
    #628 inet n - - - - qmqpd
    pickup fifo n - - 60 1 pickup
    cleanup unix n - - - 0 cleanup
    qmgr fifo n - - 300 1 qmgr
    #qmgr fifo n - - 300 1 oqmgr
    rewrite unix - - - - - trivial-rewrite
    bounce unix - - - - 0 bounce
    defer unix - - - - 0 bounce
    trace unix - - - - 0 bounce
    verify unix - - - - 1 verify
    flush unix n - - 1000? 0 flush
    proxymap unix - - n - - proxymap
    smtp unix - - - - - smtp
    relay unix - - - - - smtp
    # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
    showq unix n - - - - showq
    error unix - - - - - error
    local unix - n n - - local
    virtual unix - n n - - virtual
    lmtp unix - - n - - lmtp
    anvil unix - - n - 1 anvil
    #
    # Interfaces to non-Postfix software. Be sure to examine the manual #
    pages of the non-Postfix software to find out what options it wants.
    #
    # maildrop. See the Postfix MAILDROP_README file for details.
    #
    dbmail-smtp unix - n n - - pipe
      flags= user=dbmail:dbmail argv=/usr/sbin/dbmail-smtp -d ${recipient} -r
    ${sender}
    maildrop unix - n n - - pipe
      flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
    uucp unix - n n - - pipe
      flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail
    ($recipient)
    ifmail unix - n n - - pipe
      flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
    bsmtp unix - n n - - pipe
      flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -d -t$nexthop -f$sender
    $recipient
    scalemail-backend unix - n n - 2 pipe
      flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store
    ${nexthop} ${user} ${extension}

    #amavisd-new integration
    smtp-amavis unix - - n - 2 smtp
        -o smtp_data_done_timeout=1200
        -o smtp_send_xforward_command=yes
        -o disable_dns_lookups=yes

    127.0.0.1:10025 inet n - n - - smtpd
        -o content_filter=smtp-amavis:[127.0.0.1]:10024
        -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 smtpd_error_sleep_time=0
        -o smtpd_soft_error_limit=1001
        -o smtpd_hard_error_limit=1000
    127.0.0.1:10025 inet n - n - - smtpd


  • Next message: Julien Lesaint: "Re: too many hops!"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD