On 09/13/2019 09:01 PM, Edgar Pettijohn wrote:
Need to add rules to match authenticated users.

match auth from any for any action ...
match auth from any for domain <domains> action ...

Thanks Edgar, it solved the issue!

It was the modification based on your suggestion:

                                helo-src        <hostnames_inet>
action relay_to_inet_subm relay \
                                helo-src        <hostnames_inet>
action relay_to_inet_subms relay \ helo-src <hostnames_inet>
action relay_to_local           relay

# host smtp+tls://la...@smtp.libreware.info:25 \
#                               auth            <credentials>

# local
match     for           local                                           \
          from          local                                           \
        action          deliver_to_local
match     for           any                                             \
          from          local                                           \
          tag           lmtp_local                                      \
        action          relay_to_local

# inet
match     auth                                                          \
          from          any                                             \
          for           any                                             \
          tag           smtp_server_starttls                            \
        action          relay_to_inet_smtp
match     auth                                                          \
          from          any                                             \
          for           any                                             \
          tag           smtp_submission_starttls                        \
        action          relay_to_inet_subm
match     auth                                                          \
          from          any                                             \
          for           any                                             \
          tag           smtps_submission                                \
        action          relay_to_inet_subms
match     auth                                                          \
          from          any                                             \
          for           domain                          <domains>       \
        action          deliver_to_inet

--------------------------------------------------------------------

Test - mar...@libreware.info -> marcio_si...@risup.net

* Account '/var/mail/marcio': Connecting to SMTP server: smtp.libreware.info:587...
*** smtp.libreware.info:587: connection failed (No route to host).
[22:35:00] SMTP< 220 dusseldorf.libreware.info ESMTP OpenSMTPD
[22:35:00] ESMTP> EHLO smtp.libreware.info
[22:35:00] ESMTP< 250-dusseldorf.libreware.info Hello smtp.libreware.info [public_ipv4], pleased to meet you
[22:35:00] ESMTP< 250-8BITMIME
[22:35:00] ESMTP< 250-ENHANCEDSTATUSCODES
[22:35:00] ESMTP< 250-SIZE 36700160
[22:35:00] ESMTP< 250-DSN
[22:35:00] ESMTP< 250-STARTTLS
[22:35:00] ESMTP< 250 HELP
[22:35:00] ESMTP> STARTTLS
[22:35:00] ESMTP< 220 2.0.0: Ready to start TLS
[22:35:01] ESMTP> EHLO smtp.libreware.info
[22:35:01] ESMTP< 250-dusseldorf.libreware.info Hello smtp.libreware.info [public_ipv4], pleased to meet you
[22:35:01] ESMTP< 250-8BITMIME
[22:35:01] ESMTP< 250-ENHANCEDSTATUSCODES
[22:35:01] ESMTP< 250-SIZE 36700160
[22:35:01] ESMTP< 250-DSN
[22:35:01] ESMTP< 250-AUTH PLAIN LOGIN
[22:35:01] ESMTP< 250 HELP
[22:35:01] ESMTP> [AUTH PLAIN]
[22:35:01] ESMTP< 235 2.0.0: Authentication succeeded
[22:35:02] ESMTP> MAIL FROM:<mar...@libreware.info> SIZE=991
[22:35:02] SMTP< 250 2.0.0: Ok
[22:35:02] SMTP> RCPT TO:<marcio_si...@riseup.net>
[22:35:02] SMTP< 250 2.1.5 Destination address valid: Recipient ok
[22:35:02] SMTP> DATA
[22:35:02] SMTP< 354 Enter mail, end with "." on a line by itself
[22:35:02] SMTP> . (EOM)
[22:35:03] SMTP< 250 2.0.0: 5b99ecf6 Message accepted for delivery
* Mail sent successfully.
[22:35:03] SMTP> QUIT
[22:35:03] SMTP< 221 2.0.0: Bye

Reply via email to