<!DOCTYPE html>
<html data-lt-installed="true">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body style="padding-bottom: 1px;">
<br>
<br>
<br>
<div class="moz-cite-prefix">On 06/11/2024 09:58, Matus UHLAR -
fantomas wrote:<br>
</div>
<blockquote type="cite" cite="mid:Zys9utnZcCFfRJZ8@fantomas.sk">
<blockquote type="cite">
<blockquote type="cite">On 05.11.24 16:14, Nick Howitt wrote:
<br>
<blockquote type="cite">Sorry, but I am trying to get
something going that was based on the ClearOS configs but
I've copied over too much and then mixed it with internet
references.
<br>
<br>
127.0.0.1:10026 looks like a ClearOS thing and is not
needed.
<br>
<br>
The submission service still exists, so I should:
<br>
1 - get rid of the 127.0.0.1:10026 but from master.cf.
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
I guess the "but" does not belong there
<br>
</blockquote>
LOL. Typo for bit.<br>
<blockquote type="cite" cite="mid:Zys9utnZcCFfRJZ8@fantomas.sk">
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">2 - in master.cf change the submission
line "-o content_filter=smtp-amavis:[127.0.0.1]:10024" to
"-o content_filter=smtp-amavis:[127.0.0.1]:10028" (just to
avoid 10026 for now)
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
I guess you mean "main.cf here"
<br>
</blockquote>
No. master.cf:<br>
<blockquote>submission inet n - y - -
smtpd<br>
-o syslog_name=postfix/submission<br>
-o smtpd_tls_security_level=encrypt<br>
-o smtpd_sasl_auth_enable=yes<br>
-o smtpd_tls_auth_only=yes<br>
-o smtpd_reject_unlisted_recipient=no<br>
-o smtpd_sasl_type=dovecot<br>
-o smtpd_sasl_path=private/auth<br>
-o content_filter=smtp-amavis:[127.0.0.1]:10028<br>
</blockquote>
<br>
<blockquote type="cite" cite="mid:Zys9utnZcCFfRJZ8@fantomas.sk">
<br>
<blockquote type="cite">
<blockquote type="cite">
<blockquote type="cite">3 - in amavis 50-user add:
<br>
$inet_socket_port = [10024,10028]; # listen on two
ports
<br>
$interface_policy{'10028'} = 'ORIGINATING';
<br>
<br>
And that should do it?
<br>
</blockquote>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">On 06/11/2024 09:28, Matus UHLAR -
fantomas wrote:
<br>
<blockquote type="cite">this should do it,
<br>
<br>
I still wonder how do you send mail to amavis?
<br>
<br>
is content_filter defined in main.cf ?
<br>
</blockquote>
</blockquote>
<br>
On 06.11.24 09:36, Nick Howitt wrote:
<br>
<blockquote type="cite">Yes
<br>
</blockquote>
<br>
<blockquote type="cite">
<blockquote type="cite">is content_filter defined in master.cf
services submission and submissions (smtps)?
<br>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">For submission see 2 above. I don't use
smtps. I know it is in common use, but I don't believe it was
ever recognised as a standard.
<br>
</blockquote>
<br>
<blockquote type="cite">
<blockquote type="cite">I guess you don't need to define it in
127.0.0.1:10025 as this is where mail returns from
content_filter.
<br>
</blockquote>
</blockquote>
<br>
<blockquote type="cite">That is already defined and receives
amavis from port 10024. Now it also gets amavis from port 10028.
<br>
</blockquote>
<br>
<br>
do I guess your 127.0.0.1:10025 now has
<br>
<br>
-o content_filter=
<br>
<br>
like mine, so it does not feed the message back to amavis
<br>
<br>
</blockquote>
Yes, as posted somewhere earlier:<br>
<blockquote>127.0.0.1:10025 inet n - n - - smtpd<br>
-o content_filter=<br>
-o local_recipient_maps=<br>
-o relay_recipient_maps=<br>
-o smtpd_restriction_classes=<br>
-o smtpd_client_restrictions=<br>
-o smtpd_helo_restrictions=<br>
-o smtpd_sender_restrictions=<br>
-o smtpd_recipient_restrictions=permit_mynetworks,reject<br>
-o mynetworks=127.0.0.0/8<br>
-o strict_rfc821_envelopes=yes<br>
-o smtpd_error_sleep_time=0<br>
-o smtpd_soft_error_limit=1001<br>
-o smtpd_hard_error_limit=1000<br>
-o
receive_override_options=no_header_body_checks,no_unknown_recipient_checks<br>
</blockquote>
<br>
</body>
<lt-container></lt-container>
</html>