Davide Marchi
2019-Mar-21 21:17 UTC
Dovecot quota and Postfix smtpd_recipient_restrictions?
>> Well, >> >> so the right syntax (in my case) would be: >> >> -o smtpd_recipient_restrictions = >> reject_non_fqdn_recipient,reject_unknown_recipient_domain,permit_sasl_authenticated,reject,check_policy_service >> inet:mailstore.example.com:12340 >> >> right?? > I configured it before the "permit_sasl_authenticated" and the "reject" > statement. >I've a doubt (again): Is it correct the the space between "[..]service" and "inet[..]"? As suggested here: https://blog.sys4.de/postfix-dovecot-mailbox-quota-en.html I've run: postconf smtpd_recipient_restrictions=check_policy_service inet:mailstore.example.com:12340 but obtain the error: postconf: fatal: missing '=' after attribute name: "inet:mailstore.example.com:12340" Please, which is the correct syntax? :-) Thanks again! Davide
Yassine Chaouche
2019-Mar-24 06:10 UTC
Dovecot quota and Postfix smtpd_recipient_restrictions?
On 3/21/19 10:17 PM, Davide Marchi via dovecot wrote:> > I've a doubt (again): Is it correct the the space between > "[..]service" and "inet[..]"? As suggested here: > https://blog.sys4.de/postfix-dovecot-mailbox-quota-en.html > > I've run: > > postconf smtpd_recipient_restrictions=check_policy_service > inet:mailstore.example.com:12340 > > but obtain the error: > > postconf: fatal: missing '=' after attribute name: > "inet:mailstore.example.com:12340" > > Please, which is the correct syntax? :-) > > > Thanks again! > > Davide >Davide, I think this is the shell that is giving three arguments to postconf instead of just one (beacuse of the space). In order to disable this, you might want to try to put the whole argument between quotes. You also forgot to give the command the -e switch in order to edit the main.cf file. Try : postconf -e smtpd_recipient_restrictions="check_policy_service inet:mailstore.example.com:12340" Yassine.