SASL authentication and Postfix

Next options require attention:

smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_exceptions_networks =
smtpd_sasl_local_domain =
smtpd_sasl_path = 
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_tls_security_options = noanonymous, noplaintext
smtpd_sasl_type = cyrus

/etc/postfix/main.cf:
    smtpd_sasl_type = dovecot | cyrus
/etc/postfix/main.cf:
    smtpd_sasl_path = private/auth

This example uses a pathname relative to the Postfix queue directory, so that
it will work whether or not the Postfix SMTP server runs chrooted.Regardless of the
SASL implementation type, enabling SMTP authentication in the Postfix SMTP server
always requires setting the smtpd_sasl_auth_enable option:

“SASL authentication and Postfix”Continue reading

Regular expression to match string not containing a word.

The fact that regex doesn’t support inverse matching is not entirely true. You can mimic this behavior by using negative look-arounds:


1
^((?!hede).)*$

The regex above will match any string, or line without a line break, not containing the (sub) string ‘hede’.As mentioned, this is not something regex is “good” at (or should do), but still, it is possible.

Explanation

“Regular expression to match string not containing a word.”Continue reading

Scroll to top