help me understand mysql-verify_recipients.cf

Discussion in 'Installation/Configuration' started by liquid, Jan 25, 2026.

  1. DarioL

    DarioL Member

    My value (the defaults value) are:
    Code:
    address_verify_transport_maps = static:smtp:[127.0.0.1]:10025
    address_verify_virtual_transport = smtp:[127.0.0.1]:10025
    
     
  2. liquid

    liquid Member

    Yeah, now I testing
    Code:
    address_verify_virtual_transport = smtp-int:[127.0.0.1]:10025
    address_verify_transport_maps = static:smtp-int:[127.0.0.1]:10025
    
     
  3. liquid

    liquid Member

    It turns out that I don't need to change main.cf at all. I reverted the settings back to the default values and left only the edited master.cf. So far, everything works for me.
    It just required creating a new SMTP client and doing a bind on 127.0.0.1.
    Code:
    smtp      unix  -       -       y       -       -       smtp
            -o smtp_bind_address6=myipv6ip 4 mail server
            -o smtp_bind_address=myipv4ip 4 mail server
    smtp-int      unix  -       -       y       -       -       smtp
            -o smtp_bind_address=127.0.0.1
     
  4. liquid

    liquid Member

    The last configuration I'm testing, and it seems the most stable so far, is that I only modified main.cf, where I specified the bind IP addresses, and left master.cf in its default state, so no bind ip adress, no updated my network for port 10025, 10027.

    main.cf
    Code:
    smtp_bind_address = myipv4ip 4 mail server
    smtp_bind_address6 = myipv6ip 4 mail server
    master.cf

    Code:
    smtp      unix  -       -       y       -       -       smtp
    
    # Data returning from Amavis content filtering, defaults to incomming amavis port(10024) +1
    127.0.0.1:10025 inet n - n - - smtpd
            -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 smtpd_end_of_data_restrictions=
            -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 smtp_send_xforward_command=yes
            -o smtp_dns_support_level=disabled
            -o address_verify_virtual_transport=$virtual_transport
            -o address_verify_transport_maps=$transport_maps
    
    
    # Data returning from Amavis DKIM signing, defaults to incomming amavis port(10026) +1
    127.0.0.1:10027 inet n - n - - smtpd
            -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 smtpd_end_of_data_restrictions=
            -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 smtp_send_xforward_command=yes
            -o smtp_dns_support_level=disabled
            -o address_verify_virtual_transport=$virtual_transport
            -o address_verify_transport_maps=$transport_maps
            -o milter_default_action=accept
            -o milter_macro_daemon_name=ORIGINATING
    

    When I look at the source of the mails I see that the outgoing IP address is the one I need.
    And I don't see any known errors in the log.
    And tcpdump only shows communication from localhost, 127.0.0.1.
     
  5. DarioL

    DarioL Member

    I also restored the master.cf file as originally and used "smtp_bind_address" in main.cf and everything works correctly.
    So if you need to bind outgoing email to some specific IP this is the right way.
     

Share This Page