I
I
Ivan2019-01-18 15:47:44
postfix
Ivan, 2019-01-18 15:47:44

How to tighten authorization on smtp relay server?

Good ...! There is an smtp relay server. Mail runs through it normally, but how to fasten basic authorization?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Chernykh, 2019-01-18
@sashkets

basic auth is from web realm, you need smtp auth anyway

I
Ivan, 2019-01-23
@bordakovskiy

Did so. Delivered dovecot

/etc/dovecot/dovecot.conf
protocols = imap pop3
mail_location =  maildir:~/Maildir

/etc/dovecot/conf.d/10-auth.conf
auth_mechanisms = plain login

/etc/dovecot/conf.d/10-mail.conf
mail_location = maildir:~/Maildir

/etc/dovecot/conf.d/10-master.conf
 #unix_listener auth-userdb {
     #mode = 0600
     #user =
     #group =
   #}
 unix_listener /var/spool/postfix/private/auth {
     mode = 0666
     user = postfix
     group = postfix
   }

/etc/dovecot/conf.d/20-pop3.conf
pop3_uidl_format = %08Xu%08Xv
pop3_client_workarounds = outlook-no-nuls oe-ns-eoh

added to postfix config
/etc/postfix/main.cf
 smtpd_sasl_auth_enable = yes
 smtpd_sasl_security_options = noanonymous
 smtpd_sasl_local_domain = $myhostname
 smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks, reject_unauth_destination
 broken_sasl_auth_clients = yes
 smtpd_sasl_type = dovecot
 smtpd_sasl_path = private/auth

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question