Good evening,
Unfortunately, I have to revisit my topic from back in the day....

Sending the proper reject-messages through the postfix works wonderfully, as 
long as it is an external sender.

But now if a local sender sends an email to the full mailbox, again the Dovecot 
replies, or the program what generates the message mentioned at the beginning:

##
Your message to <localu...@my.server.com> was automatically discarded:
##

With your solution of using the Dovecot quota service as recipient restriction, 
I can manipulate the acceptance of the mail by the smtpd, but this is only 
external senders.

My question: can I set up the recipient restrictions for the "pickup" module as 
well? If not, I guess I need to make all mail go through the smtpd not just the 
external ones, then can someone give me a tip on how to configure postfix for 
this?

Mit freundlichen Grüßen
Yours sincerely
Pascal Rudolf 



-----Ursprüngliche Nachricht-----
Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> Im 
Auftrag von rud...@padaru.de
Gesendet: Freitag, 5. Februar 2021 13:58
An: 'Postfix users' <postfix-users@postfix.org>
Betreff: AW: Change default reject message

Hey,

oh sry, i firmly assumed that the postfix creates the message 😐

The method of mapping the quota via a service, I had not on the screen..

Thank you for that tip, my problem is solved now, thx.


Mit freundlichen Grüßen
Yours sincerely 
Pascal Rudolf 



-----Ursprüngliche Nachricht-----
Von: owner-postfix-us...@postfix.org <owner-postfix-us...@postfix.org> Im 
Auftrag von Wietse Venema
Gesendet: Donnerstag, 4. Februar 2021 16:19
An: Postfix users <postfix-users@postfix.org>
Betreff: Re: Change default reject message

rud...@padaru.de:
> i have an question about postfix reject message:
> 
> Plan it to integrate an mail quota via dovecot. If the target mailbox 
> is full, so my mailsystem answer with:
> 
> Your message to <localu...@my.server.com> was automatically discarded:

That is NOT a Postfix reject message. If you don't want this, then configure 
the system that sends this.

Other option: do the quota check before accepting mail via SMTP.
Then, the message is not even received by Postfix.
https://doc.dovecot.org/configuration_manual/quota_plugin/

        Wietse



Reply via email to